Hope you're all doing well
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
All the BEST
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
MA1 = f_ma(typeofMA1, high, length_ma1) MA2 = f_ma(typeofMA2, low, length_ma2)
Talking about the 2 Moving Averages creating this cloud