GetDayBar
Description
Parameters
Return value
Usage
GetDayBar (int daysAgo)Example
[TimeFrameRequirements("1 day")]
public class xy : UserIndicator
{
int daysAgo = 5;
double historicalClose = Instrument.Round2TickSize(GetDayBar(daysAgo).Close);
}
protected override void OnStart()
{
Print("The closing price from " + daysAgo + " days ago was at " + historicalClose);
}Last updated