Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Indicateurs

Economic Calendar Event Lines by Impact - indicateur pour MetaTrader 5

Kenichiro Sakamoto
Kenichiro Sakamoto
5 (2)
Je suis Kenichiro Sakamoto, le développeur de FXEA365, un studio qui conçoit des Expert Advisors transparents et basés sur des règles pour MetaTrader 5.
Vues:
114
Note:
(2)
Publié:
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur 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.