Moving Average Convergence / Divergence (MACD) AND Commodity Channel Index (CCI)

CCI indicator oscillates between an overbought and oversold condition and works best in a sideways market. The MACD fluctuates above and below the zero line as the moving averages converge, cross and diverge. Traders can look for signal line crossovers, centerline crossovers and divergences to generate signals.

BUY{
SET macd1 = MACD(100,21,9,SIMPLE);
SET macdsig = MACDSignal(100,21,9,SIMPLE); 
SET cci1 = CCI(50,SIMPLE); 
CROSSOVER(macdsig,macd1) and cci1 > 0.1;}

LONGEXIT{
SET macd1 = MACD(100,21,9,SIMPLE);
SET macdsig = MACDSignal(100,21,9,SIMPLE); 
SET cci1 = CCI(50,SIMPLE); 
CROSSOVER(macd1,macdsig) and cci1 < 0.1;}

SELL{
SET macd1 = MACD(100,21,9,SIMPLE);
SET macdsig = MACDSignal(100,21,9,SIMPLE);
SET cci1 = CCI(50,SIMPLE); 
CROSSOVER(macd1,macdsig) and cci1 < 0.1;}

SHORTEXIT{
SET macd1 = MACD(100,21,9,SIMPLE);
SET macdsig = MACDSignal(100,21,9,SIMPLE); 
SET cci1 = CCI(50,SIMPLE); 
CROSSOVER(macdsig,macd1) and cci1 > 0.1;}

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 )

w

Connecting to %s