Ichimoku Cloud
Ichimoku Cloud is an indicator drawn over the price chart.
core language
1
indicator "Ichimoku Cloud"2
pane: price3
4
cloud = ichimoku()5
6
plot cloud.conversion, color: blue7
plot cloud.base, color: red8
plot cloud.span_a, color: green.fade(40)9
plot cloud.span_b, color: red.fade(40)10
fill cloud.span_a, cloud.span_b, color: if cloud.span_a > cloud.span_b then green.fade(85) else red.fade(85)11
plot cloud.lagging, color: grayplot 1plot 2plot 3plot 4plot 5
Sample data. Not a result. The real AlgoBarsX engine ran this exact script on made-up bars, and this replays what it drew and did. It shows no profit or loss, and it says nothing about how the script would do in a real market.
Replay of this script on 150 sample bars: 5 lines drawn.
What this script says
Ichimoku Cloud is an indicator drawn over the price chart.
It calculates cloud as the Ichimoku cloud.
On the chart, it plots cloud.conversion, cloud.base, cloud.span_a and cloud.span_b; it also shades between cloud.span_a and cloud.span_b; it also plots cloud.lagging.