Forums › ProRealTime English forum › ProBuilder support › Writing the Ichimoku indicator.. › Reply To: Writing the Ichimoku indicator..
09/30/2017 at 4:47 PM
#47885
The Chikou is the actual Close (the one from the current period), but it is plotted 26 bars in the past, that’s all. It is not possible to draw a curve in the past, you can try with dots or any ASCII char, but that’s not so important since you only want to get the good values for your strategy.
About the cloud, the problem is the same but in the opposite direction, with the projection in the future, even if you don’t see it, you can calculate it.
Do you love Ichimoku? I do 😉
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
p1=9 p2=26 p4=26 p3=52 REM Tenkan-Sen = (Highest High + Lowest Low) / 2, for the past 9 days Upper1 = HIGHEST[p1](HIGH) Lower1 = LOWEST[p1](LOW) Tenkan = (Upper1 + Lower1) / 2 REM Kijun-Sen = (Highest High + Lowest Low) / 2, for the past 26 days Upper2 = HIGHEST[p2](HIGH) Lower2 = LOWEST[p2](LOW) Kijun = (Upper2 + Lower2) / 2 REM Senkou Span A = (Tenkan + Kijun) / 2, plotted 26 days ahead of today SpanA = (Tenkan[p4] + Kijun[p4]) / 2 REM Senkou Span B = (Highest High + Lowest Low) / 2, for the past 52 days, plotted 26 days ahead of today SpanB = ((HIGHEST[p3](HIGH[p4])) + LOWEST[p3](LOW[p4])) / 2 //plot chikou in the past: drawtext("♥",barindex[26],close) coloured(255,0,0) Return SpanA AS "Span A" , SpanB AS "Span B", Tenkan, Kijun |