Lowest (PriceType type)
method
Returns bar index of lowest price presented in entire history of loaded history object.
Syntax
public int Lowest (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 LowestExamples
{
public class LowestExamples : NETStrategy
{
public override void OnQuote()
{
Instrument inst = Instruments.Current;
HistoricalData Hist = GetHistoricalData(new HistoricalDataRequest(inst,Period.Day));
Print(Hist.Lowest(PriceType.Close,0,10));
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.