Period
property
Represent the period of historical elements.
Syntax
public int Period { get; }
Example
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;
namespace HistoricalDataPropertiesExamples
{
public class HistoricalDataPropertiesExamples : NETStrategy
{
public override void Init()
{
Instrument inst = Instruments.Current;
HistoricalData Hist = GetHistoricalData(new HistoricalDataRequest(inst,Period.Day));
Print(Hist.Count);
Print(Hist.DataType);
Print(Hist.HistoryMode);
Print(Hist.HistorySize);
Print(Hist.HistoryType);
Print(Hist.Instrument);
Print(Hist.Loading);
Print(Hist.Period);
Print(Hist.Reversal);
Print(Hist.Extension);
Print(Hist.Inversion);
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.
BarData methods
- BeginLoad (DateTime from, DateTime to)
- BeginLoad (DateTime from)
- BeginLoad (DateTime from, DateTime to, HistoricalDataLoadParams historicalDataLoadParams)
- Close (int offset)
- Close ()
- FindInterval (DateTime time)
- FindInterval (DateTime time, int from, int to)
- GetPrice (PriceType priceType, int offset)
- GetPrice (PriceType priceType)
- High (int offset)
- High ()
- Highest (PriceType type, int start, int count)
- Highest (PriceType type)
- Load (DateTime from, DateTime to)
- Load (DateTime from)
- Load (DateTime from, DateTime to, HistoricalDataLoadParams historicalDataLoadParams)
- Low (int offset)
- Low ()
- Lowest (PriceType type, int start, int count)
- Lowest (PriceType type)
- Medium (int offset)
- Medium ()
- Open (int offset)
- Open ()
- Range (int offset)
- Range ()
- Time (int offset)
- Time ()
- TimeClose (int offset)
- TimeClose ()
- TimeOpen (int offset)
- TimeOpen ()
- TrueRange (int offset)
- TrueRange ()
- Typical (int offset)
- Typical ()
- Volume ()
- Volume (int offset)
- Weighted (int offset)
- Weighted ()
BarData properties
BarData events