Two days trading system

Discussion in 'Advanced Trading Strategies' started by ashokram1, Oct 23, 2012.

  1. ashokram1

    ashokram1 Active Member

    Joined:
    Jul 19, 2009
    Messages:
    189
    Likes Received:
    88
    Trophy Points:
    28
    Two days trading system:

    Many might be following this system, I will here explain how to trade using the two day data and buy or sell using it


    hh = (today's high - yesterday;s high)+today;s high

    ll = (today's low - yesterday's low)+today;s low


    calculate the two values.. if price opens above the hh value... sell below hh
    for the trgt of ll
    and if price opens below ll wait for the price to cross ll and then buy , target would be hh


    example

    jindalstel

    high 1 and low 1 are 406.75 and 398.65

    high 2 and low 2 are 417 and 405.10


    hh and ll are 396.5 and 391.7

    price open today was 404.80 (403.85)

    price opened above hh value and short below 396.5 for a target of 391.70


    when the price doesn;t open below ll or above hh then no trade..
    good luck!
     
  2. sivgates

    sivgates Member

    Joined:
    Apr 3, 2011
    Messages:
    48
    Likes Received:
    5
    Trophy Points:
    8
    Hi Ashok,

    Daily u r tracking any particular set of stocks ...

    For this two day trading system...

    Update daily with ur entries....This may benefit many members like me...

    Regards
    Sivgates
     
  3. sushilgirdher

    sushilgirdher Active Member

    Joined:
    Oct 13, 2012
    Messages:
    191
    Likes Received:
    103
    Trophy Points:
    43
    Location:
    Sirsa
    Is there anybody who have tested this strategy?


     
  4. SURESH MARATHE

    SURESH MARATHE Member

    Joined:
    Apr 9, 2008
    Messages:
    35
    Likes Received:
    15
    Trophy Points:
    8
    Being a layman,pl explain, 417.00,405.1 were on 19/10 and 406.75,398.65 were on 22/10 that means today's high and low are lower than yesterday's high and low. Then how to calculate ?
     
  5. dineshknp

    dineshknp Active Member

    Joined:
    Feb 18, 2009
    Messages:
    284
    Likes Received:
    90
    Trophy Points:
    28
    with the help of two days data, we have to trade on 3rd day?
     
  6. piyush_mp04

    piyush_mp04 New Member

    Joined:
    Sep 27, 2008
    Messages:
    1
    Likes Received:
    2
    Trophy Points:
    3
    I am not getting te calculation
    if today high is 417 and previous day high is 406.75 approx
    then the calculation should be 417 - 406.75 =10.25
    and today high 417 + 10.25 = 427.25 how did get it to 396:(
     
    johnnypareek and pakatil like this.
  7. johnnypareek

    johnnypareek Well-Known Member

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

    Heheheheheheh. "Jaldi ka kaam saitan ka". I made afl as per 1st post n never read it carefully.

    its "-" from both previous , 406.75-10.25,

    HTML:
    /*
    Two days trading system:
    Many might be following this system, I will here explain how to trade using the two Day data AND Buy OR Sell using it
    hh = (today's High - yesterday;s High)+today;s High
    ll = (today's Low - yesterday's Low)+today;s Low
    calculate the two values.. if price opens above the hh value... Sell below hh
    for the trgt of ll
    AND if price opens below ll wait for the price to Cross ll AND then Buy , target would be hh
    example
    jindalstel
    
    High 1 AND Low 1 are 406.75 AND 398.65
    High 2 AND Low 2 are 417 AND 405.10
    
    hh AND ll are 396.5 AND 391.7
    
    price Open today was 404.80 (403.85)
    
    price opened above hh value AND Short below 396.5 for a target of 391.70
    
    when the price doesn;t Open below ll OR above hh then no trade..
    good luck! 
    */
    _SECTION_BEGIN("Price");
    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", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
    _SECTION_END();
    TimeFrameSet( inDaily );
    Hh=Ref(H,-2)-(Ref(H,-1)-Ref(H,-2));
    Ll=Ref(L,21)-(Ref(L,-1)-Ref(L,-2));
    Oo=O;
    TimeFrameRestore();
    Hh = TimeFrameExpand(hh,inDaily,expandFirst); 
    Ll = TimeFrameExpand(ll,inDaily,expandFirst);
    Oo= TimeFrameExpand(Oo,inDaily,expandFirst);
    Short=Oo>Hh AND Cross(Hh,L);
    Buy=Oo<Ll AND Cross(H,Ll);
    //Cover=0 OR Buy;
    //Sell=0 OR Short;
    
    //Buy=ExRem(Buy,Short);
    //Sell=ExRem(Sell,Buy);
    //Short=ExRem(Short,Buy);
    //Cover=ExRem(Cover,Short);
     
    PlotShapes(IIf(Buy==1, shapeUpArrow , shapeNone), colorBlue, 0,Low, Offset=-20);
    PlotShapes(IIf(Short==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-20);
    Plot(Hh,"Upper",5,1);
    Plot(Ll,"Lower",4,1);
    Plot(Oo,"Open of day",9,1+32);
    Don't know whether its right or wrong I did "-" instead of plus as the figure given comes by doing "-"
    johnny
     
    Last edited: Oct 24, 2012
    ashokram1 likes this.
  8. ravinder0509

    ravinder0509 Active Member

    Joined:
    Mar 9, 2006
    Messages:
    132
    Likes Received:
    93
    Trophy Points:
    28
    Can you please post the afl...
     
  9. ashokram1

    ashokram1 Active Member

    Joined:
    Jul 19, 2009
    Messages:
    189
    Likes Received:
    88
    Trophy Points:
    28
    @piyush... day one high was 406.75 , day two (yesterday high) was 417

    406.75 - 417 = -10.25 add it to 406.75 ...

    406.75-10.25 = 396.5

    HH value is therefore 396.5
    open above this levels and short below would work
    thank you
     
  10. ashokram1

    ashokram1 Active Member

    Joined:
    Jul 19, 2009
    Messages:
    189
    Likes Received:
    88
    Trophy Points:
    28
    @johnny sir,

    thanks for the afl .. please change the following

    Ll = Ref(L,-1)+((Ref(L,-1)-Ref(L,-2)));
    Hh = Ref(H,-1)+((Ref(H,-1)-Ref(H,-2)));

    and open should be the intraday open..
    please help ....
     
    jsb2012 likes this.

Share This Page