Forum

calculate candles after pending order

Hello everyone, I've been trying to create a code to count candles from the last pending order , so that after x candles of the pending order, it automatically cancels. However, I didn't get to the calculation, could someone give me a tip

Code compiles but does not open orders

Guys, this code compiles normally but does not open commands, the highlighted term, when removed, works normally. My intention is to buy/sell when the price follows support/resistance and 3 candles later break the high of its predecessors. Can anyone tell me what is wrong? #include <Trade\Trade.mqh>

robot without take profit and stop loss

Hello, i trying adapt this robot and, i don't can put take profit and stop loss in points. Look: i need put take and stop with 50 points, can you help me? the code: #include <Trade/Trade.mqh> // biblioteca-padrão CTrade input double lote = 0.5 ; input int periodoCurta = 10 ; input int periodoLonga =