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

Relative Momentum Index (RMI) With WMA.

The Relative Momentum Index (RMI) is a variation of the Relative Strength Index (RSI). While the RMI counts up and down days from today’s close relative to the close n-days ago while the RSI counts days up and down from close to previous close.

BUY{
SET RM = RMI(CLOSE,50,9);
SET MA = WMA(RM,50);
CROSSOVER(RM,MA) AND RM < 20;}

LONGEXIT{
SET RM = RMI(CLOSE,50,9);
SET MA = WMA(RM,50);
CROSSOVER(MA,RM) AND RM > 60;}

SELL{
SET RM = RMI(CLOSE,50,9);
SET MA = WMA(RM,50);
CROSSOVER(MA,RM) AND RM > 60;}

SHORTEXIT{
SET RM = RMI(CLOSE,50,9);
SET MA = WMA(RM,50);
CROSSOVER(RM,MA) AND RM < 20;}

This slideshow requires JavaScript.

Swing Index (SI)

The Swing Index (Wilder) is a popular indicator that shows comparative price strength within a single security by comparing the current open, high, low, and close prices with previous prices.

BUY{
SET TP1 = TP();
SET MA = WMA(TP1,50);
SET SI1 = SI(2);
SET MA1 = EMA(SI1,21);
CROSSOVER(TP1,MA) AND REF(MA1,1) < 0.01 AND REF(CLOSE,1) > REF(OPEN,1);}

LONGEXIT{
SET TP1 = TP();
SET MA = WMA(TP1,50);
SET SI1 = SI(2);
SET MA1 = EMA(SI1,21);
CROSSOVER(MA,TP1) AND REF(MA1,1) > 0.01 AND REF(CLOSE,1) > REF(OPEN,1);}

SELL{
SET TP1 = TP();
SET MA = WMA(TP1,50);
SET SI1 = SI(2);
SET MA1 = EMA(SI1,21);
CROSSOVER(MA,TP1) AND REF(MA1,1) > 0.01 AND REF(CLOSE,1) > REF(OPEN,1);}

SHORTEXIT{
SET TP1 = TP();
SET MA = WMA(TP1,50);
SET SI1 = SI(2);
SET MA1 = EMA(SI1,21);
CROSSOVER(TP1,MA) AND REF(MA1,1) < 0.01 AND REF(CLOSE,1) > REF(OPEN,1);}

This slideshow requires JavaScript.

Bollinger Bands Breakout and RSI Trading System

When the RSI is above 70, and when the Price drops above the Higher Bollinger Band.When the RSI is below 30, and when the Price drops below the Lower Bollinger Band.

BUY{
SET BT = BBT(CLOSE,20,2,SIMPLE);
SET RS = RSI(CLOSE,11);
RS > 70 AND CROSSOVER(CLOSE,BT);}

SELL{
SET BB = BBB(CLOSE,20,2,SIMPLE);
SET RS = RSI(CLOSE,11);
RS < 30 AND CROSSOVER(BB,CLOSE);} 

This slideshow requires JavaScript.

Trade Volume Index (TVI)

The Trade Volume index shows whether a security is being accumulated or distributed.

BUY{
SET TV = TVI(CLOSE,0.25);
SET MA = SMA(TV,21);
CROSSOVER(TV,MA);}

SELL{
SET TV = TVI(CLOSE,0.25);
SET MA = SMA(TV,21);
CROSSOVER(MA,TV);}

This slideshow requires JavaScript.

Parabolic Stop and Reversal (Parabolic SAR)

Author Welles Wilder developed the Parabolic SAR. This indicator is always in the market (whenever a position is closed, an opposing position is taken). The Parabolic SAR indicator is most often used to set trailing price stops.

BUY{
SET PS = PSAR(0.2,0.02);
SET MA = EMA(PS,21);
SET MA2 = SMA(CLOSE,50);
CROSSOVER(MA,PS) AND CLOSE < MA2;}

LONGEXIT{
SET PS = PSAR(0.2,0.02);
SET MA = EMA(PS,21);
SET MA2 = SMA(CLOSE,50);
CROSSOVER(PS,MA) AND CLOSE > MA2;} 

This slideshow requires JavaScript.

Double (D-EMA) and Triple Exponential Moving Average (T-EMA)

