TradingView
hikmetsezen
31 Th10 2018 22:23

CCI-Trend 

Bitcoin / DollarBitfinex

Mô tả

CCI-Trend is a trend trailing strategy based on sign alternation of the current CCI value.

The upper and lower bands are defined by hl2 (or (high+low)/2) +/- ATR*factor of ATR. The main TrendLine is combination of conditions of CCI-above-zero and CCI-below-zero.

Long/Short alerts are available, select “Long Condition”&“LONG Alert” as long alert and “Short Condition”&“SHORT Alert” as short alert.

The main CCI-Trend code is adapted from wisestocktrader.com/indicators/4293-trend-magic-modified-dr-bhoir-gb-for-amibroker-afl just as the TrendLine calculation, and a special thanks to @AlgoRoboTrader (on twitter) for being aware of this code.

At the moment CCI-Trend indicator is free to use, and the code is hidden.

HikmetSezen @HikmetSezen58 on twitter.
Bình luận
dheerajsood
How did you build this sir? It's really nice work. Can we study the source code and adapt the same to add some triggers? Thanks..
nawazishrabbani
Sir can u please tell me time frame for bank nifty
ndquangminh
WHICH TIME FRAME? 60 MIN?

THANK YOU.
snare94
Could you share your code ? please
protradingart
@snare94, I can build for you.
caige_v5
@protradingart, could share the code ,ths
d9d81
format=format.price, precision=2, timeframe='')
indicator('Trend CCI', shorttitle='TCCI')
period = input(7, 'CCI period')
coeff = input(0.7, 'ATR Multiplier')
AP = input(39, 'ATR Period')
ATR = ta.atr(AP)
src = input(close)
upT = (low + high)/ 2 - ATR * coeff
downT = (low + high)/ 2 + ATR * coeff
TCCA = 0.0
TCCA := ta.cci(src, period) >= 0 ? upT < nz(TCCA[1]) ? nz(TCCA[1]) : upT : downT > nz(TCCA[1]) ? nz(TCCA[1]) : downT
plot(TCCA, color=color.yellow, linewidth=3)

// Зачем закрывать код
// Цвет делать не стал. Если прошлое значение меньше текущего то красный. Если больше - зеленый
ICEKI
Nice and easy script, appreciated your efforts and generous =D
hikmetsezen
@ICEKI, easier is the better, honestly no knowledge to make it complicated and useful at the same time..:-)
ICEKI
@hikmetsezen, absolutely =D
Thêm nữa