True ranged price of last Historical element.


SYNTAX


public double TrueRange ()


RETURN


double Returns a double value representing the true ranged price of the last Historical element.


EXAMPLE


using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;

namespace TrueRangeExamples
{
     public class TrueRangeExamples : 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.TrueRange());
           }
         }
     }
}