Constructor for historical data request with instrument and period input parameters.
SYNTAX
public HistoricalDataRequest (Instrument instrument,int period)
PARAMETERS
instrument — Instrument
period — int
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)); } } }