Ichimoku Issue with scripting

Hiii,

I have a below formula for ichimoku signal. In my understanding the below code satisfy the conndition 1 i.e the close crosses above the upper band & if at that time chikou line is greater than upper band it should give a signal.
Now based on below code i apply to showbar and everything appears to be fine. In the below image the showbar appears so far so good.

Image-1

The problem arises when i go n select training mode and go back just one day the showbar disappear.
Image-2

Why is this happening. What i want is just whenever the close crosses above upper cloud chikou shall also be greater than cloud.

v1=CLOSE() CrossesAbove ICHIMOKUCLOUD(DEFAULT=CloudBandUpper); 
v2=ICHIMOKUCLOUD(DEFAULT=ChikouLine) >ICHIMOKUCLOUD(DEFAULT=CloudBandUpper); 
v1 and v2

Hi Deepak,

Using Training Mode with the Ichimoku won’t work because of the 26 period forward offsets used in the calculations.

Hi Deepak,

I use custom bar scripting and/or a second view for this type of testing with Ichimoku all the time and it works a treat so testing with Ichimoku can definitely be done :-), as I expect you’ve worked out now anyway…

Sir can you please give an example