Join our fan page
- Views:
- 87
- Rating:
- Published:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Spread Monitor Panel is a lightweight on-chart panel that makes the real cost of trading visible: the live spread of the chart symbol, refreshed every second.
It shows the current spread in points (float-spread safe: computed from Ask-Bid, not the integer symbol property), plus the minimum, average and maximum since the indicator was attached, with the sample count and starting time. The current value is color-coded: green below your warning threshold, orange between warning and danger, red at or above danger.
An optional alert fires when the spread holds at or above the danger threshold for N consecutive seconds - the classic news-release / rollover spike pattern - with a configurable cooldown so it does not spam you.
Inputs: warning and danger thresholds in points, alert on/off, sustained seconds, alert cooldown, panel corner, X/Y offsets and font size.

Typical uses: deciding whether conditions are tradeable before news, comparing broker spreads on a demo vs live, tuning the max-spread filter of an EA, and documenting spread behaviour of a symbol across sessions.
Monitoring only: it places no trades, has no buffers and no plots, and works on any symbol and timeframe.
Prop Firm Risk Dashboard - daily loss and drawdown monitor
A read-only on-chart panel that tracks your account against a daily-loss limit and a max-drawdown limit, with color-coded OK / WARNING / DANGER status. Monitoring only - it does not place, modify or close any orders.
MQTTFive — MQTT 5.0 Client Library
MQTTFive — a fully-featured implementation of the MQTT 5.0 client for MQL5. Features: • MQTT v5.0 — all packet types, properties, QoS 0/1/2 • TCP + TLS via the native MQL5 Socket API • Will messages with properties (will_delay_interval, payload_format, message_expiry) • Topic aliases for outgoing PUBLISH messages • Flow Control (Receive Maximum) • Subscription Options (no_local, retain_as_published, retain_handling) • Binary and UTF-8 payloads • Automatic retry for QoS 1/2 • Zero DLL dependencies — pure MQL5 Tested with Mosquitto 5.0 (15 tests, all PASS). Documentation: https://github.com/chekh/MQTTFive Licence: MIT
Position Size Calculator - risk-based lot sizing script
Calculates the correct lot size for a planned trade from your risk (percent of equity or a fixed money amount) and stop-loss distance (points or a price level). Respects the symbol's contract specification - tick size and value, volume min/max/step - and estimates the required margin.
Trade Journal Exporter - closed positions to CSV
Exports your closed positions for a configurable period to a CSV file for journal analysis in Excel or Google Sheets: entry and exit time and price (volume-weighted over partial fills), volume, result in points, commission, swap, net profit and trade duration.