Codes

Swing Detector by Pullback (Smart Money Concepts) for MetaTrader 5

SMC Pullback marks swing highs and lows using the pullback definition instead of the usual 3-candle pattern. A high is confirmed only when price trades back through the low of the candle that made it — so every marked point is an actual rejection, and highs and lows always alternate. It evaluates

Articles

Creating a Cairo-Inspired Graphics Library for MetaTrader 5 (Part 2): Points, Contours and the Path for MetaTrader 5

This second part adds the geometry layer to a Cairo‑inspired graphics library for MetaTrader 5. It defines a path of double‑precision points grouped into contours, records open/closed intent, and stores vertices in a flat array with start indices. We implement MoveTo, LineTo, Close, provide basic

Creating a Cairo-Inspired Graphics Library for MetaTrader 5 (Part 1): Why the terminal needs its own 2D-renderer Contents for MetaTrader 5

This article opens a step-by-step 2D graphics engine for MetaTrader. It standardizes ARGB colors and implements a reusable surface: a uint pixel buffer uploaded as a dynamic resource and shown via one OBJ_BITMAP_LABEL. You will draw rectangles and a vertical gradient, check real transparency, and