Topic: Donchian channel
Hi Popov and other readers
I generated a strategy on Expert Advisor Studio which uses Donchian channels (19) as exit. The exit rule indicator for a buy reads: "The bar opens above upper band after opening below it." And vice versa for a short.
The strategy tested fine on MT4 strategy tester and avg holding period period is less than 2 days on the strategy tester.
However, when trading strategy live, the trades do not close and stay open forever.
Can you please look at the MQL code generated by the software. I believe there must be something wrong with the OrderClose function.
Thank you