Not enough bars in the window. EA doesn't work

 

Hi, Alls



When I try to my programme it shows the 'Not enough bars in the window. EA doesn't work'


I cant understand what to do ?


Plz! help me



Thanx!

Files:
myexp9.mq4  13 kb
 

if(Bars > Period_MA_2) // Not enough bars
{
Alert("Not enough bars in the window. EA doesn't work.");
return; // Exit start()
}
.

Change

if(Bars > Period_MA_2)

to

if(Bars < Period_MA_2)

Reason: