PDA

View Full Version : Indicator: Calculating the highest high or lowest low for a specified time range


NinjaTrader_Ray
07-01-2008, 01:22 PM
Determining a high or low value for given time range can be useful.

The attached reference sample demonstrates the following concepts:


Converting time to bars ago values
Getting the highest high and lowest low values

Important methods and properties of interest include:

GetBar() (http://www.ninjatrader.com/support/helpGuides/nt7/getbar.htm)
MAX() (http://www.ninjatrader.com/support/helpGuides/nt7/maximum_max.htm)
MIN() (http://www.ninjatrader.com/support/helpGuides/nt7/minimum_min.htm)

Import instructions for NinjaTrader 6.5.XXXX.X or greater:

Download the file contained in this thread to your PC desktop
From the Control Center window, select the menu File > Utilities > Import NinjaScript
Select the downloaded file