TradingView
inno14
29 Jan 2022 pukul 09.37

AVG Stochastic Strategy [M30 Backtesting] 

Bitcoin / TetherUSBinance

Deskripsi

1. AVG Stochastic Calculate
1.1 AVG %K is calculated by apply EMA with smooth K period on Average of Original Stochastic %k & %d
+ avg_k=ema((%k+%d)/2,smoothK)
1.2 AVG %D is calculated by apply EMA with %d period on AVG %K
+ avg_d=ema(avg_k,periodD)
2. Parameter
+ %K Length: 21
+ %K Smoothing: 3
+ %D Smoothing: 3
+ Symbol: BTC/USDT
+ Timeframe: M30
+ Pyramiding: Maximum 3 orders at the same direction.
3. Signal
3.1 Buy Signal
+ Entry: AVG %K crossover AVG %D and AVG %D < 20
+ Exit: AVG %D > 80
3.2 Sell Signal
+ Entry: AVG %K crossunder AVG %D and AVG %D > 80
+ Exit: AVG %D < 20
Komentar
scantor516
Hello sir this is excellent thank you. Any chance you can make the oscillator public?
inno14
@scantor516, you can add 4 code's line below into original Stochastic (build-in TradingView's Library) to plot AVG Stochastic Oscillator
_avg_k=ta.ema(math.avg(k,d),smoothK)
_avg_d=ta.ema(_avg_k,periodD)
p_avg_k=plot(_avg_k,"AVG K",color=color.new(color.aqua,0))
p_avg_d=plot(_avg_d,"AVG D",color=color.new(color.navy,0))
Lebih lanjut