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

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