IldarAkhmetgaleev

Commodity channel index x2 v1

Slightly enhenced CCI. Take a look how difference between slow and fast CCI displayed as histogram can predict possible reverse.
EDIT: fast = 14, slow = 28 works better.
סקריפט קוד פתוח

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

כתב ויתור

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

רוצה להשתמש בסקריפ זה בגרף?
study(title="Commodity Channel Index x2" , shorttitle='CCIx2')

fast_lenght = input(title="Fast CCI Length", type=integer, defval=6, minval=1)
slow_lenght = input(title="Slow CCI Length", type=integer, defval=14, minval=1)

source = close

fast_cci = cci(source, fast_lenght)
slow_cci = cci(source, slow_lenght)

hist = (fast_cci - slow_cci)
hist_color = hist > 0 ? green : red

hline(0, title="Zero Line", color=gray, linestyle=dotted)
overbought = hline(100, title="Positive Line", color=gray, linestyle=dotted)
oversold = hline(-100, title="Negative Line", color=gray, linestyle=dotted)
fill(overbought, oversold, color=#9915ff, transp=90)

plot(hist, color=hist_color, title='Difference', style=histogram)
fast_line = plot(fast_cci, color=#9922ff, title='Fast CCI')
slow_line = plot(slow_cci, color=#447711, title='Slow CCI')
fill(fast_line, slow_line, color=#004499, transp=90)