I would like to add a plot of variable1 on a second panel. What would be the best way to do this?
Here is the code:
#region Variables
private DataSeries ds1;
private double variable1;
#endregion
protected override void Initialize()
{
Add("SHY", PeriodType.Minute, 1);
CalculateOnBarClose = false;
ds1 = new DataSeries(this);
}
protected override void OnBarUpdate()
{
if(BarsInProgress == 0)
{
ds1.Set(Closes[0][0] / Closes[1][0]);
variable1 = (SMA(ds1, 14)[0]);
}
{
Code goes here...
}
}
Thanks,
Lee
Comment