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.

Advertisements

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.

Volume Oscillator (V.O.)

The Volume Oscillator shows a spread of two different moving averages of volume over a
specified period of time.

BUY{
SET VOS = VO(9,21,SIMPLE,PERCENT);
SET MA = EMA(CLOSE,21);
LOW > MA AND VOS > 20;}

LONGEXIT{
SET VOS = VO(9,21,SIMPLE,PERCENT);
SET MA = EMA(CLOSE,21);
HIGH < MA AND VOS > 20;}

SELL{
SET VOS = VO(9,21,SIMPLE,PERCENT);
SET MA = EMA(CLOSE,21);
HIGH < MA AND VOS > 20;}

SHORTEXIT{
SET VOS = VO(9,21,SIMPLE,PERCENT);
SET MA = EMA(CLOSE,21);
LOW > MA AND VOS > 20;}

This slideshow requires JavaScript.

Counting No Of Crossovers Using CIF Function

CIF Returns a vector representing the total number of times the specified condition evaluated to TRUE in intraday period only.

BUY{
SET CND = CROSSOVER(EMA(CLOSE,5),EMA(CLOSE,13));
CIF(CND>=1) = 2;}

LONGEXIT{
SET CND = CROSSOVER(EMA(CLOSE,5),EMA(CLOSE,13));
CIF(CND>=1) > 6;}

This slideshow requires JavaScript.

USE OF CROSSOVER Function :

The CROSSOVER function helps you one series has crossed over another. For
example, we can find the exact point in time when one moving average
crossed over another by using the CROSSOVER function:

BUY{
CROSSOVER(EMA(CLOSE,21),EMA(CLOSE,50));}

LONGEXIT{
CROSSOVER(EMA(CLOSE,50),EMA(CLOSE,21));}

SELL{
CROSSOVER(EMA(CLOSE,50),EMA(CLOSE,21));}

SHORTEXIT{
CROSSOVER(EMA(CLOSE,21),EMA(CLOSE,50));}

1

Heikinashi Cntd.

BUY : when two continuous GREEN candle formed then above
high of previous candle.

SELL : when two continuous RED candle formed then below
low of previous candle.

[HEIKINASHI]
BUY{
SET PC2 = REF(CLOSE,2);
SET PC1 = REF(CLOSE,1);
SET PO2 = REF(OPEN,2);
SET PO1 = REF(OPEN,1);
PC2 > PO2 AND PC1 > PO1 AND PC1 > PC2 AND PO1 > PO2 AND 
CLOSE > REF(HIGH,1);}

LONGEXIT{
CROSSOVER(EMA(CLOSE,5),CLOSE);}

SELL{
SET PC2 = REF(CLOSE,2);
SET PC1 = REF(CLOSE,1);
SET PO2 = REF(OPEN,2);
SET PO1 = REF(OPEN,1);
PC2 < PO2 AND PC1 < PO1 AND PC1 < PC2 AND PO1 < PO2 AND 
CLOSE < REF(LOW,1);}

SHORTEXIT{
CROSSOVER(CLOSE,EMA(CLOSE,5));}

This slideshow requires JavaScript.

Standard Deviation-SuperTrend Strategy

Standard Deviation is a common statistical calculation that measures volatility. Supertrend is a trend following indicator which can be used to identify upward or downward trends.

BUY : when current SD is greater than maximum EMA on SD for previous 40 period.
SELL: when Supertrend crossed above Current close.

BUY{
SET sd = SDV(CLOSE,21,2,SIMPLE); 
SET st = SUPERTREND(200,5,SIMPLE); 
SET av = EMA(sd,50);
SET hv = MAX(av,40);
sd > hv and CLOSE > st;}
SELL{
set sd = SDV(CLOSE,21,2,SIMPLE); 
set st = SUPERTREND(200,5,SIMPLE); 
CROSSOVER(st,CLOSE);}

This slideshow requires JavaScript.

Supertrend-Parabolic Stop and Reversal Strategy(PSAR) Strategy

When the Supertrend closes below the Price, a Buy signal may be generated, and when the Supertrend closes above the Price, a Sell signal can be generated.

BUY : When current close crossed above PSAR and current close greater than supertrend and EMA 9 period is greater than EMA 21 period.

SELL : When current close is less than PSAR and current close is less than supertrend and EMA 15 period crossed above ema 9 period.

BUY{
set ma1 = EMA(CLOSE,9);
set ma2 = EMA(CLOSE,21);
set st = SUPERTREND(10,2,SIMPLE); 
set ps = PSAR(0.2,0.02); 
CROSSOVER(CLOSE,ps) and CLOSE > st and ma1 > ma2;}
LONGEXIT{
set ma1 = EMA(CLOSE,9);
set ma2 = EMA(CLOSE,15);
set st = SUPERTREND(10,2,SIMPLE); 
set ps = PSAR(0.2,0.02); 
ps > CLOSE and CLOSE < st and CROSSOVER(ma2,ma1);}

This slideshow requires JavaScript.

Stochastic Momentum Index(SMI)-Parabolic Stop and Reversal(PSAR) Strategy

SMI shows where the close is relative to the midpoint of the same range.PSAR trails price as the trend extends over time. The indicator is below prices when prices are rising and above prices when prices are falling.

BUY : When current close crossed above PSAR and SMI %K LINE crossed above %D line and EMA 9 period is greater than EMA 21 period.

SELL : When current close crossed below PSAR and SMI %K LINE crossed above %D line and EMA 9 period is greater than EMA 21 period.

BUY{
set ma1 = EMA(CLOSE,9);
set ma2 = EMA(CLOSE,15);
set smik = SMIK(14,2,3,9,SIMPLE,SIMPLE) ;
set smid = SMId(14,2,3,9,SIMPLE,SIMPLE) ;
CROSSOVER(CLOSE,PSAR(0.2,0.02)) and CROSSOVER(smik,smid) and ma1 > ma2;}
LONGEXIT{
set ma1 = EMA(CLOSE,9);
set ma2 = EMA(CLOSE,15);
set smik = SMIK(14,2,3,9,SIMPLE,SIMPLE) ;
set smid = SMId(14,2,3,9,SIMPLE,SIMPLE) ;
CROSSOVER(PSAR(0.2,0.02),CLOSE) or CROSSOVER(smid,smik) and ma1 < ma2;}

This slideshow requires JavaScript.