Calculating the highest high or lowest low for a specified time range

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Educational Resources > Reference Samples > Indicator >

Calculating the highest high or lowest low for a specified time range

Previous page Return to chapter overview Next page

Determining a high or low value for given time range can be useful.

 

Key concepts in this example

Converting time to bars ago values

Getting the highest high and lowest low values

 

Important related documentation

GetBar()

MAX()

MIN()

 

Import instructions

1.Download the file contained in this Help Guide topic to your PC desktop

2.From the Control Center window, select the menu Tools > Import > NinjaScript

3.Select the downloaded file

 

SampleGetHighLowByTimeRange_NT8.zip