Hello,
I would be grateful if anyone knows if the following is possible:
When you incorporate the standard Ichimoku Kinko Hyo indicator which ProRealTime supply onto a chart the two elements of the Kumo cloud (Senkou Span A and Senkou Span B) are shown projected 26 periods forward. Are the projected values of the two lines available at all.
Many thanks
You can get these values with the Ichimoku code iself:
p1 = 9
p2 = 26
p3 = 52
REM Tenkan-Sen = (Highest High + Lowest Low) / 2, for the past 9 days
Upper1 = HIGHEST[p1](HIGH[1])
Lower1 = LOWEST[p1](LOW[1])
Tenkan = (Upper1 + Lower1) / 2
REM Kijun-Sen = (Highest High + Lowest Low) / 2, for the past 26 days
Upper2 = HIGHEST[p2](HIGH[1])
Lower2 = LOWEST[p2](LOW[1])
Kijun = (Upper2 + Lower2) / 2
REM Senkou Span A = (Tenkan + Kijun) / 2, plotted 26 days ahead of today
SpanA = (Tenkan + Kijun) / 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)) + LOWEST[p3](LOW)) / 2
Return Kijun AS "Kijun Line", Tenkan AS "Tenkan Line", SpanA AS"Span A", SpanB AS"Span B"
These lines are the ones calculated now, but plotted 26 periods ahead from now.
Thanks very much Nicolas. Really appreciate your help.