"Close positions" when market is closed
-
https://fxdreema.com/shared/bhBUBUChb
While backtesting, close positions block will get stuck if market happens to be closed (or quotes-only mode).
It appears the block is designed to break the loop by a fatal server response, but that doesnt help in backtest.
As a workaround, using "For each position" -> "Close" loop works better.


-
Thank you for sharing.
-
Close block with red colour?
-
@roar I have other solution for debugging Market Close ~
-
First, Click Specification of your symbol

Second, Check [Trade] column, It's period of time that broker allow client to trade the symbol

Third, that mean if we can fitlering out period of time that client(we) can't trade, this BUG will disapear!!
and that works!


and HOW to do that?
1.Remember your Trade time (below Trade column)
2.in this picture is 00.01-23.58 alright?
3.that mean 23.58-00.01 period of this symbol WE CAN'T TRADEtherefore, we will filtering out that period of time, FINISHED! 🥰


-
Thank you for sharing. man!

-
I did this way a long time ago and it worked for me, and it was to turn off the blocks during the hours when the market is closed, and turn them back on when the market opens. FXdreema is a great tool, but it also has its weaknesses

-
@Khunpol
dear friend could ypu please a shraed link for market closed eror (10018), because i can not solve my problem.
many thanks