MACD WITH WMA

This trading system is based on MACD,WMA and CCI indicators.

BUY{
SET MCD = MACD(8,12,9,SIMPLE);
SET W13 = WMA(CLOSE,13);
SET W27 = WMA(CLOSE,27);
SET C1 = CCI(14,SIMPLE);
CROSSOVER(W13,W27) AND MCD > 0.01 AND C1 > 0.01;}

SELL{
SET MCD = MACD(8,12,9,SIMPLE);
SET W13 = WMA(CLOSE,13);
SET W27 = WMA(CLOSE,27);
SET C1 = CCI(14,SIMPLE);
CROSSOVER(W27,W13) AND MCD < 0.01 AND C1 < 0.01;}

This slideshow requires JavaScript.

Advertisements

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.