Forum

failing to modify stop order

Hello board, I'm troubleshooting a problem for some days now, but did not found a solution for it. My EA sometimes can't perform a stop loss modification order giving this error: 2022.06 . 22 07 : 53 : 21.837 Core 1 2022.06 . 15 14 : 58 : 00 order performed sell 1 at 104975 [ # 94 sell 1 WINQ22

Make order expire after three candles

I would like to change my order time type to valid until next 3 candles from good until the end of day: T.BuyLimit(LotSize, (ask-( 45 * _Point )), MySymbol, 0 , 0 , ORDER_TIME_DAY , Comments); I tried this, but it didn't work: T.BuyLimit(LotSize, (ask-( 45 * _Point )), MySymbol, 0 , 0