Kumo Cloud in Ichimoku doesn't show the 26-day future price

Why I am not able to see the 26-day future price of the cloud. I only see the 13-day

image

Here's the code that I'm using

_SECTION_BEGIN("Ichi");
P1 = Param("Conversion Period", 9, 2, 200, 1, 0);
C1 = ParamColor("Conversion Color", colorBlue);
CL = (HHV(H,P1)+LLV(L,P1))/2;

P2 = Param("Base Period", 26, 2, 200, 1, 0);
C2 = ParamColor("Base Color", colorRed);
BL = (HHV(H,P2)+LLV(L,P2))/2;

C3 = ParamColor("Leading A Color", colorBrightGreen);
LSA = (CL+BL)/2;

P4 = Param("Leading B Span", 52, 2, 200, 1, 0);
C4 = ParamColor("Leading B Color", colorOrange);
LSB = (HHV(H,P4)+LLV(L,P4))/2;

P3 = Param("Leading Span Displacement", 26, 2, 200, 1, 0);

P5 = Param("Lagging Displacement", -26, 2, 200, 1, 0);
C5 = ParamColor("Lagging Color", colorGreen);

Plot(CL,"\nTenkan-sen (Conversion Line)", C1, styleLine,Null,Null,0,0,2);
Plot(BL, "\nKijun-sen (Base Line)", C2, styleLine,Null,Null,0,0,2);
Plot(LSA, "\nSenkou Span A (Leading Span A)", C3, styleLine,0, 1000, P3);
Plot(LSB, "\nSenkou Span B (Leading Span B)", C4, styleLine, 0, 1000,P3);
Plot(C, "\nChikou Span (Lagging Span)", C5, styleLine, 0, 0, P5);
PlotOHLC (LSA,LSA,LSB,LSB,"\nCloud",IIf(LSA>LSB,ColorBlend(C3, colorWhite, 0.6),
	ColorBlend(C4,colorWhite, 0.4)),styleCloud, 0, 0, P3);
_SECTION_END();

Here's the output:
image

I only see 13days future kumo..

1 Like

I believe you would need to tie-in your "leading span displacement" to the Blank bars @ right edge.

Something like:

SetChartoptions(P3 );

Or just press the END key on your keyboard

image

Thanks for the reply guys..finally I found the solution.. it's on the Preferences tab.

image

2 Likes