Karthik's Intraday Trading using EMA & CCI

karthik_sri

Well-Known Member
#52
Dear Karthick,
I have some doubts. Can you clarify this?

Today Maruti Futures opened Above EMA110 and CCI 100 . Here should we check filter for each and every candle or take First Candle high ?
9.15 Candle :
High : 1462.25
Low : 1448.45
Filter : 1.46
Buy > 1463.75

9.20 Candle :
High : 1458
Low : 1450.75
Filter : 1.45
Buy > 1459.45

9.25 Candle :
High : 1459.80
Low : 1456
Filter : 1.45
Buy > 1461.25

9.30 Candle :
High : 1468.85
Low : 1456.60
Filter : 1.45
Buy > 1470.30

As per 9.15 Candle data Buy > 1463.75 . It Crossed @ 9.30 Candle or if we should check each and every candle high then buy level crossed @ 9.25 candle (as per 9.20 Candle high) . which is Correct?
Hi ST,
Yes...we need to apply this condition on each candle wherever CCI reading is > 100 in case of Buy and >-100 in case of Sell. I presume if the condition is met the Stock should raise.

Karthik
 
#53
Hi ST,
Yes...we need to apply this condition on each candle wherever CCI reading is > 100 in case of Buy and >-100 in case of Sell. I presume if the condition is met the Stock should raise.

Karthik
Dear Karthick,
Thanks for your reply. As of now Maruti futures gave 2 Trades Opportunity. Buy @ 1459.45 (9.25 Candle) and Target 1469.45 Reached in 10.30 Candle. Sell @ 1439 (12.30 Candle) and Target 1429 Reached in 12.35 Candle .
 

Bewinner

Well-Known Member
#57
HTML:
/*
Setup

1). Timeframe : 5min chart
2). EMA : 110 period
3). CCI : 14 days

Why EMA 110? To be frank no idea but when tested proved with results to guage the TREND!

RULE

BUY / GO LONG CONDITION

a). The 5 min candle should be above 110 EMA. 
b). CCI should be > 100. We consider CCI reading only for ENTRY not for EXIT. This CCI will act as a FILTER to avoid false Traps
c). A 0.10% filter on the High price

SELL / GO SHORT CONDITION

a). The 5 min candle should be below 110 EMA. 
b). CCI should be < -100. We consider CCI reading only for ENTRY and not for EXIT. This CCI will act as a FILTER to avoid false Traps
c). A 0.10% filter on the Low price

EXIT : Rs.10/- min 

SL : Rs.10/- (as I want to keep RR as 1:1)

Recommended Scrips : MARUTI, AXISBANK, LT, TCS, ICICIBANK & SBI

I have tested the strategy with the above scrips and hence posted as recommendation. Why I have selected the above scrip is bacause of the highly traded volume. 

I will explain in detail with the Charts

Karthik
*/
_SECTION_BEGIN("Price");
SetChartBkGradientFill( ParamColor("BgTop", colorDarkOliveGreen),
ParamColor("BgBottom", colorDarkGrey),ParamColor("titleblock",colorDarkOliveGreen ));

TimeFrameSet( in5Minute);
EMA110=EMA(C,110);
pt=CCI()>100;nt=CCI()<-100;
bullish=C>EMA110 AND pt;
bear=C<EMA110 AND nt;
Color=IIf(bullish,colorGreen,IIf(bear,colorRed,colorBlack));


GraphXSpace=5;
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close",  color , styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
Plot(EMA110,"EMA110",5,1);
Buy=Cover=bullish;
Short=Sell=bear;
Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy);
Short=ExRem(Short,Cover);Cover=ExRem(Cover,Short);

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen,0,L,Offset=-10);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,H,Offset=-10);
PlotShapes(IIf(Short, shapeHollowDownArrow , shapeNone), colorRed);
PlotShapes(IIf(Cover, shapeHollowUpArrow , shapeNone), colorGreen);

TimeFrameRestore();
_SECTION_END();

Filter = Buy | Short;
                     
        SetOption("NoDefaultColumns", True);
        AddTextColumn(Name(), "SYMBOL");
        AddColumn(DateTime(), "DATE", formatDateTime);
		 AddColumn(TimeNum() ,"Time",1, 75);
        AddColumn(IIf(Buy, 66, 83), "TRIGGER", formatChar, colorWhite, IIf(Buy, colorGreen, colorRed));
        AddColumn(IIf(Buy, H + H*0.001, L - L*0.001), "TRIG PRICE", 1.2);
        AddColumn(IIf(Buy, (H + H*0.001)+10, (L - L*0.001)-10), "Target", 1.2);
        AddColumn(IIf(Buy, (H + H*0.001)-10, (L - L*0.001)+10), "Stop Loss", 1.2);
        AddColumn(C, "Last Close", 1.2);
		 SetSortColumns( -3 );

This is Johnny's code in which I just added the exploration part...And removed the commented part of buy/sell...Now user can see the arrow also..Even added Tgt and Sl in the exploration...hoping to see johnny work on the pictorial representation of Tgt and SL or even better if Johnnybhai have something in his mind...

Rgds,
Sandipan
 

johnnypareek

