TradingView
Craig_Claussen
11 Jun 2018 pukul 20.15

Slow Stochastic OB/OS Strategy 

Bitcoin / U.S. dollarBitstamp

Deskripsi

Same concept as my Slow RSI strategy script
But in Stoch format

I'm finding that i like Slow Stoch better than Slow RSi


This chart also includes exit guards.

It's up to you to decide if you want to pyramid or not. This chart is set at pyramid = 3



Komentar
Craig_Claussen
Here are my 2M chart format inputs for 100%
Craig_Claussen
@Craig_Claussen, Pyramiding is turned off
Craig_Claussen
//I cleaned up my script some.
//I copied most of it from my Slow RSI and forgot to take out some //excess lines



strategy(title="Slow Stochastic OB/OS Strategy", overlay=false, pyramiding=0, calc_on_order_fills=true, initial_capital=100000, default_qty_type=strategy.percent_of_equity, currency="USD", default_qty_value=100)

smoothK = input(400, step=5)
price = input(ohlc4)
SMAsmoothK = input(275, step=5)
k = sma(stoch(price, high, low, smoothK), SMAsmoothK)
plot(k, color=white)


smoothD = input(10, step=2)
d = sma(k, smoothD)
plot(d, color=red)


OB = input(78.5, step=0.5)
OS = input(23, step=0.5)
hline(OB, linewidth=1, color=red)
hline(OS,linewidth=1, color=green)
hline(50,linewidth=1, color=gray)


long = crossover(d, OS)
short = crossunder(d, OB)

strategy.entry("Long", strategy.long, when=long)
strategy.entry("Short", strategy.short, when=short)

//If you want to try to play with exits you can activate or deactivate these!

closelong = crossover(d, OB)
closeshort = crossunder(d, OS)

strategy.close("Long", when=closelong)
strategy.close("Short", when=closeshort)
Lebih lanjut