55// --------------------------------------------------------------------
66// Stoch X: Stochastic with Divergence & Signals
77// On Github: https://github.com/realanthonyc/Stoch-X
8- // v1.1.8
8+ // v1.1.9
99// --------------------------------------------------------------------
1010indicator(title="Stoch X: Stochastic with Divergence & Signals", shorttitle="Stoch X", format=format.price, precision=1, timeframe="", timeframe_gaps=true)
1111
@@ -19,7 +19,7 @@ noneColor = color.new(color.white, 100)
1919// Settings
2020grpStoch = "Settings"
2121periodK = input.int(14, title="%K", minval=1, group=grpStoch)
22- smoothK = input.int(1, title="%K Smoothing", minval=1, group=grpStoch, tooltip = "Keep at 1 for the best divergence detection results .")
22+ smoothK = input.int(1, title="%K Smoothing", minval=1, group=grpStoch, tooltip = "To ensure optimal divergence detection, set it to 1 .")
2323periodD = input.int(3, title="%D", minval=1, group=grpStoch)
2424valUpper = input.int(80, title="Upper Band Value", group=grpStoch)
2525valLower = input.int(20, title="Lower Band Value", group=grpStoch)
@@ -65,9 +65,9 @@ plot(d, title="%D", color=#FF6D00)
6565plot(s, title="%S", color=color.new(#018383, 30), display=display.none)
6666
6767// Dynamic Band
68- h0 = hline(valUpper, "Upper Band", color=color.new(#FFFFFF, 100) , editable=false)
68+ h0 = hline(valUpper, "Upper Band", color=color.new(#27c5ff, 50), linestyle=hline.style_dotted , editable=false)
6969hline(50, "Middle Band", color=color.new(#787B86, 50))
70- h1 = hline(valLower, "Lower Band", color=color.new(#FFFFFF, 100) , editable=false)
70+ h1 = hline(valLower, "Lower Band", color=color.new(#27c5ff, 50), linestyle=hline.style_dotted , editable=false)
7171fill(h0, h1, color=color.rgb(33, 150, 243, 95), title="Background")
7272
7373// === Plotting: Cross Signals ===
0 commit comments