Ranged price (High - Low) of the required Historical element.
SYNTAX
public double Range (int offset)
PARAMETERS
offset — int
RETURN
double Returns a double value representing the ranged price of the required Historical element.
EXAMPLE
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Drawing; using PTLRuntime.NETScript; namespace RangeExamples { public class RangeExamples : NETStrategy { public override void OnQuote() { Instrument inst = Instruments.GetInstrument("/ES[U4]"); BarData Bars = GetHistoricalData(new HistoricalDataRequest(inst,Period.Min)) as BarData; if(Bars!=null) { Print(Bars.Range(1)); } } } }