Universal Timed Alerts

This indicator can be used on time based and non‐time based bars (such as range, renko, unirenko) to provide alerts to specific user definable time based events such as Market open, news releases, reversal period, lunch, etc. Each "event" is preceded by two alerts, by default the first occurs 5 minutes before the event, the second occurs at 1 minute before the event. (I started with 1 at five minutes but then I forgot so now theres two!) The pre‐event alert times can also be changed but they globally effect all events so if you would rather have like 10 minute and 2 minute notice then all events will have the same"pre‐event" periods.

The indicator can alert you in different optional ways: Sound, Chart background coloring, On chart textbox (recommended) and alert window outputs.

The indicator can handle 10 different events, each input is in hh:mm:ss format. For each event you can enter a message that will appear on screen (if you select chart text box) as well as the alert window (if you select alert window output).

The indicator can also place "markers" at each event time that will show up on historical data in addition to live data. The marker is a user defined vertical line. Optionally a message box of your choosing can be used to display the message at each marker with user defined font size/type/style and a user defined offset from the top of the bar where the event occurred at.

I built a great many options for the user to change/set so that it can completely configured. The sound files use the standard Alert3 & alert4 but can be any wav type file, just be sure to include the complete file path and name.

Note 1: By default, indicator will open showing only 1 event. To add more events, change the first line (Number Of Events) from 1 up to 10. After pressing enter or clicking elsewhere in the indicator, the indicator panel will resize showing the selected number of events and messages.

Note 2: Text box color is fixed and will start with yellow background and black letters. When the final pre‐event timer triggers it will change the text box background to red, with white letters. The text box opacity can be set from 1 to 10 (10% to 100%). the text box can be display in any of 5 positions, the 4 corners and center. Option: If you install the indicator in its own panel or overlay it on another indicator panel, the text box and coloring will stay in that panel.

Another use of this indicator would be to color the background at different times, like creating a no trade zone of time. To do this set the pre‐event 1 to the duration of the zone and the Event time to be the end period of that zone. The pre‐event time does apply to all events and is not individually adjustable, in this version.

Another use would be to set an event for each hour so that you are alerts 5 minutes and 1 minute before a potential direction change.

Created By Tasker-182
NinjaTrader Version 7
File Size 11.3 KB
Create Date 04/02/2014
# of Downloads 1730

Importing to NinjaTrader 7 is Easy!

To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:

  1. Download the app or add-on file to your desktop
  2. From the NinjaTrader Control Center window, select the menu File > Utilities > Import NinjaScript
  3. Select the downloaded file from your desktop

Questions?

Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.