Donchian channel breakout strategy does not run.
-
hi folks, anyone of you would be so nice and check out why does not run this breakout EA. Just built and don't really get it what is wrong. thanks a million
https://fxdreema.com/shared/O1EUolXBd
The system needs to buy at the breakout of Donchian Channel (11) upper line the market and sell at the breakout of Donchian Channel(11) low line. It's that simple.
-
Suggestion 1. Don't use local time for hours. I strongly recommend you server time.
Suggestion 2. Blocks 1 and 8 are exactly the same. That's wrong. One of them should for buys only and the other one for sells only.
Question 1. Doues that indocator repaint the current bar? If so, that can be a serious problem because you are looking that current bar.
Suggestion 3. Your SL is too close to the current price when the trade is open. That means that the broker can deny your trade because of not enough pips allowed. I recomment to move away your SL a few pips in order to avoid that.
-
hi Andorra, really appreciate your help. So I've just adjusted as you said.
your question: Question 1. Does that indicator repaint the current bar? No, it doesn't. Donchian Channel purely shows the support and resistance levels.
But, this still not running in the strategy tester. Will you be kind to take a look again what is still the issue?
https://fxdreema.com/shared/6OcftzY5dthanks a lot
-
@blindfoldedmonkey are you using this indicator? If it's that one, there seems to be no crossing on candle 0 as the indicator extends it's value by new high / low. Instead you may use previous candle's value (ID 1) as a measurement. as @l-andorrà suggested.
-
trader.phillips is right. Could you please check you indicator? Working with candle ID 0 is problematic most of the time.
-
Thanks a million Phillips and Andorra, just adjusted the ID to 1. Now it runs in the strategy tester but does not open any damn position. Any hint why is that?
https://fxdreema.com/shared/ZLqFnFDZb
thanks a lot
-
@blindfoldedmonkey Don't use the Price x> x< blocks with your indicator! This condition will never happen.

You can compare a price level with a previous candle, but the x> x< means that there is a cross of price and indicator value in the specified candle.
-
Be aware woth block 1. Now if you have ANY trade (buy or sell), there will not be ANY OTHER trade. Is that what you want? If not, you should duplicate that block: one for buys and anothe for sells.
-
thanks so much, Philipps & l'andorra. I am gonna adjust like that