Getting high and low values from between 2 hours and 3 hours ago

Created at 31 Dec 2014, 03:21
deklin's avatar

deklin

Joined 31.12.2014

Getting high and low values from between 2 hours and 3 hours ago
31 Dec 2014, 03:21


In a cBot, how can I get the highest value and the lowest value for a symbol from between the time period of two hours ago and three hours ago?

protected override void OnTick()
{
    Print("The lowest value of the symbol between 2 hours and 3 hours ago was: {0}", ????????????? );
    Print("The highest value of the symbol between 2 hours and 3 hours ago was: {0}", ????????????? );
}

 


@deklin
Replies

Spotware
31 Dec 2014, 11:41

You can use MarketSeries collection and For loop.


@Spotware