// The idea is to make it possible to identify the ongoing Trend.
// The algoritm works as:
// 1. Apply on the Price.
// 2. Apply and Channel on the
//. 3. If BB is inside KC then there is NoTrend.
// 4. Else, if > KC-Upper then it is a strong UpTrend and
// if < KC-Lower then it is a strong DownTrend
// else it is NoTrend
// I've written the 'super_sqeeze' as one single function to make it easy to make
// use of it in other projects of mine. The function takes the follwing input arguments:
//. super_squeeze(Price, // example: close
// Length, // number of lookback periods, example: 66
// BBmult, // multipier of the Standard Deviation, example: 1.5
// KCmult) // Channel multiplier, example: 1
// The return values from the function are:
//. 1 = Strong Up Trend
// 0.5. = Weak Up Trend
//. 0. = No Trend
//. -0.5. = Weak Down Trend
// -1. =. Strong Down Trend
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.