Codes

Symbol Specification Probe - tick size, tick value, money value of a stop for MetaTrader 5

The probe prints the values a symbol specification supplies: digits, point, trade tick size, trade tick value, contract size, volume minimum, volume maximum, volume step and the stops level. Trade tick size is the smallest price change the instrument can make, trade tick value is the money one tick

Rollover Cost Table - swap mode from the symbol, triple-swap day from the broker for MetaTrader 5

An MQL5 indicator that draws a table on the chart with one row per open position and shows what one more night of holding it costs, in the deposit currency where the symbol's swap mode allows it. The swap mode and the two rates come from the symbol's own specification, and so does the triple-swap

ICT Session Boxes - four GMT windows, automatic broker offset, high and low lines for MetaTrader 5

Session windows are quoted in GMT; the chart runs on the broker's clock. This indicator takes each window in GMT, applies your broker's offset, and draws the box over that window's bars. It adds the high and low lines to every enabled window unless you switch them off, prints the session name and

Risk Lot Sizing Library - four risk bases, tick-value scaling, margin cap, daily limit for MetaTrader 5

A stop distance in points is not money until the tick size and tick value make it one. This library turns four risk bases into a lot size, floors it to the volume step, caps it against free margin and tracks a daily loss limit. Two MQL5 headers, no DLL

Non-Repainting Fair Value Gap Detector for MetaTrader 5

Non-repainting three-bar Fair Value Gap detector for MetaTrader 5. Closed-bar detection, the 50% Consequent Encroachment level, mitigation as an explicit state machine, incremental scanning, and a built-in self-audit that re-checks the stored gap levels against the closed-bar series on attach. Pure

Forum

What the spread costs your Expert Advisor, and how to price it in a backtest

Every Expert Advisor I test now carries an input it does not need: the expected cost of a round trip, in points. At zero the strategy trades as if execution were free. Set it to a spread measured from your own quotes and the same code pays for its fills, and the gap between the two runs is the only

Why your indicator repaints: the OnCalculate array order nobody checks

Most of the repainting complaints I see in this section come down to one assumption, not to the detection logic or the buffer handling. MetaTrader hands OnCalculate its price arrays oldest to newest. Not series, not reversed, not newest first. Index 0 is the oldest bar currently loaded, and index