This script has been written to eliminate the period variable.(Integer)
Thus, it can be used comfortably in adaptive period scripts ! (For example : , , FAMA .. etc. )
All efforts goes to ChaosTrader (https://www.tradingview.com/script/I6rPL...) ,
RicardoSantos (https://tradingview.com/script/32ohT5SQ-...) ,
Hpotter for barcolor codes (iff) (https://www.tradingview.com/script/8cuqB...)
I hope it will help your new ideas . Best regards ! Noldo .
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.