New Position error: market is closed (10018)
-
Hi, i need help with this EA bug, it just happens when is backtesting Daily chart. The EA structure looks good, just Idk how to solve this bug on Daily, because on other timeframes, it works well... Usually when this happened is because BLUE blocks, but in this case I'm not using any other, just No position block is blue

https://fxdreema.com/shared/b3xNQJlEd
I have tested with Broker data and my data, is the same problem modeling 1 Day chart
-
Did you check the format of the 'Timeframe' constant?
-
it tries to open position at 00:00:00
filter those with green block time filter, any buy action or close action should be bellow this block
-
@Byens sure, I put it above yesterday in another version but the result is the same
-
@l-andorrà sure, it does look wrong? Works well in all TF, just on daily not. Thanks
-
@Uriel-0 said in New Position error: market is closed (10018):
@l-andorrà sure, it does look wrong? Works well in all TF, just on daily not. Thanks
"once per bar" daily happens at 00:00 , at this time your broker doesn't accept any order/instruction. Likely it start to works at 00:04 (just a guess). There are some topic on this question on forum.....and a solution (time filter and weekend filter just above buy/sell )
-
-
@ambrogio it works with 00:10
-
