# CANDLESTICK PATTERN CNTD.

```BUY{
SET C1 = REF(CLOSE,1);
SET C2 = REF(CLOSE,2);
SET C3 = REF(CLOSE,3);
SET O1 = REF(OPEN,1);
SET O2 = REF(OPEN,2);
SET O3 = REF(OPEN,3);
O3 > C3 AND O2 > C2 AND O1 > C1 AND CLOSE > OPEN AND CLOSE > MAX(HIGH,4);}

LONGEXIT{
CLOSE > REF(CLOSE,1) * 1.022;}```

This slideshow requires JavaScript.

# CANDLESTICK PATTERN

```BUY{
SET BODY = CLOSE-OPEN;
SHADOW > BODY * 3 AND CLOSE > OPEN AND BODY > 1.1;}

SELL{
SET BODY = OPEN-CLOSE;
SHADOW > BODY * 3 AND CLOSE < OPEN AND BODY > 1.1;}```

This slideshow requires JavaScript.

BUY : When EMA of 21 period crossed above of EMA of 50 period and Stochastic %K line crossed above 20 line and candlestick pattern is HAMMER.

SELL : When EMA of 21 period crossed above of EMA of 15 period and Stochastic %K line crossed above 80 line

```BUY{
set ma1 = EMA(CLOSE,21);
set ma2 = EMA(CLOSE,50);
set sok = SOPK(9,3,9,SIMPLE);
ma1 > ma2 and CROSSOVER(sok,20) and CSP()=HAMMER;}

LONGEXIT{
set ma1 = EMA(CLOSE,15);
set ma2 = EMA(CLOSE,21);
set sok = SOPK(9,3,9,SIMPLE);
sok > 80 and ma1<ma2;}```

This slideshow requires JavaScript.

# 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;}```

```SELL{
CSP() =BEARISH_BELT_HOLD;} ```

```SELL{
CSP() =BULLISH_MATCHING_LOW;} ```

# 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;}```

Similarly,

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

```SELL{
CSP() =BEARISH_ENGULFING_LINE;} ```