TradingView
alexgrover
2018年4月19日午後3時23分

RSI/Stochastic/Percentrank all on chart and all in one 

EUR/USDOANDA

詳細

The limitation of max 3 indicators on tradingview is pretty bad for indicators lovers (like me) so i made this script able to contain a rsi, a stochastic and a percent rank and that in only one indicator !! Pretty cool isn't it ? ;)

Every parameter is linked to one indicator, you can have all of them with differents period lengths



You have the possibility to disable each indicators and add clarity to the chart.



Do you want me to add more indicators ? If yes witch ? Comment bellow :D

Hope this help
コメント
AnonymousEliteTrader
Moving average and stochastic
Arpi2018
Great workmate,please add more oscillators.
Arranger77
Great work. Can you add vortex to adx script? Thanks.

//@version=3
study("Average Directional Index", shorttitle="Adx")
adxlen = input(10, title="ADX Smoothing")
dilen = input(10, title="DI Length")
wtreshold = input(25, title="Weak Threshold")
streshold = input(50, title="Strong Threshold")

up = change(high)
down = -change(low)
trur = rma(tr, adxlen)
plus = fixnan(100 * rma(up > down and up > 0 ? up : 0, dilen) / trur)
minus = fixnan(100 * rma(down > up and down > 0 ? down : 0, dilen) / trur)
sum = plus + minus
adx = 100 * rma(abs(plus - minus) / (sum == 0 ? 1 : sum), adxlen)

adx_color =
adx > streshold and plus >= minus ? #008000 : adx > wtreshold and plus >= minus ? #6aff6a :
adx > streshold and plus < minus ? #ff0000 : adx > wtreshold and plus < minus ? #ff7777 :
black

plot(adx, title='Adx', color=adx_color, linewidth=2)
hline(50,title="Adx High",color=black,linestyle=dashed,linewidth=1)
hline(25,title="Adx Low",color=navy,linestyle=dashed,linewidth=1)
DanielMinchev
Nice one, great work.
詳細