DataType
property
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...");
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.