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

Spread Spike Histogram with Moving Average - MetaTrader 5용 지표

Kenichiro Sakamoto
Kenichiro Sakamoto
5 (2)
저는 Kenichiro Sakamoto이며, MetaTrader 5용 투명하고 규칙 기반의 EA(Expert Advisor)를 만드는 스튜디오 FXEA365의 개발자입니다.
조회수:
54
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The indicator draws the spread of every bar in points as a histogram in a separate window. For the history it uses the bar spread stored in the price data, and for the current bar it uses the live spread of the symbol. A blue line shows the simple average of the spread over the previous bars.

A bar is colored red when its spread is greater than the average multiplied by a factor, or greater than a fixed ceiling in points. In this way it is easy to see the hours when the spread usually widens, for example around the daily rollover, and to avoid placing orders at those times. An optional alert is given once per bar when the current bar becomes a spike.

Fig. 1. The indicator on a GBPJPY H1 chart; the red bars are the rollover hours

Input parameters

  • InpAvgPeriod - number of previous bars used for the spread average.
  • InpSpikeFactor - a bar is a spike when its spread is greater than the average multiplied by this factor; the value must be greater than 1.
  • InpCeiling - fixed spread ceiling in points; a bar with a larger spread is also a spike; 0 turns the ceiling off.
  • InpAlert - show an alert when the current bar becomes a spike.

Notes

The bar spread in the history depends on what the broker stores, which is usually the smallest spread of the bar. The real spread inside a bar can be wider, so the histogram shows the typical pattern of the spread rather than every short widening.

Economic News Window Flag for Pausing Expert Advisors Economic News Window Flag for Pausing Expert Advisors

Utility Expert Advisor that reads the built-in economic calendar and sets a terminal global variable to 1 around important events, so other Expert Advisors can skip new entries during the news.

Trade List Report — a colorful PDF of your trades, written in pure MQL5 Trade List Report — a colorful PDF of your trades, written in pure MQL5

Prints a colorful, print-ready PDF report of your last N trades: KPI cards, a win-rate donut, a zebra table with BUY/SELL pills and diverging profit bars. Pure MQL5 — no DLL, no external converter. Saved to `MQL5\Files`.

Missing Stop Loss and Take Profit Setter Missing Stop Loss and Take Profit Setter

Utility Expert Advisor that finds open positions without a stop loss or take profit and adds them at a fixed distance in pips from the open price. It never opens or closes trades.

MACD Signals MACD Signals

Indicator edition for new platform.