News Alerts

[note class=”time”]Time reading this page: 5 minutes
Time installing the indicator: Just a few minutes with our MetaTrader Pro setup[/note]

What does it do?

The Analytic Trading News Indicator for MetaTrader overlays up-coming and recent news events relevant to the instrument chart it is added to, with the optional display of all USD news events.

It will display screen alerts and send email alerts at specified times before events, and shows the typical impact of the event, previous and forecast figures – all taken from the data feed provided at forexfactory.com/calendar.php.

MetaTrader News Indicator and Alerts by Analytic Trading

Credit for the original version of this indicator goes to DerkWehler and his excellent thread on Forex Factory where you can download his version for free. Our version is simply contains our added display and pip calculation functionality to work better for our needs.

What is it for?

Although we are technical traders, it is the news events that create the volatility we are looking for to find the best trade setups. It is also important to monitor news events when there is an open trade on the relevant instrument.

How do we use it?

By default, we have the news indicator displayed on our S&P 500 chart in the top-left window of all forex, commodity and index profile layouts, to monitor market risk-sentiment and events likely to cause significant price movements.

Then, when we have a trade open on an instrument, we will make sure we have one chart with the news indicator displayed so that we can monitor the price-action that evolves around risk events, to help manage our trades.

[note class=”info”]Make sure you bookmark and regularly review the News Calendar at ForexFactory.com and ForexPeaceArmy.com[/note]

[clearline]

News Alert specific settings

In most cases these settings can be left on the default values, although users with different strategies or preferences to our own may want to be able to adjust them.

VariableDefault ValuePossible ValuesDescription
IncludeHightrue/falsetrueThe switch to show High volatility news events on the current forex instrument chart.
IncludeMediumtrue/falsetrueThe switch to show Medium volatility news events on the current forex instrument chart.
IncludeLowtrue/falsefalseThe switch to show Low volatility news events on the current forex instrument chart.
IncludeSpeakstrue/falsetrueThe switch to show events where notable market influencers speak.
IsEA_Callfalse/truefalseThe News indicator has the ability to trigger EA trades for developers.
OffsetHours0-12 to 12The GMT/BST Offset for your local timezone.
AllowWebUpdatestrue/falsetrueSet this to false when another indicator instance is already running on that same symbol and same period.
Alert1MinsBefore-1integerThe number of minutes before an event to show the first screen alert.
Alert2MinsBefore-1integerThe number of minutes before an event to show the second screen alert.
Email1MinsBefore-1integerThe number of minutes before an event to send the first email alert.
Email2MinsBefore-1integerThe number of minutes before an event to send the second email alert.
ReportAllForUSDtruetrue/falseThe switch to show all USD news events regardless of the instrument chart used.
EnableLoggingfalsetrue/falseDebugging logs.
ShowNextTwoEventstruetrue/falseThe switch to show the on-chart text information for the latest 2 relevant events.
ShowVertNewsfalsetrue/falseThe switch to show lines on the actual chart bars for news events.
TxtSizeTitle7integerThe title text size.
TxtSize7integerThe details text size.
TxtColorTitleGrayany colour name or RGB valueThe indicator title text colour.
TxtColorNewsDeepSkyBlueany colour name or RGB valueThe news event name colour.
TxtColorImpactRedany colour name or RGB valueThe impact text colour.
TxtColorPreviousPeruany colour name or RGB valueThe previous text colour.
TxtColorForecastLimeany colour name or RGB valueThe forecast text colour.
VertTxtShift21integerThe distance of the bar lines text from the bar
VertLeftLineShift900integersHow far away to the left of the line we want to place our vertical news text.
VertRightLineShift200integersHow far away to the left of the line we want to place our vertical news text.
VertLineColorSlateBlueany colour name or RGB valueThe bar lines colour.
VertTxtColorDimGrayany colour name or RGB valueThe bar lines text colour.
VertTxtSize7integersThe vertical text size.
NewsCorner2integersThe corner to display the next 2 events text display. 0=Upper Left, 1=Upper Right, 2=Lower Left , 3=Lower Right
NewsXPos3integersThe distance from the chosen corner.
SaveXmlFilestruetrue/falseThe ability to generate daily Xml files of news events. These can be used with EAs capable of using them for filtering news events in backtesting.

 

[toggle title=”Pip Calculation Settings”]

Pip calculation settings used on all indicators

In most cases these can be left on the default settings but may be used where you would like price shown in pips accurately on a broker where we have not yet tested the calculation for their setup.

VariableDefault ValuePossible ValuesDescription
TradeDPCalcTypeautoauto/semi-auto/manualFor most brokers the indicator can automatically calculate the value of a pip using “auto”. However, if pips are incorrectly displayed for a broker or instrument you can try “semi-auto” and set the instrument type for the current chart, or you can set to “manual” and specify in a number to how may decimal points the value of a pip is.
TradeDP4whole numbersIf you need to use TradeDPCalcType=manual then here you need to specify the number of decimal places that 1 pip is at. So for a EURUSD price displayed as 0.12345 or 0.1234 the value would be 4, for USDJPY prices displayed as 00.123 or 00.12 the value would be 2.
ShowExtraInfofalsetrue/falseSetting this value to true will show the pip calculation mode in brackets at the end of the displayed text on the chart to help with diagnosing pip calculation.

 

[/toggle]

[toggle title=”Display Settings”]

Display settings used on all indicators

In most cases these can be left on the default settings for a nice clean chart setup. You may wish to change some of these settings if you have your own preferred chart colours and layout etc.

VariableDefault ValuePossible ValuesDescription
display_font_colourwhiteany colour name or RGB valueThe colour of the text comments information displayed on the chart.
display_font_size7any whole numberValues 6 to 12 are probably most appropriate. The default of 7 is designed to match the default instrument text information displayed in the top left corner of all MetaTrader charts.
display_corner00/1/2/30=TopLeft, 1=TopRight, 2=BottomLeft, 3=BottomRight.
display_distance_x3any whole numberThe horizontal distance in pixels to display the comment text from the selected corner.
display_distance_y25any whole numberThe vertical distance in pixels to display the comment text from the selected corner.
bgBoxColourBlackany colour name or RGB valueThe colour of the background block used to make the comment text more readable over the price bars/candles/lines behind them.
bgBox_width_perc32whole numbers from 20-100This is the multiplier used to approximate the text width for the background coloured block to match it and keep the text readable but not cover up too much of the price bars/candles/lines behind it.

[/toggle]