I'm struggling with a really simple alert strategy.
It's based on Ichimoku indicator found here.
I used condition builder to alert me when chikou crosses kijun. As Chikou is drawn 26 bar ago in the chart, I can't get the alert to work good, My strategy alerts me at wrong places. I tried to change 'bars ago' and 'lookback' on either parameters with the same wrong result.
Please help me



/// </summary>
protected override void Initialize()
{
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (CrossAbove(IchimokuCloud(9, 26, 52).ChikouSpan, IchimokuCloud(9, 26, 52).KijunSen, 1))
{
Alert("MyAlert0", Priority.High, "Chikou crosses Kijun", "", 10, Color.White, Color.Black);
}
}
#region Properties
#endregion
}
}

Comment