Commodity Channel Index (CCI) With Supertrend

CCI indicator oscillates between an overbought and oversold condition and works best in a sideways market.

BUY{
SET C1 = CCI(21,SIMPLE);
SET ST = SUPERTREND(21,2,SIMPLE);
CLOSE > ST AND C1 > 0.01 AND REF(C1,1) < 0.01;}

LONGEXIT{
SET C1 = CCI(21,SIMPLE);
SET ST = SUPERTREND(21,2,SIMPLE);
CLOSE < ST;}

SELL{
SET C1 = CCI(21,SIMPLE);
SET ST = SUPERTREND(21,2,SIMPLE);
CLOSE < ST AND C1 < 0.01 AND REF(C1,1) > 0.01;}

SHORTEXIT{
SET C1 = CCI(21,SIMPLE);
SET ST = SUPERTREND(21,2,SIMPLE);
CLOSE > ST;}

This slideshow requires JavaScript.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s