# Ichimoku Cloud

> Ichimoku Cloud is an indicator drawn over the price chart.

Source: https://algobarsx.com/docs/ex-25-ichimoku-cloud/

```algobarsx
indicator "Ichimoku Cloud"
    pane: price

cloud = ichimoku()

plot cloud.conversion, color: blue
plot cloud.base, color: red
plot cloud.span_a, color: green.fade(40)
plot cloud.span_b, color: red.fade(40)
fill cloud.span_a, cloud.span_b, color: if cloud.span_a > cloud.span_b then green.fade(85) else red.fade(85)
plot cloud.lagging, color: gray
```
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`.
