Create DataSeries inside cbot
Created at 22 Oct 2015, 20:07
Create DataSeries inside cbot
22 Oct 2015, 20:07
hi, currently i have seen that is only possible to create data series inside of indicators as is display up next:
private IndicatorDataSeries series;
protected override void Initialize()
{
series = CreateDataSeries();
}
public override void Calculate(int index)
{
series[index] = (MarketSeries.Close[index] + MarketSeries.Open[index]) / 2;
}
can you plkease explain me how to do this inside of a cbot?
Spotware
22 Oct 2015, 20:26
Dear Trader,
Please have a look at the following code snippet:
We hope this helps you.
@Spotware