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"