Quantora Trading Cost Calculator for MT5 estimates total trade cost before entry using live symbol data and user inputs. It aggregates spread, commission, and swap into a single view to reflect expected costs under current conditions.
Inputs include lot size, direction, commission per lot, and holding period. Output breaks down spread cost, commission cost, and swap impact, then totals the estimate in account currency. The cost is also shown as a percentage of account balance.
The panel displays tick size, tick value, and contract size to adapt calculations across instruments and broker settings. Works on all symbols and timeframes with automatic updates. Analysis-only utility with no order placement and no signal generation.
π Read | NeuroBook | @mql5dev
Inputs include lot size, direction, commission per lot, and holding period. Output breaks down spread cost, commission cost, and swap impact, then totals the estimate in account currency. The cost is also shown as a percentage of account balance.
The panel displays tick size, tick value, and contract size to adapt calculations across instruments and broker settings. Works on all symbols and timeframes with automatic updates. Analysis-only utility with no order placement and no signal generation.
π Read | NeuroBook | @mql5dev
β€18π6π1
Adaptive Kalman Trend Filter uses a single-state Kalman estimate with process noise (Q) recalculated on every bar. Q is scaled between min and max multipliers using Kaufmanβs Efficiency Ratio (ER), avoiding fixed-parameter lag versus whipsaw trade-offs. High ER raises Q and the Kalman gain, keeping the line closer to price; low ER reduces Q and increases smoothing during range conditions.
Regime bands are derived from rolling residual volatility (price minus Kalman line). Band width is the residual standard deviation times a multiplier that is further expanded as ER falls, producing tighter bands in directional markets and wider bands in chop. Color state changes are confirmed on closed bars only, so signals do not repaint.
Key inputs include base Q, measurement noise (R), ER/band lookbacks, regime threshold, and band multiplier. Typical tuning targets...
π Read | Freelance | @mql5dev
Regime bands are derived from rolling residual volatility (price minus Kalman line). Band width is the residual standard deviation times a multiplier that is further expanded as ER falls, producing tighter bands in directional markets and wider bands in chop. Color state changes are confirmed on closed bars only, so signals do not repaint.
Key inputs include base Q, measurement noise (R), ER/band lookbacks, regime threshold, and band multiplier. Typical tuning targets...
π Read | Freelance | @mql5dev
β€20π6β‘2π2π1
SessionORB_EA automates an opening-range breakout around a configurable session start (London, New York, or any custom broker-time open). It records the high/low of the first N minutes using M1 data, then maintains two trigger levels at the range boundaries plus an optional buffer.
A trade is placed only after a bar closes beyond a trigger, not on a wick. One market position per session is allowed by default, with position sizing based on account risk percent or an optional fixed lot. Stop loss is set beyond the opposite side of the range with an added buffer, and take profit is defined by a reward-to-risk multiple.
The range measurement stays minute-accurate regardless of chart timeframe, while signal confirmation follows the attached chart period. Chart objects can draw the opening-range box, forward trigger lines, and a session-start marker, with automat...
π Read | VPS | @mql5dev
A trade is placed only after a bar closes beyond a trigger, not on a wick. One market position per session is allowed by default, with position sizing based on account risk percent or an optional fixed lot. Stop loss is set beyond the opposite side of the range with an added buffer, and take profit is defined by a reward-to-risk multiple.
The range measurement stays minute-accurate regardless of chart timeframe, while signal confirmation follows the attached chart period. Chart objects can draw the opening-range box, forward trigger lines, and a session-start marker, with automat...
π Read | VPS | @mql5dev
β€24π8β‘2π2
Reverse RSI Bands is a custom indicator that reverse-engineers the RSI equation and plots the exact price levels where RSI will reach selected overbought and oversold thresholds. Instead of a separate oscillator window, the main chart shows the calculated upper and lower price bands, enabling advance identification of potential extremes and dynamic support/resistance zones.
The implementation uses algebraic deductions of Wilderβs recursive smoothing and computes the required price for the current bar from the verified previous-bar state, preventing repainting. The resulting levels are designed to match the platformβs standard RSI output exactly.
Key inputs include RSI period (default 14), overbought target (70), oversold target (30), and applied price (close). Common usage focuses on major FX pairs on H1/H4, watching for touches or pierces of the ban...
π Read | AppStore | @mql5dev
The implementation uses algebraic deductions of Wilderβs recursive smoothing and computes the required price for the current bar from the verified previous-bar state, preventing repainting. The resulting levels are designed to match the platformβs standard RSI output exactly.
Key inputs include RSI period (default 14), overbought target (70), oversold target (30), and applied price (close). Common usage focuses on major FX pairs on H1/H4, watching for touches or pierces of the ban...
π Read | AppStore | @mql5dev
β€28π7π₯3π¨βπ»2π1
KΒ²VAE targets time-series forecasting under high uncertainty by combining linear latent dynamics (Koopman), adaptive error filtering (KalmanNet), and probabilistic sampling (VAE). Output is a full distribution of future states, with variance reflecting confidence rather than a single trajectory.
Architecture splits into patching, encoder, and decoder. The decoder returns mean and variance to model P(Y|Z) and preserve uncertainty end-to-end.
The encoder chains KoopmanNet for latent transitions and retrospective reconstruction, attention over reconstruction error (not the raw sequence), KalmanNet to generate a covariance matrix from error-derived control signals, and VAE sampling using Koopman mean plus Kalman dispersion.
KoopmanNet can be extended from dual MLPs to a sparse Mixture-of-Experts block to separate local vs global dynamics and improve robustness on vo...
π Read | Signals | @mql5dev
Architecture splits into patching, encoder, and decoder. The decoder returns mean and variance to model P(Y|Z) and preserve uncertainty end-to-end.
The encoder chains KoopmanNet for latent transitions and retrospective reconstruction, attention over reconstruction error (not the raw sequence), KalmanNet to generate a covariance matrix from error-derived control signals, and VAE sampling using Koopman mean plus Kalman dispersion.
KoopmanNet can be extended from dual MLPs to a sparse Mixture-of-Experts block to separate local vs global dynamics and improve robustness on vo...
π Read | Signals | @mql5dev
β€14π9π1π1
This article outlines an MVP βLLM-driven traderβ built with Python + MetaTrader 5 + an OpenRouter-connected language model. MT5 supplies recent OHLCV candles, the script packages them into a prompt, and the LLM returns a structured decision: BUY/SELL/WAIT plus entry, SL/TP, and a short rationale.
Key implementation details: cloud inference keeps hardware requirements low; model choice is swappable via a single API parameter; responses are parsed with regex to tolerate formatting drift; orders are placed as MT5 market trades with a 1:2 risk/reward, and each cycle runs on a timer (e.g., every 5 minutes) with full logging.
Practical takeaways: strategy iteration happens mostly in prompt design and model settings (temperature, max_tokens), multi-timeframe inputs can improve context, and production use needs guardrails for open-position handling, latency, and...
π Read | Forum | @mql5dev
Key implementation details: cloud inference keeps hardware requirements low; model choice is swappable via a single API parameter; responses are parsed with regex to tolerate formatting drift; orders are placed as MT5 market trades with a 1:2 risk/reward, and each cycle runs on a timer (e.g., every 5 minutes) with full logging.
Practical takeaways: strategy iteration happens mostly in prompt design and model settings (temperature, max_tokens), multi-timeframe inputs can improve context, and production use needs guardrails for open-position handling, latency, and...
π Read | Forum | @mql5dev
β€12π4β‘1π1
Most MT5 indicators lean on mean, standard deviation, and least-squares regression, which collapse under outliers: a single bad tick or gap can drag the mean, inflate volatility, and even flip a regression slope.
A robust alternative replaces those estimators with median, MAD (scaled by 1.4826 to match sigma on clean data), and Theil-Sen slope (median of pairwise slopes). These keep meaning until a large fraction of the window is corrupted, unlike classical tools with effectively zero tolerance.
The core is a single include, RobustStats.mqh, using a ring buffer for O(1) updates and a one-pass ComputeAll() that returns robust and classical metrics over the same window for fair comparison. Three drop-in indicators mirror bands, channels, and oscillators, plus an overlay and a breakdown-point script to quantify stability and highlight edge cases (NaNs, ...
π Read | VPS | @mql5dev
A robust alternative replaces those estimators with median, MAD (scaled by 1.4826 to match sigma on clean data), and Theil-Sen slope (median of pairwise slopes). These keep meaning until a large fraction of the window is corrupted, unlike classical tools with effectively zero tolerance.
The core is a single include, RobustStats.mqh, using a ring buffer for O(1) updates and a one-pass ComputeAll() that returns robust and classical metrics over the same window for fair comparison. Three drop-in indicators mirror bands, channels, and oscillators, plus an overlay and a breakdown-point script to quantify stability and highlight edge cases (NaNs, ...
π Read | VPS | @mql5dev
β€9π3π1
Running one EA per symbol hides portfolio risk: correlated pairs can stack exposure, turning multiple βsafeβ trades into one concentrated drawdown. The article proposes a masterβslave architecture to coordinate trading across symbols.
A Portfolio Controller (master) holds no positions; it computes equity-based risk budget, enforces drawdown kill switches, and broadcasts limits. Instrument Agents (slaves) generate signals per symbol but must query shared limits before any order, separating strategy code from capital governance.
State sharing uses MT5 global variables for low-latency scalar flags (budget, max lots, halt), with named pipes or files reserved for structured, slower updates. A readiness handshake prevents trading on uninitialized state, timers drive controller updates, and degraded mode keeps agents running conservatively if the controller dis...
π Read | Freelance | @mql5dev
A Portfolio Controller (master) holds no positions; it computes equity-based risk budget, enforces drawdown kill switches, and broadcasts limits. Instrument Agents (slaves) generate signals per symbol but must query shared limits before any order, separating strategy code from capital governance.
State sharing uses MT5 global variables for low-latency scalar flags (budget, max lots, halt), with named pipes or files reserved for structured, slower updates. A readiness handshake prevents trading on uninitialized state, timers drive controller updates, and degraded mode keeps agents running conservatively if the controller dis...
π Read | Freelance | @mql5dev
π10β€5
Aggregate stats in MQL5 signals can hide trade sequencing. Win rate, profit factor, drawdown, and a smooth equity curve summarize outcomes, not sizing and exposure mechanics.
A native MT5 auditor is proposed to grade βHidden Risk-of-Ruinβ from A to F using four checks on reconstructed closed positions: volume escalation after losses (martingale), overlapping same-direction entries at worsening prices (grid), payoff asymmetry (small wins vs rare large losses), and a classical risk-of-ruin estimate for a chosen risk-per-trade.
Implementation is split into two scripts: an exporter that rebuilds positions from deal history into CSV, and an auditor that loads CSV or runs a reproducible demo and prints findings in the Experts tab. No external dependencies.
π Read | CodeBase | @mql5dev
A native MT5 auditor is proposed to grade βHidden Risk-of-Ruinβ from A to F using four checks on reconstructed closed positions: volume escalation after losses (martingale), overlapping same-direction entries at worsening prices (grid), payoff asymmetry (small wins vs rare large losses), and a classical risk-of-ruin estimate for a chosen risk-per-trade.
Implementation is split into two scripts: an exporter that rebuilds positions from deal history into CSV, and an auditor that loads CSV or runs a reproducible demo and prints findings in the Experts tab. No external dependencies.
π Read | CodeBase | @mql5dev
π5β€2π1
CustomAverage implements a two-stage adaptive moving average: a selectable base MA on price, followed by an independent smoothing MA applied to the base output. This setup improves responsiveness versus a single long MA while keeping the line more stable than a short MA.
The plot is slope-colored, switching based on bar-to-bar direction. Optional arrows mark close/average crossovers: bullish when the close moves from below to above the line, bearish on the reverse. A corner label prints the current average value.
The calculation runs left-to-right on closed bars only, with no future data usage and no historical repainting. Updates use prev_calculated logic to recompute only changed bars, keeping runtime low on deep histories and small timeframes.
Key inputs include MA periods, MA methods (SMA/EMA/SMMA/LWMA), applied price, signal toggles, arrow code...
π Read | AppStore | @mql5dev
The plot is slope-colored, switching based on bar-to-bar direction. Optional arrows mark close/average crossovers: bullish when the close moves from below to above the line, bearish on the reverse. A corner label prints the current average value.
The calculation runs left-to-right on closed bars only, with no future data usage and no historical repainting. Updates use prev_calculated logic to recompute only changed bars, keeping runtime low on deep histories and small timeframes.
Key inputs include MA periods, MA methods (SMA/EMA/SMMA/LWMA), applied price, signal toggles, arrow code...
π Read | AppStore | @mql5dev
β€6π4
MetaTrader 5 trendlines are purely graphical, so EAs canβt natively detect touches, bounces, or meaningful breakouts. This article bridges that gap by wrapping each chart trendline into a managed runtime entity with identity, memory, and a controlled lifecycle.
The design is event-driven for user actions (create/drag/modify) and confirmation-driven for market logic, using closed candles to avoid intrabar noise. States progress through active, touched/pending, bounced, and broken, with configurable thresholds for proximity, volatility, and consecutive closes.
Responsibilities are split cleanly: chart synchronization, geometry projection, lifecycle decisions, and visual debugging (color-coded states). A central manager discovers existing objects, maintains a collection of managed trendlines, and coordinates updates across multiple lines.
π Read | Freelance | @mql5dev
The design is event-driven for user actions (create/drag/modify) and confirmation-driven for market logic, using closed candles to avoid intrabar noise. States progress through active, touched/pending, bounced, and broken, with configurable thresholds for proximity, volatility, and consecutive closes.
Responsibilities are split cleanly: chart synchronization, geometry projection, lifecycle decisions, and visual debugging (color-coded states). A central manager discovers existing objects, maintains a collection of managed trendlines, and coordinates updates across multiple lines.
π Read | Freelance | @mql5dev
β€8π5π1π¨βπ»1
Order reject 130 (βInvalid stopsβ) is often caused by server contract limits, not EA logic. Key constraints are stop level, freeze level, and volume rules (min/step/max lot). These values are per symbol, broker-specific, and can change without notice.
A lightweight script can print symbol specifications without placing, modifying, or closing trades, and without requiring algo trading to be enabled. It can read a comma-separated symbol list or use the current Market Watch set.
Output includes digits, point, tick size/value, contract size, lot limits, spread mode, execution mode, swaps, and margin required for one minimum lot vs free margin. The most actionable line computes the nearest stop level the server should accept, returned in price units to avoid pip/point mistakes on 5-digit symbols.
Stop validation should use the larger of stop level and freeze leve...
π Read | AppStore | @mql5dev
A lightweight script can print symbol specifications without placing, modifying, or closing trades, and without requiring algo trading to be enabled. It can read a comma-separated symbol list or use the current Market Watch set.
Output includes digits, point, tick size/value, contract size, lot limits, spread mode, execution mode, swaps, and margin required for one minimum lot vs free margin. The most actionable line computes the nearest stop level the server should accept, returned in price units to avoid pip/point mistakes on 5-digit symbols.
Stop validation should use the larger of stop level and freeze leve...
π Read | AppStore | @mql5dev
β€4π3π1
DoEasy indicator handling in MQL5 received a custom indicator object to complement the standard indicator set.
Standard indicators use fixed, known inputs and can be instantiated via dedicated constructors. Custom indicators require an MqlParam[] passed to a creation method, including a mandatory TYPE_STRING element with the indicator path/name. A new indicator group βanyβ covers unknown type until the user assigns trend/oscillator/volume/arrow.
The indicator base class adds an ID property, ID-based sorting, and data access helpers that fetch a single value via CopyBuffer() by bar index or time. Parameter descriptions for custom indicators are printed sequentially from MqlParam[].
Indicator collection creation now checks ID uniqueness, supports custom indicator lookup by group+MqlParam[], and provides GetByID/SetID. On timeframe changes, duplicate handles...
π Read | AppStore | @mql5dev
Standard indicators use fixed, known inputs and can be instantiated via dedicated constructors. Custom indicators require an MqlParam[] passed to a creation method, including a mandatory TYPE_STRING element with the indicator path/name. A new indicator group βanyβ covers unknown type until the user assigns trend/oscillator/volume/arrow.
The indicator base class adds an ID property, ID-based sorting, and data access helpers that fetch a single value via CopyBuffer() by bar index or time. Parameter descriptions for custom indicators are printed sequentially from MqlParam[].
Indicator collection creation now checks ID uniqueness, supports custom indicator lookup by group+MqlParam[], and provides GetByID/SetID. On timeframe changes, duplicate handles...
π Read | AppStore | @mql5dev
π4β€1