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.
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.
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.
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.
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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Simple bar spread indicator as reported by the OnCalculate data - indicator for MetaTrader 5
Evaluating the Quality of Forex Spread Trading Based on Seasonal Factors in MetaTrader 5
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.