Highest (PriceType type)
method
Returns bar index of highest price presented in entire loaded history object.
Syntax
public int Highest (PriceType type)
Parameters
type — PriceType
Return
int
Example
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;
namespace HighestExamples
{
public class HighestExamples : NETStrategy
{
public override void OnQuote()
{
Instrument inst = Instruments.GetInstrument("/ES[U4]");
HistoricalData Hist = GetHistoricalData(new HistoricalDataRequest(inst,Period.Day));
Print(Hist.Highest(PriceType.Close,0,10));
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.