Range Breakout

This strategy uses 50 week break out system excluding the current day.

BUY   : When Current high crossed above 50 week (350 days) high .
SELL : When Current low crossed below EMA of period 9.
BUY{
set hv = MAX(HIGH,350);
set ma1 = EMA(CLOSE,5); 
CROSSOVER(ma1,hv);}

LONGEXIT{
CROSSOVER(EMA(CLOSE,9),LOW);}

B

 

Advertisements

MAX And MIN Function

Predefined Function in Greek Language (GL), MAX and MIN Function returns a  vector containing a running Maximum Or Minimum value , excluding current.

BUY  :  Current High crosses Above previous highest high value for Today.
LONGEXIT : Current High crosses below to EMA of 5 Period.

SELL : Current low Crosses below previous lowest low value for Today.
SHORTEXIT : Current High crosses below to EMA of 5 Period.

BUY{
set bc = BARCOUNT(TODAY);
set hv = MAX(HIGH, bc);
CROSSOVER(HIGH,hv);}

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

1

Similarly,

SELL{
set bc = BARCOUNT(TODAY);
set lv = MIN(HIGH, bc);
CROSSOVER(lv,LOW);}

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

2