Trading with AMA and price action- forward testing

Discussion in 'Trading Diary' started by vijkris, Mar 10, 2016.

?

A good trading method/system generates x % average return per month .

  1. < 5% pm

    16.3%
  2. >5 and upto 10% pm

    34.9%
  3. 10 to 20% pm

    32.6%
  4. Upto 50% pm

    7.0%
  5. Upto 100% pm

    0 vote(s)
    0.0%
  6. Greater than 100% pm

    9.3%
  1. vijkris

    vijkris Well-Known Member

    Joined:
    Mar 4, 2013
    Messages:
    3,719
    Likes Received:
    7,954
    Trophy Points:
    113
    Location:
    hyderabad
    Hi, here I will forward test an intraday method using AMA and price action.
    Tf = 1min

    Special thanks to Pratap sir and Happy_singh ji, for providing the relevant afls.

    tools used = AMA bands 15 tf, Vwap.

    for risk mgmt. pls refer - http://www.traderji.com/trading-dia...ew-way-pivot-trading-vwap-41.html#post1131836

    EDIT : pls do participate in the poll, as I would like to keep a realistic target for this system.
     
    Last edited: Mar 11, 2016
    rip07, server2712, arsh22g and 7 others like this.
  2. Rehab

    Rehab Active Member

    Joined:
    Jan 1, 2014
    Messages:
    197
    Likes Received:
    149
    Trophy Points:
    43
    Thanks for opening the most awaited thread Sirji.I started trading it just 10-15days b4,
    so I voted >5 and upto 10% pm.
    AMA and VWAP terms are still news for me.Only taking AMA breakouts.
     
    vijkris likes this.
  3. vijkris

    vijkris Well-Known Member

    Joined:
    Mar 4, 2013
    Messages:
    3,719
    Likes Received:
    7,954
    Trophy Points:
    113
    Location:
    hyderabad
    hi, we all r friends here, so pls don address me as "sirji". thanks.
    I m also learning the vwap,ama,pivots,. hope this thread helps me in attaining deeper understanding of the above.
    for me pivots is difficult to understand, so will use only mp..and trendlines
     
    Last edited: Mar 10, 2016
  4. vijkris

    vijkris Well-Known Member

    Joined:
    Mar 4, 2013
    Messages:
    3,719
    Likes Received:
    7,954
    Trophy Points:
    113
    Location:
    hyderabad
    Objective of the system : Early entry in the trend, ride the trend, exit at any sign of trend exhaustion.

    Rules of the system

    1. 15 min ama bands will be used to determine the bias/direction.
    2. Price trading above AMA = look for long entry.
    3. Price trading below AMA = look for short entry.

    4. Price trading inside 15 min ama bands will be considered as sideways .
    5. Trading within bands is bit risky as the direction may change without giving proper signals.

    Entry setup:-
    Long - we will enter at end of decline and start of rally
    Look for inverse palm of hand pattern, i.e look at any previous 5 candles. 1st two candles should be red and lower lows and lower highs is compulsory
    3rd i.e middle candle must have lowest low out of all 5 candles. any color
    4th and 5th candle must be green in color and higher lows and higher high is compulsory.
    Enter on 6th bar, if 5th bar high is crossed.

    Short - we will enter at end of rally and start of decline
    Look for palm of hand pattern, i.e look at any previous 5 candles. 1st two candles should be green and higher lows and higher highs is compulsory
    3rd i.e middle candle must have highest high out of all 5 candles.
    4th and 5th candle must be red in color and lower highs and lower low is compulsory.
    Enter on 6th bar, if 5th bar low is crossed.

    Point to note : This 5 candle setup is future looking, ie after completion of 5th bar only the setup is complete.

    Also point to be noted is that the 3rd bar will be minor pivot according to ema pivots.
     
  5. Rehab

    Rehab Active Member

    Joined:
    Jan 1, 2014
    Messages:
    197
    Likes Received:
    149
    Trophy Points:
    43
    Pls upload few images Vijay Bhai.
     
    vijkris likes this.
  6. vijkris

    vijkris Well-Known Member

    Joined:
    Mar 4, 2013
    Messages:
    3,719
    Likes Received:
    7,954
    Trophy Points:
    113
    Location:
    hyderabad
    b4 posting images would like to share afl which will be required to identify candles properly.
    original code is in this link: http://www.traderji.com/amibroker/90119-simple-coding-help-no-promise-392.html#post1128472

    I modified the code little bit for this strategy.

    Code:
    _SECTION_BEGIN("Price");
    SetChartBkColor(colorBlack);
    SetChartOptions( 0,chartShowArrows+ chartShowDates |   chartWrapTitle );
    GraphXSpace=5;
    _N(Title = StrFormat("{{NAME}} {{DATE}} {{INTERVAL}}: O=%1.2f, H=%1.2f, L=%1.2f, C=%1.2f, V=%1.0f\n{{VALUES}}", O, H, L, C, V));
    
    BaseHi[1]    = H[0];		
    BaseLo[1]    = L[0];
    IamInside[1] = C[1] < BaseHi[1] AND C[1] > BaseLo[1];
    
    for (i = 2; i < BarCount; i++) 
    {
    	if (IamInside[i-1]) 
    	{
    		IamInside[i] = C[i] < BaseHi[i-1] AND C[i] > BaseLo[i-1];
    		if (IamInside[i])
    	 	{
    			BaseHi[i] = BaseHi[i-1];
    			BaseLo[i] = BaseLo[i-1];	
    		}
    		else
    		{
    			BaseHi[i] = H[i-1];
    			BaseLo[i] = L[i-1];		
    		}		
    	}
    	else
    	{
    		IamInside[i] = C[i] > L[i-1] AND C[i] < H[i-1];
    		BaseHi[i] = H[i-1];
    		BaseLo[i] = L[i-1];		
    	}
    }
    
    SetBarFillColor(IIf(NOT IAMINSIDE AND C > O, ParamColor("OUTSIDE BAR UP",colorBrightGreen), IIf(NOT IAMINSIDE AND C<O,ParamColor("OUTSIDE BAR DOWN",colorRed),colorBlack))); 
    BarColor = IIf(NOT IamInside,colorYellow,IIf(C < O, ParamColor("bardown",colorDarkRed), ParamColor("barup",colorDarkBlue)));
    Plot(C, "Close", Barcolor, styleCandle | styleNoTitle);  
    /*
    Buy = IIf(iaminside,Cross(C,basehi[i-1]),Null);
    PlotShapes(shapeUpArrow*Buy,colorGreen,0,L);
    
    
    	
    
    // Can comment out or delete the following 
    //PlotShapes(IamInside*21,colorWhite,0,L,-10);
     
    quickTrader, niftytaurus and Rehab like this.

  7. Rehab

    Rehab Active Member

    Joined:
    Jan 1, 2014
    Messages:
    197
    Likes Received:
    149
    Trophy Points:
    43
    I applied this AFL and all my setting got changed.The BG changed to black.I removed the AFL and re-arranged all scrips as per my comfort.But the prob now is,if I open new default chart uspe yeh AFL ki settings dikh rahi hai,though I removed the AFL :O how to solve this Vijay Bhai?
     
  8. vijkris

    vijkris Well-Known Member

    Joined:
    Mar 4, 2013
    Messages:
    3,719
    Likes Received:
    7,954
    Trophy Points:
    113
    Location:
    hyderabad
    any new afl should be applied in new sheet/blank sheet. if any prrob only that sheet is affected.
    yes the color combination is created for black background. it will be visible better.
    also din understand wat is rearrangement of all scrips ?
    pls post pics using imgur and bbcode.
     
  9. Rehab

    Rehab Active Member

    Joined:
    Jan 1, 2014
    Messages:
    197
    Likes Received:
    149
    Trophy Points:
    43
    [​IMG]

    I removed ur AFL..now there is no existance of the AFL in the lappy...I took a fresh plain price chart and applied AMA+VWAP etc.
    Now,If I want to check whats happening in say Tatasteel,I added a scrip in NOW,backfilled it.But amibroker me Tatasteel pe upar jaisa hi dikh raha hai..how to solve this?

    code/afl delete karne ke baad bhi amibroker me agar new default chart open karo to uspe aapki AFL apply ho jaa rahi hai.
     
  10. vijkris

    vijkris Well-Known Member

    Joined:
    Mar 4, 2013
    Messages:
    3,719
    Likes Received:
    7,954
    Trophy Points:
    113
    Location:
    hyderabad
    wat u r seeing is vwap and ama afl only. according to pic the afl is looking normal. u can change colors using parameters.
    u must have dragged the my afl on the existing vwap afl.
    open a blank chart and try to drag vwap afl.
    my afls r complex, so always drag it in new and blank pane.

    right click-templates-load default. and see.
    even if u delete my afl from pc, since u inserted it before, it stays in drag and drop folder.

    if the above doesn work, click file-open a blank chart- don't drag but right click on vwap from charts menu and use insert linked.
     
    quickTrader, niftytaurus and Rehab like this.
Loading...

Share This Page