D-EMA and T-EMA apply more weight to the most recent data in an attempt to smooth out noise while still remaining highly reactive to changes in the data.

D-EMA = 2*EMA – EMA(EMA)

Triple Exponential MA Formula:

T-EMA = (3*EMA – 3*EMA(EMA)) + EMA(EMA(EMA))

 

BUY{
SET MA = EMA(CLOSE,9);
SET MM = EMA(MA,5);
SET 2MA = 2 * MA;
SET DMA1 = 2MA - MM;
SET 3MA = 3 * MA;
SET 3MM = 3 * MM;
SET MMM = EMA(MM,21);
SET TMA1 = 3MA - 3MM - MMM;
SET RM = RMI(CLOSE,15,15);
CROSSOVER(TMA1,DMA1) AND RM < 25;}

SELL{
SET MA = EMA(CLOSE,9);
SET MM = EMA(MA,5);
SET 2MA = 2 * MA;
SET DMA1 = 2MA - MM;
SET 3MA = 3 * MA;
SET 3MM = 3 * MM;
SET MMM = EMA(MM,21);
SET TMA1 = 3MA - 3MM - MMM;
SET RM = RMI(CLOSE,15,15);
CROSSOVER(DMA1,TMA1) AND RM > 70;}

This slideshow requires JavaScript.

Chaikin Volatility (CV)

The Chaikin Volatility Oscillator is a moving average derivative of the Accumulation / Distribution index. This indicator quantifies volatility as a widening of the range between the high and the low price.

 

BUY{
SET VOL = CV(50,2,SIMPLE);
SET TRIG = REF(VOL,1) * 3;
SET MA = SMA(CLOSE,100);
VOL >= TRIG AND REF(VOL,1) > 0.1 AND CLOSE > MA;}

LONGEXIT{
SET MA = EMA(CLOSE,9);
CROSSOVER(MA,CLOSE);}

SELL{
SET VOL = CV(50,2,SIMPLE);
SET TRIG = REF(VOL,1) * 3;
SET MA = SMA(CLOSE,100);
VOL >= TRIG AND REF(VOL,1) > 0.1 AND CLOSE < MA;}

SHORTEXIT{
SET MA = EMA(CLOSE,9);
CROSSOVER(CLOSE,MA);}

This slideshow requires JavaScript.

Williams Accumulation / Distribution (WAD) AND Keltner Channels

Keltner channels are calculated from the Average True Range and shifted up and down from the median based on the multiplier.The Accumulation / Distribution indicator shows a relationship of price and volume.

BUY{
SET KT = KCT(21,SIMPLE,1.1); 
SET KB = KCB(21,SIMPLE,1.1); 
SET WD = WAD();
SET MA = EMA(WD,50);
WD > MA AND CLOSE > KB AND REF(CLOSE,1) < REF(KB,1);}

LONGEXIT{
SET KT = KCT(21,SIMPLE,1.1); 
SET KB = KCB(21,SIMPLE,1.1); 
SET WD = WAD();
SET MA = EMA(WD,50);
CROSSOVER(MA,WD);}

SELL{
SET KT = KCT(21,SIMPLE,1.1); 
SET KB = KCB(21,SIMPLE,1.1); 
SET WD = WAD();
SET MA = EMA(WD,50);
MA > WD AND CLOSE < KT AND REF(KT,1) < REF(CLOSE,1);}

SHORTEXIT{
SET KT = KCT(21,SIMPLE,1.1); 
SET KB = KCB(21,SIMPLE,1.1); 
SET WD = WAD();
SET MA = EMA(WD,50);
CROSSOVER(WD,MA);}

This slideshow requires JavaScript.

Use Of Volume Rate of Change (VROC)

The Volume Rate of Change indicator shows whether or not volume is
trending in one direction or another.

 

BUY{
SET MA1 = EMA(CLOSE,9);
SET MA2 = EMA(CLOSE,21);
SET VR = VROC(VOLUME,21);
SET MA = SMA(VR,21);
MA > REF(MA,1)*10 AND MA1 > MA2;}

LONGEXIT{
SET MA1 = EMA(CLOSE,9);
SET MA2 = EMA(CLOSE,21);
SET VR = VROC(VOLUME,21);
SET MA = SMA(VR,21);
MA*10 < REF(MA,1) AND MA1 < MA2;}

This slideshow requires JavaScript.