Well-Known Member
#58
HTML:
/*
Setup

1). Timeframe : 5min chart
2). EMA : 110 period
3). CCI : 14 days

Why EMA 110? To be frank no idea but when tested proved with results to guage the TREND!

RULE

BUY / GO LONG CONDITION

a). The 5 min candle should be above 110 EMA. 
b). CCI should be > 100. We consider CCI reading only for ENTRY not for EXIT. This CCI will act as a FILTER to avoid false Traps
c). A 0.10% filter on the High price

SELL / GO SHORT CONDITION

a). The 5 min candle should be below 110 EMA. 
b). CCI should be < -100. We consider CCI reading only for ENTRY and not for EXIT. This CCI will act as a FILTER to avoid false Traps
c). A 0.10% filter on the Low price

EXIT : Rs.10/- min 

SL : Rs.10/- (as I want to keep RR as 1:1)

Recommended Scrips : MARUTI, AXISBANK, LT, TCS, ICICIBANK & SBI

I have tested the strategy with the above scrips and hence posted as recommendation. Why I have selected the above scrip is bacause of the highly traded volume. 

I will explain in detail with the Charts

Karthik
*/
_SECTION_BEGIN("Price");
SetChartBkGradientFill( ParamColor("BgTop", colorDarkOliveGreen),
ParamColor("BgBottom", colorDarkGrey),ParamColor("titleblock",colorDarkOliveGreen ));

TimeFrameSet( in5Minute);
EMA110=EMA(C,110);
pt=CCI()>100;nt=CCI()<-100;
bullish=C>EMA110 AND pt;
bear=C<EMA110 AND nt;
Color=IIf(bullish,colorGreen,IIf(bear,colorRed,colorBlack));


GraphXSpace=5;
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close",  color , styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
Plot(EMA110,"EMA110",5,1);
Buy=Cover=bullish;
Short=Sell=bear;
Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy);
Short=ExRem(Short,Cover);Cover=ExRem(Cover,Short);

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen,0,L,Offset=-10);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,H,Offset=-10);
PlotShapes(IIf(Short, shapeHollowDownArrow , shapeNone), colorRed);
PlotShapes(IIf(Cover, shapeHollowUpArrow , shapeNone), colorGreen);

TimeFrameRestore();
_SECTION_END();

Filter = Buy | Short;
                     
        SetOption("NoDefaultColumns", True);
        AddTextColumn(Name(), "SYMBOL");
        AddColumn(DateTime(), "DATE", formatDateTime);
		 AddColumn(TimeNum() ,"Time",1, 75);
        AddColumn(IIf(Buy, 66, 83), "TRIGGER", formatChar, colorWhite, IIf(Buy, colorGreen, colorRed));
        AddColumn(IIf(Buy, H + H*0.001, L - L*0.001), "TRIG PRICE", 1.2);
        AddColumn(IIf(Buy, (H + H*0.001)+10, (L - L*0.001)-10), "Target", 1.2);
        AddColumn(IIf(Buy, (H + H*0.001)-10, (L - L*0.001)+10), "Stop Loss", 1.2);
        AddColumn(C, "Last Close", 1.2);
		 SetSortColumns( -3 );

This is Johnny's code in which I just added the exploration part...And removed the commented part of buy/sell...Now user can see the arrow also..Even added Tgt and Sl in the exploration...hoping to see johnny work on the pictorial representation of Tgt and SL or even better if Johnnybhai have something in his mind...

Rgds,
Sandipan
Hmm Ya I too tried to improved as I hinted.

HTML:
/*
Setup

1). Timeframe : 5min chart
2). EMA : 110 period
3). CCI : 14 days

Why EMA 110? To be frank no idea but when tested proved with results to guage the TREND!

RULE

BUY / GO LONG CONDITION

a). The 5 min candle should be above 110 EMA. 
b). CCI should be > 100. We consider CCI reading only for ENTRY not for EXIT. This CCI will act as a FILTER to avoid false Traps
c). A 0.10% filter on the High price

SELL / GO SHORT CONDITION

a). The 5 min candle should be below 110 EMA. 
b). CCI should be < -100. We consider CCI reading only for ENTRY and not for EXIT. This CCI will act as a FILTER to avoid false Traps
c). A 0.10% filter on the Low price

EXIT : Rs.10/- min 

SL : Rs.10/- (as I want to keep RR as 1:1)

Recommended Scrips : MARUTI, AXISBANK, LT, TCS, ICICIBANK & SBI

I have tested the strategy with the above scrips and hence posted as recommendation. Why I have selected the above scrip is bacause of the highly traded volume. 

I will explain in detail with the Charts

Karthik
*/
_SECTION_BEGIN("Price");
SetChartBkGradientFill( ParamColor("BgTop", colorDarkOliveGreen),
ParamColor("BgBottom", colorDarkGrey),ParamColor("titleblock",colorDarkOliveGreen ));

TimeFrameSet( in5Minute);
EMA110=EMA(C,110);
pt=CCI()>100;nt=CCI()<-100;

bullish=C>EMA110 AND pt;
bear=EMA110>C AND nt;
Color=IIf(bullish,colorBlue,IIf(bear,colorRed,colorBlack));
by=Ref(EMA110,-1)>C OR Ref(CCI(),-1)<100;
sy=Ref(EMA110,-1)<C OR Ref(CCI(),-1)> -100;

GraphXSpace=5;
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close",  color , styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
Plot(EMA110,"EMA110",5,1);
SetPositionSize( 100, spsShares ); // 100 shares by default 

Buy=bullish AND by;
//Sell=0;
Short=bear AND sy;

//Cover=0;
//Buy=ExRem(Buy,Sell);
//Sell=ExRem(Sell,Buy);
//Short=ExRem(Short,Cover);Cover=ExRem(Cover,Short);
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen,0,L,Offset=-10);
//PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,H,Offset=-10);
PlotShapes(IIf(Short, shapeHollowDownArrow , shapeNone), colorRed);
//PlotShapes(IIf(Cover, shapeHollowUpArrow , shapeNone), colorGreen);

TimeFrameRestore();
_SECTION_END();
 

Similar threads