CANDLESTICK PATTERNS Cntd.

Greek Language (GL) provides a simple, built-in function that can identify one of the two-dozen predefined candlestick patterns as mentioned below :

BUY{
CSP() =BULLISH_HAMMER;}

bullish hammer

SELL{
CSP() =BEARISH_BELT_HOLD;} 

BEARISH_BELT_HOLD

SELL{
CSP() =BULLISH_MATCHING_LOW;} 

BULLISH_MATCHING_LOW

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

CANDLESTICK PATTERNS

Greek Language (GL) provides a simple, built-in function that can identify one of the two dozen predefined candlestick patterns as mentioned below :

BUY{
CSP() =MORNING_STAR;}

LONGEXIT{
CSP() =EVENING_STAR;}

morningstar_eveningstar

Similarly,

SELL{
CSP() =HANGING_MAN;}
SELL{
CSP() =DARK_CLOUD_COVER;} 

darkcloudcover

SELL{
CSP() =BEARISH_ENGULFING_LINE;} 

Bearish Engulfing

 

Reference High Line (RHL) Function :

3

BUY   : Current High > High when EMA of 5 period Crosses above EMA of 21 period                 Most Recently
SELL : EMA of 21 period Crosses above EMA of 5 period 

 

BUY{
set cnd = CROSSOVER(EMA(CLOSE,5),EMA(CLOSE,21));
set hv = RHL(cnd,0);
CROSSOVER(HIGH,hv);}

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

LOOKUP Function :

12

BUY   : Current high > 15 min high
SELL : Current low < 15 min low

BUY{
set hv = LOOKUP(20171229,091500,HIGH);
CROSSOVER(HIGH,hv);}

LONGEXIT{
set lv = LOOKUP(20171229,091500,LOW);
CROSSOVER(lv,LOW);}

Similarly,

SELL{
set lv = LOOKUP(20171227,091500,LOW);
CROSSOVER(lv,LOW);}

SHORTEXIT{
set hv = LOOKUP(20171227,091500,HIGH);
CROSSOVER(HIGH,hv);}

MACD Strategy

1

2

MACD : Moving Average Convergence/Divergence
RSI : Relative Strength Index

BUY : When MACD Crosses above MACD Signal Line And RSI > 60
SELL : when EMA Of Period 9 Crosses above Current High

Formula As Follows :

BUY{
set ma1 = MACDSIGNAL(13,26,9,SIMPLE);
set ma2 = MACD(13,26,9,SIMPLE);
CROSSOVER(ma2,ma1) and RSI(CLOSE,21) > 60;}

LONGEXIT{
CROSSOVER(EMA(close,9),HIGH);}

Let’s Go, Algo !!!

Why-you-should-be-doing-Algorithmic-Trading_1

With several amendments over the years, India provides a good opportunity for Algo traders due to a number of factors such as co-location facilities and sophisticated technology at both the major exchanges; a smart order routing system; and stock exchanges that are well-established and liquid.

Algo trades account for over 43% of India’s stock market turnover. In the US, where retail investors also engage in Algo trades, 90% of the turnover is from automated systems. The global average is 75%.

SEBI was among the first regulators to issue a discussion paper proposing strengthening of rules on Algo trading in August 2016.

With rules in place, Algo trades in India will rise to the global average, market participants said. There are a lot of startups in this space waiting to enter once rules are in place. This will be a big boost for Algo trading.

Greek Trend Trader (GTT) : Introduction to Greek Language

trade

GL (Greek Language) is powerful yet simple programming language for traders.The language provides the framework required to build sophisticated trading programs piece by piece without extensive training or programming experience.

For Example :

BUY: Crossover of Exponential Moving averages of period 5 and 30.
LONGEXIT: High is lower than EMA of 21 period.

buy{
crossover(ema(close,5),ema(close,30));}

longexit{
high<ema(close,21);}