Worked fine in B9 but when I just tried it again, the scaling is off.
I pared the strategy down to just the basics and it still has the same issue.
Tried this on TF and 6B, same results. Got it to work correctly on 6E.
Am I missing something?
protected override void Initialize()
{
CalculateOnBarClose = true;
AddHeikenAshi("TF 06-10", PeriodType.Minute, 1, MarketDataType.Last);
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
if (BarsInProgress == 1)
{
if (High[0] >= Bollinger(2, 14).Upper[0])
{
DrawDiamond("tagshort23" + CurrentBar, true,0, High[0] + 2 * TickSize, Color.Purple);
}
else if (Low[0] <= Bollinger(2, 14).Lower[0])
{
DrawDiamond("taglong23" + CurrentBar, true,0, Low[0] - 2 * TickSize, Color.Purple);
}
}
}

Comment