tmr0

Moving RSI

Moving RSI oscilator. Triangle up - enter long, triangle down - short.
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?
//coded by tmr0
//@version=2
study("Moving RSI", shorttitle="tMRSI", overlay=false, precision=0)

rsilen=input(3, "RSI length")
smalen=input(20, "Moving average length")
chan=input(20, "RSI bands width", step=5)

s=hl2-sma(hl2,smalen)
z=rsi(s,rsilen)

buy0=z<chan
sell0=z>(100-chan)

buy = buy0?true:(not buy0 and not sell0)?buy[1]:false
sell = sell0?true:(not buy0 and not sell0)?sell[1]:false

enterL = buy and sell[1]
enterS = sell and buy[1]

clr = buy0?green:sell0?red:#b08040
plot(s, style =columns, color = clr, transp=65)

plotshape(enterL, "Long", style=shape.triangleup, color=teal, location=location.bottom)
plotshape(enterS, "Short", style=shape.triangledown, color=maroon, location=location.bottom)