I'm using the 2 attachments as my Ichimoku indicators:
(1) IchiCloud - to plot the Senkou Span A & Senkou Span B, which collectively form the Kumo (cloud)
(2) Ichilines - to plot the Tenkan Sen, Kijun Sen & Chikou Span
Once these indicators are active on the chart, I've created the following 3 strategies (via Tools>New NinjaScript>Strategy)
(a) Tenkan/Kijun Cross - Go long when the Tenkan Sen Crosses above the Kijun Sen above the Kumo - This strategy works fine & plots a vertical line at the bar where the conditions are met.
(b) Senkou Span Cross - Go long when the Senkou Span A crosses above the Senkou Span B, and the price is above the Kumo. This strategy works fine & plots a vertical line at the bar where the conditions are met.
(c) Kumo Breakout - Go long when the Price breaks out above the Kumo. Now it is here where I'm having the problem. The most basic function I am using is - "If the closing price crosses above the Senkou Span A, then plot Vertical line." However, I don't get the correct result and get many vertical lines in the wrong places. I've also tried different options for "Offset" and "Bars Ago" (as the Kumo is plotted 26 bars ahead of the price) but still no luck. The screenshot of the Condition builder is attached.
As I was able to get the first two strategies to work fine - Can anyone please suggest what I may be doing wrong for the last strategy?
Many thanks
Comment