Problem with "check age" function
-
@fxDreema - I'd like to check how many minutes have passed since the last position was closed, and only allow a new trade after "X" minutes. I tried the blocks "For each closed position" > "Check age", however, it seems like "For each closed position" is blocking the EA from trading, independently of the time I put in "Check age". This is the example: https://fxdreema.com/shared/gOc5xZ4nc
"Check age" alone (without "For each closed position") does not do anything (EA keeps trading as if there was no "Check age").
Are you able to see what is wrong?
thanks
-
it is working ...
maybe you should somehow open first trade (because without first trade closed there is no history) ...
-
Awesome, thanks so much.... works perfectly now.
I've been struggling with that for hours because the alternative solution is to use the "Delay" block, but for this block to work on the backtest, MT5 must open a .dll file and that was making the backtest intolerably slow (i.e. minutes to run a week on OHLC).
now it runs perfectly and super-fast

thanks again