MetaTrader 5 chart panels can host self-contained documentation rendered directly in-terminal, without external files. A canvas-based engine built on CCanvas supports tabs, scrollable rich text, inline images, theming, and supersampled anti-aliased UI elements.
Implementation details include embedding bitmaps via #resource, defining paragraph types, and parsing inline markup into styled runs. Rendering uses a two-pass alpha reconstruction method to preserve glyph transparency on any background, then blends via Porter-Duff over.
Images are loaded from resources, scaled with bicubic interpolation, and cached per panel width. Paragraphs are wrapped into encoded display lines with helpers to decode type, indent, and image slots during paint and scroll.
👉 Read | Quotes | @mql5dev
Implementation details include embedding bitmaps via #resource, defining paragraph types, and parsing inline markup into styled runs. Rendering uses a two-pass alpha reconstruction method to preserve glyph transparency on any background, then blends via Porter-Duff over.
Images are loaded from resources, scaled with bicubic interpolation, and cached per panel width. Paragraphs are wrapped into encoded display lines with helpers to decode type, indent, and image slots during paint and scroll.
👉 Read | Quotes | @mql5dev
👍16❤13👌3
Chart Replay Pro (MT5 Strategy Tester, visual mode) received a major update focused on manual backtesting parity with live-trading controls.
Changes include runtime lot adjustment without restarting tests, per-position trade management, and an order workflow supporting buy/sell stop and buy/sell limit orders. UI is built with bitmap-based CbmpButton plus #resource inclusion, and a read-only edit field for lots.
Key implementation notes: OnChartEvent is not processed in Strategy Tester, so entry and TP/SL are adjusted via plus/minus buttons instead of draggable lines. Global state variables are used to prevent tick-driven UI bugs and to keep selected ticket, TP, and SL stable while actions execute.
👉 Read | Quotes | @mql5dev
Changes include runtime lot adjustment without restarting tests, per-position trade management, and an order workflow supporting buy/sell stop and buy/sell limit orders. UI is built with bitmap-based CbmpButton plus #resource inclusion, and a read-only edit field for lots.
Key implementation notes: OnChartEvent is not processed in Strategy Tester, so entry and TP/SL are adjusted via plus/minus buttons instead of draggable lines. Global state variables are used to prevent tick-driven UI bugs and to keep selected ticket, TP, and SL stable while actions execute.
👉 Read | Quotes | @mql5dev
❤31⚡2👌2