HistoryType
property
Defines the history building type in created historical data request.
Syntax
public HistoryType HistoryType { 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 OnQuote()
{
Instrument inst = Instruments.Current;
HistoryType HT = CurrentData.HistoryType == HistoryType.Renko ? HistoryType.Renko : HistoryType.Simple;
HistoricalDataRequest HistReq = new HistoricalDataRequest(inst, Period.Day, DataType.Ask, HT, 10, 0, BarsAggregations.None);
Print("History type is"+ HistReq.HistoryType.ToString());
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.