Move Ichimoku-Cloud to the left
Forums › ProRealTime English forum › ProBuilder support › Move Ichimoku-Cloud to the left
- This topic has 6 replies, 3 voices, and was last updated 6 years ago by Alai-n.
-
-
01/26/2018 at 8:29 AM #60559
Hey everybody,
I try to move the Ichimoku future cloud to the left, so that the future cloud is directly under the latest candle.
Normaly the Ichimoku cloud is 26 periods in the future. I want it 0 periods in the future. Is that possible?
In the “normal” PRT-indikator Ichimoku I can not find any possibility the move the cloud.
I took the code from Nicolas for the Ichimoku, but there is some different problem. I dont see the future cloud …
Can anyone help me to move the future cloud under the last candle?
Ichimoku Code from Nicolas
Ichimoku from Nicolas12345678910111213141516171819202122232425p1=9p2=26p4=26p3=52REM Tenkan-Sen = (Highest High + Lowest Low) / 2, for the past 9 daysUpper1 = HIGHEST[p1](HIGH)Lower1 = LOWEST[p1](LOW)Tenkan = (Upper1 + Lower1) / 2REM Kijun-Sen = (Highest High + Lowest Low) / 2, for the past 26 daysUpper2 = HIGHEST[p2](HIGH)Lower2 = LOWEST[p2](LOW)Kijun = (Upper2 + Lower2) / 2REM Senkou Span A = (Tenkan + Kijun) / 2, plotted 26 days ahead of todaySpanA = (Tenkan[p4] + Kijun[p4]) / 2REM Senkou Span B = (Highest High + Lowest Low) / 2, for the past 52 days, plotted 26 days ahead of todaySpanB = ((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, Kijun01/26/2018 at 9:08 AM #60561remove p4 from code
1 user thanked author for this post.
01/26/2018 at 9:17 AM #60562Thank you Brisvegas!!
Can you tell me how to get the indicator directly into the window with the chart?
I have the Ichimoku now in a separate window.
01/26/2018 at 9:37 AM #6056601/26/2018 at 1:42 PM #60609@Danielbanker. Would it be possible for you to post the final code? Thank you
01/26/2018 at 1:51 PM #60611Ofcourse! It’s this one:
12345678910111213141516171819202122232425p1=9p2=26p4=0p3=52REM Tenkan-Sen = (Highest High + Lowest Low) / 2, for the past 9 daysUpper1 = HIGHEST[p1](HIGH)Lower1 = LOWEST[p1](LOW)Tenkan = (Upper1 + Lower1) / 2REM Kijun-Sen = (Highest High + Lowest Low) / 2, for the past 26 daysUpper2 = HIGHEST[p2](HIGH)Lower2 = LOWEST[p2](LOW)Kijun = (Upper2 + Lower2) / 2REM Senkou Span A = (Tenkan + Kijun) / 2, plotted 26 days ahead of todaySpanA = (Tenkan[p4] + Kijun[p4]) / 2REM Senkou Span B = (Highest High + Lowest Low) / 2, for the past 52 days, plotted 26 days ahead of todaySpanB = ((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, Kijun01/26/2018 at 2:41 PM #60618 -
AuthorPosts
Find exclusive trading pro-tools on