Current spread and swap monitor - page 5

Simple bar spread indicator as reported by the OnCalculate data - indicator for MetaTrader 5

Simple bar spread indicator as reported by the OnCalculate data - indicator for MetaTrader 5

This is a very simple MQL5 code for an indicator to plot the values of the spread[] data (in points) as reported by the OnCalculate event handler. These are the same spread data values that would be returned when collecting MqlRates data via the CopyRates function.
Simple bar spread indicator as reported by the OnCalculate data
Simple bar spread indicator as reported by the OnCalculate data
  • www.mql5.com
Very simple indicator to plot the values of the spread[] data as reported by the OnCalculate event handler.

Evaluating the Quality of Forex Spread Trading Based on Seasonal Factors in MetaTrader 5

Evaluating the Quality of Forex Spread Trading Based on Seasonal Factors in MetaTrader 5

The article considers the creation of an indicator for assessing the seasonality quality using MQL5. It allows analyzing both the seasonality of a single symbol and the spread of two instruments. The indicator helps identify statistically significant seasonal movements, use weighting factors, and generate reports for a given month.
Evaluating the Quality of Forex Spread Trading Based on Seasonal Factors in MetaTrader 5
Evaluating the Quality of Forex Spread Trading Based on Seasonal Factors in MetaTrader 5
  • 2026.05.25
  • www.mql5.com
The article examines the quality of a seasonal trading approach on a daily timeframe, both for individual symbols and for spreads. Particular attention is paid to identifying recurring monthly cycles and the possibilities of their application in trading within the current year.

Measuring Spread Costs Before a Market Order in MQL5

Measuring Spread Costs Before a Market Order in MQL5

Before placing a planned Buy or Sell, how much of the expected favorable price move would remain after spread? The live Bid and Ask describe current entry conditions, but the estimate also depends on the spread assumed at exit.

In this article, we will build Trading Cost Planner, an MQL5 Expert Advisor for the chart's current symbol. It compares two spread-only estimates in points: one assumes the current spread at exit; the other uses the greater of the current spread and a percentile calculated from retrieved historical samples. Both estimates use the planned favorable movement of the midpoint between Bid and Ask. They are scenario calculations, not predictions of profit, and exclude commission, swap, and slippage.
Measuring Spread Costs Before a Market Order in MQL5
Measuring Spread Costs Before a Market Order in MQL5
  • 2026.11.11
  • www.mql5.com
The article implements a MetaTrader 5 Expert Advisor that provides spread-only pre-trade estimates in points for a planned Buy or Sell. It compares a current-spread result with a historical scenario that uses the maximum of the live spread and a selected percentile from recent Bid/Ask ticks, and shows both on a collapsible panel. Manual market execution is available without SL/TP, with readiness checks kept separate from the estimates.