Update JustUncleL to version 5 from version 3 //version=3
study("Stochastic with False bar R2-2 by JustUncleL", overlay=false)
// // Revision: R2-2 // Original Author: JustUncleL // // Description: // This study project is an implementation of the "Stochastic False BAR indicator. // The standard Stoch buy/sell indications come from Stoch crosses about the // overbought/oversold zones 80/20. This does not work all the time and you get // stuck in the OB/OS zones. // So "False BAR" (Black) indicates when it is unsafe to take Stochastic cross over trades. // Where the false bar does not appear (aqua), the overbought / oversold conditions // of the Stochastic can be considered higher-probability reversal areas and, // thus, trading opportunities. // // Revisions: // R2 - Added options to enable/disable False Bar lines and Stoch trends. // - Added options to modify upper and lower limits of false bar Stoch and // trading stochastic trend. // - Added option to show the trading Stochastic as coloured Ribbon. // - Added name titles for all plots // - Added Background highlighting for False Bar. // // R1 - Original Version //
// === INPUTS === ShowFalseBar = input(true,title="Show False Bar Lines") ShowFalseStoch = input(false,title="Show False Bar Stochastic Trend") FBStochLen = input(45, minval=2, title ="False Bar Stochastic Length") FBsmoothK = input(4, minval=1, title = "False Bar Smooth K") FBsmoothD = input(2, minval=1, title = "False Bar Smooth D") FBupperLimit = input(80,minval=50,maxval=100,title="False Bar Stoch Upper Limit") FBlowerLimit = input(20,minval=0,maxval=50,title="False Bar Stoch Lower Limit") // StochLen = input(8, minval=2, title = "Stoch Length") smoothK = input(3, minval=1, title = "Smooth K") smoothD = input(3, minval=1, title = "Smooth D") upperLimit = input(80,minval=50,maxval=100,title="Stoch Upper Limit") lowerLimit = input(20,minval=0,maxval=50,title="Stoch Lower Limit") showRibbon = input(true,title="Show Stochastic as Coloured Ribbon")
// === /INPUTS ===
// === SERIES === // Stoch value - False Bar FBStochK = sma(stoch(close, high, low, FBStochLen), FBsmoothK) FBStochD = sma(FBStochK, FBsmoothD)