Bellal MOHAMMEDI / Publications
Forum
Buton pushed
Hello, I use in my mql5 EA ;to avoid the OnChartEvent's call; the following code if ( ObjectGetInteger ( 0 , "Buy" , OBJPROP_STATE )) { Trade.Buy(MaxLot, NULL ,Ask, 0 , 0 , "buy" ); ObjectSetInteger ( 0 , "Buy" , OBJPROP_STATE , false ); } But when i press the buton "Buy" the fuction