Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Libraries

Dynamic Break-Even and Trailing Stop Library - library for MetaTrader 5

Views:
45
Rating:
(1)
Published:
Updated:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

MQL5 include library (#include) for R-multiple Break-Even+ protection and dynamic or step trailing stop management on open positions. Normalizes Stop Loss levels to SYMBOL_TRADE_TICK_SIZE, enforces broker stops/freeze and spread buffers, supports magic-number and symbol filtering, and requires zero DLLs or WebRequest calls.

Universal Risk, Tick-Size and Margin-Fit Lot Calculator Library Universal Risk, Tick-Size and Margin-Fit Lot Calculator Library

MQL5 include library (#include) for equity risk % lot sizing, broker volume limit and free-margin checks, tick-size price normalization, and minimum stop distance validation across Forex, Gold, Oil, Crypto, Indices, and Stocks on Hedging or Netting accounts. Includes URM_CalculateSafeLot(), URM_NormalizePrice(), URM_GetMinStopDistance(), URM_DetectAssetClass(), URM_IsCentAccount(), and URM_IsNettingAccount() with zero DLLs and zero WebRequest calls.

Identifying the highest and lowest price levels over a specific period Identifying the highest and lowest price levels over a specific period

Finds and plots the highest high and lowest low over a specified lookback period Includes a vertical lookback boundary line, price labels, and optional push notifications

Order Error and Retcode Classifier Library Order Error and Retcode Classifier Library

MQL5 include library (#include) for classifying trade server retcodes into retryable transient conditions versus stop-level, margin, volume, or permission rejections. Provides structured diagnostics, suggested retry delays, and formatted log summaries with zero DLLs or WebRequest calls.

Execution Quality Recorder Execution Quality Recorder

Records every fill on the account and shows how it was executed: slippage against the requested price on entries and on stop-loss and take-profit exits, the spread at the fill and the execution delay. Per-symbol panel, hour-by-hour heatmap, CSV log and a side-by-side broker comparison. It does not trade.