Skip to content

Commit 3140d9d

Browse files
committed
v1.1.9
1 parent 6af3668 commit 3140d9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stoch-x.pine

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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
// --------------------------------------------------------------------
1010
indicator(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
2020
grpStoch = "Settings"
2121
periodK = 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.")
2323
periodD = input.int(3, title="%D", minval=1, group=grpStoch)
2424
valUpper = input.int(80, title="Upper Band Value", group=grpStoch)
2525
valLower = input.int(20, title="Lower Band Value", group=grpStoch)
@@ -65,9 +65,9 @@ plot(d, title="%D", color=#FF6D00)
6565
plot(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)
6969
hline(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)
7171
fill(h0, h1, color=color.rgb(33, 150, 243, 95), title="Background")
7272

7373
// === Plotting: Cross Signals ===

0 commit comments

Comments
 (0)