SQ_Ichimoku(9, 26, 12, 4) is always ZERO. So there is only long trades, because that the short condition will never be true.
I have tested it with different backtest engine in SQ.
we have already dealt with this problem in past.
Chikou span is ussually current Close price plotted 26 bars ago. Programmatically it is quite a problem.
All of the Ichimoku indicators found online deal with this simply graphically. They just plot current close price at the position 26 bars before current bar.
But to be able to compare backtest results between SQ and trading platforms, we need to have the data handled in-memory.
Unfortunately, it can't be done, because we are unable to change past indicator buffer values, we can set values for the current bar only.
This problem has probably no other solution than just to ignore Chikou Span and don't use it in strategies.
Best regards,
Tomas
Basically we can completely ignore ChikouSpan and use simple Close price instead.
What I said is not correct.
Chikou span Line means the current close shifted to left. And it means comparing the current close and the close 26 bars ago equivalently, I guess.
OR it may be not a good indicator value for strategy generating.
What does "(Ichimoku(Main chart,9, 26, 12).ChikouSpan[1] < Close(Main chart)[1]));" really mean?