Experts: GDS Renko Donchian Demo EA

 

GDS Renko Donchian Demo EA:

A small educational Expert Advisor showing how a classic Donchian breakout can be applied directly to completed Renko bricks.

GDS Renko Donchian Demo EA

Author: Andrey Goida

 
Great example of virtual/embedded Renko bricks in an EA.👍
 
This is a useful example of applying Donchian breakouts to Renko bricks. One point I would be interested in is how the EA guarantees that only completed Renko bricks are used for signal generation, particularly during live execution. It would also be useful to clarify whether the Strategy Tester implementation prevents any intra-brick information from influencing the entry decision.
 
Yogesh Kaushik #:
This is a useful example of applying Donchian breakouts to Renko bricks. One point I would be interested in is how the EA guarantees that only completed Renko bricks are used for signal generation, particularly during live execution. It would also be useful to clarify whether the Strategy Tester implementation prevents any intra-brick information from influencing the entry decision.

Thanks, that is an important point.
The EA does not generate signals from an unfinished Renko brick. Each incoming BID tick is first passed to the internal Renko builder, and nothing happens until a full brick is confirmed. Only then is that completed brick sent to the Donchian logic.

The Donchian channel itself is calculated from the previous completed Renko bricks only. The newly completed brick is deliberately excluded from the channel calculation, tested for breakout first, and appended to the history only afterwards.

So intra-brick price movement can update the internal Renko state, but it cannot trigger an entry by itself. The Strategy Tester uses the same event order on every tick: tick → Renko completion check → Donchian breakout check on the completed brick → possible trade.

One additional detail: if one incoming tick is large enough to complete several Renko bricks, the EA processes those bricks in sequence and only the newest completed brick on that tick is allowed to generate the final entry signal. This avoids stale same-tick signals from intermediate bricks.