I used the Strategy Builder to create this very simple strategy (no executions yet, just plots), but it doesn't plot anything.
Any pointer as to why it doesn't work would be greatly appreciated.
Thanks
{
SMA1 = SMA(Close, 50);
}
}
protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 1)
return;
// Set 1
if ((High[0] >= SMA1[0])
&& (Low[0] < SMA1[0])
&& (High[0] < High[1]))
{
Draw.ArrowUp(this, @"Strat1 Arrow up_1", false, 0, 0, Brushes.Black);
}
}
Comment