Rejoignez notre page de fans
- Vues:
- 137
- Note:
- Publié:
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
How the example works
1. Incoming BID ticks are passed to an internal classic Renko builder with a two-brick reversal rule.
2. ADX, +DI and -DI are updated only after a Renko brick is completed.
3. ADX is used as a strength filter.
4. +DI / -DI define the allowed trade direction.
5. A new trade can be opened only when the newest completed brick confirms the same direction and the required Renko run is present.
6. An opposite DI direction can request an exit. Virtual TP, SL and maximum holding time provide additional exits.
Default demonstration profile
Brick Size: 16
ADX Period: 14
ADX Threshold: 8.5
Minimum DI Separation: 2.5
Entry Run: 3 completed bricks
Take Profit: 9.5 bricks
Stop Loss: 42 bricks
Maximum Hold: 1060 minutes
Cooldown: 6 completed bricks
Maximum Spread / Brick: 0.35
Requested Lot: 0.01
Real-tick verification example
Symbol: XAUUSD
Period: M1
Test interval: 2026-05-01 to 2026-09-08
History quality: 100%
Ticks: 48,458,994
Initial deposit: $10,000
Total trades: 46
Net result: +$1,095.53
Profit factor: 3.14
Maximum equity drawdown: $139.11 / 1.36%
Maximum balance drawdown: $68.70 / 0.64%
Recovery factor: 7.88
Sharpe ratio: 9.22
Profit trades: 31 / 46 (67.39%)
Short trades: 25, 64.00% won
Long trades: 21, 71.43% won
The defaults are included only to make the source code immediately testable. This is a historical educational example, not evidence of a persistent trading edge or future profitability. Results depend on symbol specification, tick history, spread, execution and broker conditions.
Implementation notes
- Completed Renko bricks only are used for ADX/DI calculations and signals.
- No intra-brick entry signal is generated.
- A large incoming tick can complete several bricks; they are processed sequentially and only the newest completed state can produce the final entry signal on that tick.
- Requested volume is normalized to the symbol minimum, maximum and volume step.
- Trading-session checks prevent repeated requests while the market is closed.
- Due exits remain pending until a valid trading session is available.
- One position is allowed on the symbol and duplicate requests are blocked.
- TP and SL are virtual, so the terminal and EA must remain running.
Golden Delta | Research First
GDS Renko Canvas
GDS Renko Canvas is a compact educational indicator showing how a classic fixed-size Renko chart can be rendered directly in MetaTrader 5 with the standard CCanvas class. The indicator builds Renko bricks from incoming BID ticks and displays only completed bricks. Continuation requires one brick, while a reversal follows the classic two-brick rule. Unlike object-based Renko overlays, the visible chart is drawn on a single Canvas bitmap layer. This keeps the chart object list small and makes redraws on resize straightforward.
GDS Renko Dual MA Demo EA
GDS Renko Dual MA Demo EA is a small educational Expert Advisor for MetaTrader 5. It shows one simple way to combine classic fixed-size Renko bricks with two simple moving averages calculated directly from completed Renko closes.
GDS Renko Bollinger 4-Mode Demo EA
GDS Renko Bollinger 4-Mode Demo EA is a free educational Expert Advisor for MetaTrader 5. It demonstrates four different ways to combine classic fixed-size Renko bricks with Bollinger Bands inside one standalone EA. The EA builds four independent internal Renko streams from incoming BID ticks. Each mode has its own Renko brick size and its own Bollinger settings. Signals are generated only when a Renko brick is fully completed. Bollinger Bands are calculated causally from previous completed Renko closes, so the current brick is excluded until after its signal check.
GDS Renko Canvas + Bollinger
A compact educational indicator for MetaTrader 5 that renders classic fixed-size Renko bricks on a single CCanvas bitmap layer and overlays Bollinger Bands calculated directly from completed Renko closes. The horizontal axis represents Renko sequence rather than time. The internal Renko builder uses incoming BID ticks and the classic two-brick reversal rule. Bollinger Bands are calculated only from completed Renko bricks; the forming brick is never used in the band calculation.

