This script is a generic cloud generator using a pre-selected set of moving averages (I probably forgot a lot but listed all the ones I used at least once).
A cloud is a visual representation of the gap between two moving averages - it shows right away how big in that gap (=how far they are from each other) The challenge is to find a cloud such as the price often stay stuck between those 2 MA - and when it's getting finally out (up or down), it would be strong enough to signal a beginning of a trend. This is a cool intellectual challenge for all aspiring traders
For that script, I defined a trend according to how the 2 MAs are located relative to each other (MA1 > MA2 or MA1 < MA2) and if the price gets out of the cloud.
You'll get :
- the option to color the candles based on a trend - cool triangles entry signals - and alerts on those triangles