Hi there,
I have created a very simple strategy just to plot the SMA and SMD indicators. My market data intervals are set to '5min' and 'Daily'. I am using one instrument.
After running the strategy, the indicators are only drawn for the '5min' data and not the 'Daily' data. Charts attached below.
Am I doing something wrong?
An answer to this would be really useful because my strategy combines indicators calculated over different intervals.
Thanks!
Matt
Code:
using System;
using System.Drawing;
using OpenQuant.API;
using OpenQuant.API.Indicators;
public class MyStrategy : Strategy
{
SMA avg;
SMD vol;
public override void OnStrategyStart()
{
vol=new SMD(Bars,32);
vol.Color=Color.White;
Draw(vol,3);
avg = new SMA(Bars, 10);
avg.Color = Color.Aqua;
Draw(avg, 2);
}
public override void OnBar(Bar bar)
{
}
}