This is a code to showcase a function call bug in PineScript.
When a function is called from inside of if-then scope, this function may return an invalid result.
Two identical code pieces are used to perform simple calculation. The only difference is that one piece has a part of its code wrapped into a...
Stochastic Relative Strength Index developed by Tushar Chande and Stanley Kroll.
This script has been written to eliminate the period variable.(Integer)
Thus, it can be used comfortably in adaptive period scripts ! (For example : Adaptive Moving Average , KAMA , FAMA .. etc. )
All efforts goes to ChaosTrader...