All credit goes to the following users for the initial implementations:
- User @dashed :
- User @sjb933 :
This script calculates the Cloud Score based on the sjb933 version; all I've done is convert the script to Pinescript version 3 (to ensure the security function works as intended) and add MTF capability.
I'm a big fan of MTF analysis when using indicators (particularly oscillators). Using a higher time frame runs into the issue of the indicator repainting until the relevant higher time frame candle closes (this is inevitable and logical - so don't comment saying it repaints!). However, for lagging indicators such as this one, adding a lower time frame provides potential entry and exit signals into the larger trend, and also provides early warning of large trend shifts before the current time frame will. This can give you more control over your trades, and in my experience helps lagging indicators such as stay relevant in high markets that are vastly different from when the indicators were conceived.
Any queries please let me know.
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.