HEIKIN-ASHI

Heikin-Ashi Candlesticks use the open-close data from the prior period and the open-high-low-close data from the current period to create a combo candlestick.

[HEIKINASHI]
BUY{
SET hv = MAX(CLOSE,10);
CLOSE > hv and REF(CLOSE,2) < REF(OPEN,2) and REF(CLOSE,1) > REF(OPEN,1) and CLOSE > OPEN and CLOSE > REF(CLOSE,1);}

LONGEXIT{
REF(CLOSE,1) < REF(OPEN,1);}

SELL{
SET Lv = MIN(CLOSE,10);
CLOSE < lv and REF(CLOSE,2) > REF(OPEN,2) and REF(CLOSE,1) < REF(OPEN,1) and CLOSE < OPEN and CLOSE < REF(CLOSE,1);}

SHORTEXIT{
REF(CLOSE,1) > REF(OPEN,1);}

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.

Weighted Moving Average (WMA) With Bollinger Bands

A Weighted Moving Average places more weight on recent values and less weight on older values. Bollinger bands rely on standard deviations in order to adjust to changing market conditions. When a stock becomes volatile the bands widens (move further away from the average). Conversely, when market becomes less volatile the bands contracts (move closer to the average).

SMA(CLOSE,9)  : Simple Moving Average of 9 period on Close
EMA(ma1,9)      : Exponential Moving Average of 9 period on SMA
WMA(ma2,5)    : Weighted Moving Average of 5 period on EMA

BUY{
SET ma1 = SMA(CLOSE,9);
SET ma2 = EMA(ma1,9);
SET ma3 = WMA(ma2,5);
SET vol = SMA(VOLUME,10);
SET bbt = BBT(CLOSE,10,2,SIMPLE); 
SET smab = SMA(bbt,50);
CROSSOVER(ma1,ma3) and CLOSE > bbt and VOLUME > vol and CLOSE > smab AND EMA(ma1,9) > SMA(bbt,50);}
SELL{
SET ma1 = SMA(CLOSE,9);
SET ma2 = EMA(ma1,9);
SET ma3 = WMA(ma2,5);
CROSSOVER(ma3,ma1);}

This slideshow requires JavaScript.