Opening Range

Another update to the Opening Range indicator. This one now uses Plots instead of drawing lines. Very flexible for setting line styles. (Why didn't I do that in the first place??) It takes opening range start time, opening range end time, and plot end time as input parameters, plus the normal plot mods.

I have also added methods and properties to be used from other indicators and strategies:

double GetRangeHighForDate(DateTime)
double GetRangeLowForDate(DateTime)

(If the range has not yet been put in for the given date, then they return previous day's range values. If previous day doesn't exist, then they return ‐1.)
DataSeries RangeHighSeries
DataSeries RangeLowSeries
bool TodaysRangeIsIn

I just finished the code and only tested on a tick chart. Have not tested the TodaysRangeIsIn property at all yet. I'll update if I find a problem with it later. Let me know if you get errors.

Created By sh_daggett
NinjaTrader Version 7
File Size 4.4 KB
Create Date 11/09/2012
# of Downloads 3055

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.