Price Gap Script

# A 2% gap up in price over the previous day
# A 2% gap down in price over the previous day

BUY{
OPEN > REF(CLOSE,1) * 1.02;}

SELL{
OPEN < REF(CLOSE,1) * 0.98;}

This slideshow requires JavaScript.

Advertisements

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.

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

Weighted Moving Average (WMA) And Weighted Close (WC)

A Weighted Moving Average places more weight on recent values and less weight on older values.Weighted Close is an average of each day’s open, high, low, and close, where more weight is placed on the close.

BUY : crossover of WMA and average of Weighted close
SELL: crossover of average of Weighted close and WMA

BUY{
SET WC = WC();
SET SWC = SMA(WC,50); 
SET WM = WMA(CLOSE,21);
CROSSOVER(WM,SWC);}

SELL{
SET WC = WC();
SET SWC = SMA(WC,50); 
SET WM = WMA(CLOSE,21);
CROSSOVER(SWC,WM);}

This slideshow requires JavaScript.

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.

Finding the Maximum VOLUME

BUY : Current Volume > Maximum Volume for the Day (excluding current bar) * 3

BUY{
SET BC = BARCOUNT(TODAY);
SET MVOL = MAX(VOLUME, BC);
VOLUME > MVOL * 3;}

This slideshow requires JavaScript.

Bollinger Bands Squeeze Breakout

The Bollinger Band Squeeze is straightforward strategy which look for securities with narrowing Bollinger Bands and low BandWidth levels. An upside bank break is bullish,
while a downside bank break is bearish. Narrowing bands infer that volatility is contracting and chartists should be prepared for a volatility expansion, which means a
directional move.

BUY : close > Keltner band top and close > bollinger band top
Sell : close < Keltner band bottom and close < bollinger band bottom

BUY{
SET KT = KCT(14,SIMPLE,1.1);
SET BT = BBT(CLOSE,10,1,SIMPLE);
CLOSE > BT AND CLOSE > KT;}

LONGEXIT{
SET BM = BBB(CLOSE,10,1,SIMPLE);
HIGH < BM;}

SELL{
SET KB = KCB(14,SIMPLE,1.1); 
SET BB = BBB(CLOSE,10,1,SIMPLE); 
CLOSE < BB AND CLOSE < KB;}

SHORTEXIT{
SET BM = BBM(CLOSE,10,1,SIMPLE);
LOW > BM;}

This slideshow requires JavaScript.

Heikinashi Cntd

BUY : when TMA(50 Period) < Close and current volume > previoue volume*20
SELL : when TMA (50 Period)> Close and current volume > previoue volume*20

[HEIKINASHI]
BUY{
SET tma1 = TMA(CLOSE,50);
CLOSE > tma1 and VOLUME > REF(VOLUME,1)*20;}

LONGEXIT{
CLOSE < OPEN;}

SELL{
SET tma1 = TMA(CLOSE,50);
tma1 > CLOSE and VOLUME > REF(VOLUME,1)*20;}

SHORTEXIT{
CLOSE > OPEN;}

This slideshow requires JavaScript.