支持中心 帮助文档 联系我们
📱 微信: 18391752892 | 💬 QQ: 3313198376 | ✈️ Telegram | 📧 fishfx123@gmail.com
EURUSD 1.0856 +0.12% GBPUSD 1.2678 +0.08% USDJPY 149.23 -0.15% XAUUSD 2034.56 +0.34% EURUSD 1.0856 +0.12% GBPUSD 1.2678 +0.08% USDJPY 149.23 -0.15% XAUUSD 2034.56 +0.34%

Spread Update Script

👤 作者: Samuel Golis

4.5 分

¥0.00

📌 版本: v2.0
📥 下载: 0
⭐ 评分: 4.5

📝 产品详情

Spread Update Script

作者Samuel Golis
版本v2.0
更新2025-11-24T17:24:08
激活数78603

Simple spread update script for updating your backtesting data and getting them as close as possible to your broker trading spread.

This step is often overlooked but very important to do if you want to have reliable backtests.


Import downloaded data into your MT5 (e.g. dukascopy data), load specific period of ticks (usual time of your trading) and compare the provided spread with your broker at your trading time.

To update the spread, load custom symbol to your market watch, open chart window and drag and drop SpreadUpdateSGv2 to the chart. Make sure you allow algo trading and set wanted settings.

SpreadFactor is simple multiplier, so for example if you want to half the spread just set value to "0.5" .

FixedSpread option allow you to set custom fix spread in points to all ticks.

Script name have to appear in right corner of chart with yellow icon.

Wait for the script to get work done, it might take couple of minutes, depends on volume of data and power of PC. When done, Script name from right corner will disappear and in Experts tab you should see message that Spread updating is done and number of ticks that were updated.

That's it. Happy backtesting.

安全须知

本产品仅通过 MQL5.com 官方渠道获取。其他渠道版本可能缺少完整功能和技术支持。

EA 配置

交易品种XAUUSD
时间框架H1 (推荐)
推荐经纪商IC Markets, IC Trading
最低存款$300 / 0.01手

📸 截图预览