Defines the data type in created historical data request.


SYNTAX

public DataType DataType { get; set; }



EXAMPLE

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

namespace HistoricalDataRequestExamples
{
     public class HistoricalDataRequestExamples : NETStrategy
     {
         public override void Init()
         {
             Instrument inst = Instruments.Current;
             HistoricalDataRequest HistReq = new HistoricalDataRequest(inst,Period.Day);
             if (HistReq.DataType == DataType.Ask)
                Print("Quote history would be with Ask as source...");
         }
     }
}