Karthik's Intraday Trading using EMA & CCI

Discussion in 'Technical Analysis' started by karthik_sri, Mar 2, 2013.

  1. johnnypareek

    johnnypareek Well-Known Member

    Joined:
    Jun 14, 2006
    Messages:
    875
    Likes Received:
    595
    Trophy Points:
    93
    Tried to create afl

    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();
     
    Last edited: Mar 4, 2013
    nirmal82, mangup, srichakra and 7 others like this.
  2. pakatil

    pakatil Well-Known Member

    Joined:
    Oct 13, 2006
    Messages:
    1,627
    Likes Received:
    2,067
    Trophy Points:
    113
    Location:
    Bangalore
    3 Trades came in Axis Bank. Long, Short & Long. First 2 trades hit SL & Last reached tgt.
     
  3. karthik_sri

    karthik_sri Well-Known Member

    Joined:
    Jul 20, 2007
    Messages:
    851
    Likes Received:
    1,969
    Trophy Points:
    93
    Location:
    Chennai
    Dear chandy,
    There was an oppertunity (short side) in 9:34 but that had the SL hit. The second of urs is right. To answer your point 2 we wait for Target or SL to hit as we have fixed the SL. Since this is Intraday setup to close the trade on the same day. There will be a price difference between Cash & Future to be traded separately with the respective market.

    Karthik
     
  4. karthik_sri

    karthik_sri Well-Known Member

    Joined:
    Jul 20, 2007
    Messages:
    851
    Likes Received:
    1,969
    Trophy Points:
    93
    Location:
    Chennai
    Bro Axis Bank gave two oppertunities today (cash & futures). First trade SL and second Target achieved.
     
    pakatil likes this.
  5. smarttrade

    smarttrade Active Member

    Joined:
    Jun 18, 2010
    Messages:
    111
    Likes Received:
    39
    Trophy Points:
    28
    MARUTI :-

    9.15 Candle : (Crossed Above EMA and CCI Above 100).
    ==========
    High : 1407.35
    Low : 1393
    Buy Above : 1408.75
    Target : 1418.75
    SL : 1397

    Buy Triggered : 9.20 Candle
    Tar. Achived : 10.15 Candle


    TCS :

    9.30 Candle : (Crossed Above EMA and CCI Above 100).
    ==========
    High : 1526.90
    Low : 1519
    Buy Above : 1530
    Target : 1540
    SL : 1516.90

    Buy Triggered : 9.40 Candle
    Tar. Achived : 11.05 Candle

    SBIN :

    10.25 Candle : (Crossed Below EMA and CCI Above -100).
    ==========
    High : 2120.10
    Low : 2103.50
    Sell Below : 2101.40
    Target : 2091.40
    SL : 2113.50

    Sell Triggered : 10.50 Candle
    Tar. Achived : 11.00 Candle

    LT :

    1st Trade :

    10.35 Candle : (Crossed Below EMA and CCI Above -100).
    ==========
    High : 1374.50
    Low : 1371
    Sell Below : 1369.60
    Target : 1359.60
    SL : 1380

    Sell Triggered : 10.55 Candle
    Stop Los Hit : 11.35 Candle
    2nd Trade:

    11.35 Candle : (Crossed Above EMA and CCI Above 100).
    ==========
    High : 1381.45
    Low : 1378
    Buy Above : 1382.85
    Target : 1392.85
    SL : 1371.45

    Buy Triggered : 11.45 Candle
    Tar. Acheived : 12.15 Candle
    ICICI :

    11.30 Candle : (Crossed Above EMA and CCI Above 100).
    ==========
    High : 1089.10
    Low : 1086.80
    Buy Above : 1090.20
    Target : 1100.20
    SL : 1079

    Buy Triggered : 11.35 Candle

    Am I Correct Karthick ?
     
    Last edited: Mar 5, 2013
    karthik_sri likes this.
  6. srichakra

    srichakra Member

    Joined:
    Dec 3, 2008
    Messages:
    98
    Likes Received:
    32
    Trophy Points:
    18
    Location:
    chennai
    Hi JohhyPareek,

    Thanks for the AFL. Some observations
    1. The idea is o buy above the candle high of the candle that closes above the 110 EMA and CCi > 100. But we are not able to read the OHLC rates as the color scheme is black font on grey background. The font color has to be changed.
    2. How are buy and sell entries indicated. I am unable to see them on the charts.

    I request you to make this visually more appealing ,My request is because of my very limited knowledge of Amibroker coding. I have just started using it for past 2-3 weeks and still figuring it out

    Thanks fr th ehelp in advance.
     
  7. johnnypareek

    johnnypareek Well-Known Member

    Joined:
    Jun 14, 2006
    Messages:
    875
    Likes Received:
    595
    Trophy Points:
    93
    YA YA That was made in hurry. Actully I put buy/sell arrow too but have to do tgt sl exit will do tonight n post.
     
    ravinder0509 and karthik_sri like this.
  8. johnnypareek

    johnnypareek Well-Known Member

    Joined:
    Jun 14, 2006
    Messages:
    875
    Likes Received:
    595
    Trophy Points:
    93

    Hi,

    Only one trade on the same side?? I mean to say MARUTI have done tgt. Now cci falls back below 100 after one hrs it again goes above 100, here shud we buy again with rs10 sl tgt??
     
  9. johnnypareek

    johnnypareek Well-Known Member

    Joined:
    Jun 14, 2006
    Messages:
    875
    Likes Received:
    595
    Trophy Points:
    93
    Regarding background color, right click on chart n select parameter there select diff color for titleblock
     
  10. karthik_sri

    karthik_sri Well-Known Member

    Joined:
    Jul 20, 2007
    Messages:
    851
    Likes Received:
    1,969
    Trophy Points:
    93
    Location:
    Chennai
    Yes ST Bro...everything is perfect:clap::clap:

    If Traded would have made more than Rs.8000/- appx :thumb:

    Karthik
     
    nazimrushda and smarttrade like this.

Share This Page