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

View as Markdown

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

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