거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
스크립트

Spread Statistics by Hour - MetaTrader 5용 스크립트

조회수:
110
평가:
(2)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

This script measures the historical spread of many symbols at once, hour by hour, using the spread stored in the M1 bars of your broker. It helps you see the real trading cost of each symbol and the cheapest and most expensive hours to trade.

Mean spread by server hour for GBPUSD, US100 and XAUUSD over the last 90 days.

How to use: attach the script to any chart. By default it analyses all symbols in Market Watch over the last 90 days; you can also give your own comma-separated list of symbols.

Inputs:

  • Use all symbols in Market Watch (true/false)
  • Comma-separated symbol list (used when the option above is false)
  • Days of M1 history to read (default 90)
  • Output file name prefix

Output (folder MQL5\Files):

  • SpreadStats_hours.csv: for each symbol and server hour, the median, 75th percentile and mean spread, in points and as a % of price
  • SpreadStats_specs.csv: swap long/short, contract size, point, digits and tick value of each symbol

A short summary for each symbol is printed in the Experts tab.

Notes:

  • MetaTrader stores in each bar the spread of the bar (usually the minimum), so values are slightly optimistic.
  • On raw-spread accounts many M1 bars store a spread of 0, so the median can be 0: in that case use the mean column.
  • The script does not trade and does not change any setting.
  • Developed with the help of AI tools and tested on a live MetaTrader 5 terminal.
Risk Order Script: Drop at Stop Loss for Auto Lot Size and R:R Take Profit Risk Order Script: Drop at Stop Loss for Auto Lot Size and R:R Take Profit

Drop the script on the chart at your stop loss price and it opens a market order with the lot size calculated from your risk percentage and take profit placed at your reward:risk ratio.

Economic Calendar Event Lines by Impact Economic Calendar Event Lines by Impact

Draws a dotted vertical line at the release time of each economic calendar event of the selected currencies, coloured by impact, from the built-in MetaTrader 5 calendar.

Mouteki DeMark Enhanced with FDI and Hurst Exponent - indicator for MetaTrader 5 Mouteki DeMark Enhanced with FDI and Hurst Exponent - indicator for MetaTrader 5

Mouteki-DeMark trendline indicator enhanced with FDI and Hurst Exponent analysis, breakout targets, a market dashboard, and signal, invalidation and early-close alerts.

Opening Range Breakout (ORB) Box with Breakout Arrows Opening Range Breakout (ORB) Box with Breakout Arrows

An indicator that draws the opening range of each trading day as a box, extends its high and low through the session, and marks the first breakout with a buy or sell arrow.