CostMT5 Indicator
Spread & Cost Monitor Panel
See the current spread and trading cost, right on your chart.
Shows the current spread and what it costs per lot, in a panel on your chart. You can instantly spot when spreads are widening and avoid entering at unfavorable times.
What it does
- ✓Displays current spread in real time (pips / points)
- ✓Shows the average spread since the indicator was started
- ✓Converts the spread into a per-lot cost in account currency
- ✓Highlights wide-spread periods with a color warning
Key Parameters
| Parameter | Default | Description |
|---|---|---|
| InpWarnSpread | 30 | Spread threshold for the warning (points) |
| InpCorner | Bottom-right | Panel position on the chart |
| InpFontSize | 10 | Font size |
| InpOkColor | Green | Color when spread is normal |
| InpWarnColor | Red | Color when spread is widening |
Installation
- 1Copy the .mq5 file to MT5's Data Folder > MQL5 > Indicators
- 2Compile in MetaEditor, or restart MT5
- 3Drag and drop the indicator from the Navigator onto your chart
Important Note
Spreads vary by broker, time of day, and market conditions. The cost shown is an estimate based on the current spread. For more on how trading costs work, see the knowledge base article "Swap and Trading Costs."
Other Indicators