HistoricalDataRequest (Instrument instrument, int period, DataType dataType)
constructor
Constructor for historical data request with instrument, period and dataType input parameters.
Syntax
public HistoricalDataRequest (Instrument instrument,int period,DataType dataType)
Parameters
instrument — Instrument
period — int
dataType — DataType
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 OnQuote()
{
Instrument inst = Instruments.Current;
HistoricalData Hist =GetHistoricalData(new HistoricalDataRequest(inst,Period.Day,DataType.Ask));
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.