Forum

EVENT handling function not fund, help-me

I cant found the error, here is the code. i want to use this file to import in another string CheckSignal() { MqlRates PriceInfo[]; ArraySetAsSeries (PriceInfo, true ); int Data = CopyRates ( Symbol (), Period (), 0 , 3 ,PriceInfo); string signal= "" ; double MiddleBandArray[]; double

Limit number of orders in the same Candle

Hi, im having a problem on limiting the numbers of the Orders that my EA makes in the same candle. I attached the print showing my problem. I want to do something like: input int max_orders_per_candle = 2; if(TradeSignal==true && orders_in_actual_candle<max_orders_per_candle) { //now i execute the