eror market close [10018]
-
-
This has never happened to me, but others have had this error, try and find references to it in search. Hopefully, someone who knows will come by and help.
-
@MEHRDAD768 Same to me. Never seen that error.
-
@MEHRDAD768 said in eror market close [10018]:
it is a common mistake (our mistake, not a bug) both in backtest and live, when we want to open or close orders outside the allowed trading hours. I suggest you to place two filter, one for weekdays and one for time hours, according with the time of your broker.
By searching on forum typing "market closed" you can find a lot of post. -
@ambrogio thanx a lot
-
@MEHRDAD768 you're welcome!
-
@MEHRDAD768 by the way it's appear midnight Wednesday in backtest . not just friday

so i did it this way
what do you think? -
@MEHRDAD768 in this way I enter the day and working hours of my broker, so the "market closed" error cannot occur

-
-
@MEHRDAD768 this way you want to close trades on friday at 21:30.
-
Roar posted about this, you need to loop through positions and use close, vs the general 'Close Positions' block. Pink, not blue.
-
@cmuphyfx be careful, i saw that post too, but if the market is closed, the broker will not execute any opening or closing orders, it is not a question of blue or pink blocks.
Re: 