Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Economic Calendar Event Lines by Impact - indicator for MetaTrader 5

Kenichiro Sakamoto
Kenichiro Sakamoto
5 (2)
I'm Kenichiro Sakamoto, the developer behind FXEA365 — a studio building transparent, rule-based Expert Advisors for MetaTrader 5.
Views:
43
Published:
news_marker.png (109.61 KB)
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The indicator marks economic releases on the chart. It reads the built-in MetaTrader 5 economic calendar and draws a dotted vertical line at the time of every event of the selected currencies, from InpDaysBack days before the current server time to InpDaysForward days after it. Each line has a tooltip with the currency and the name of the event.

Only events whose impact is at least InpImportance are drawn. High-impact events use the high-impact colour, medium-impact events the medium colour and low-impact events the low colour. InpCurrencies is a comma-separated list of currency codes such as USD,EUR,JPY. When it is empty, the events of all currencies are shown.

The lines are rebuilt on every new bar and every five minutes by a timer, so newly scheduled events appear without reloading the indicator. The lines are drawn in the background and cannot be selected, so they do not get in the way of other objects. All lines are removed when the indicator is deleted from the chart.

The calendar is provided by the terminal and needs a connection to the trade server. It is not available in the strategy tester, so in the tester the indicator loads without drawing anything.

Input parameters

  • InpDaysBack - number of past days to show (default 2).
  • InpDaysForward - number of days ahead to show (default 3).
  • InpImportance - minimum impact to show: 1 low, 2 medium, 3 high (default 2).
  • InpCurrencies - comma-separated currency codes to include; empty shows all currencies (default USD,EUR,JPY).
  • InpHighColor - colour of high-impact events (default Tomato).
  • InpMidColor - colour of medium-impact events (default Goldenrod).
  • InpLowColor - colour of low-impact events (default Gray).

The indicator only draws objects and has no buffers. It does not place or manage trades.

Economic calendar event lines on EURUSD H1 (InpDaysBack = 7)

Six-Timeframe EMA Trend Direction Panel Six-Timeframe EMA Trend Direction Panel

Compares a fast and a slow EMA on M5, M15, M30, H1, H4 and D1 and shows UP, DOWN or FLAT for each timeframe in one panel on the chart.

ATR Stop Distance and Risk-Based Lot Size Panel ATR Stop Distance and Risk-Based Lot Size Panel

Panel that shows the ATR of the last closed bar, a stop-loss distance derived from it, the money at risk for a chosen percentage of the balance and the lot size that matches that risk.

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.

Spread Statistics by Hour Spread Statistics by Hour

Historical spread statistics by hour for many symbols at once (median, 75th percentile, mean), exported to CSV. Does not trade.