• Australian (ASX) Stock Market Forum

Hello and welcome to Aussie Stock Forums!

To gain full access you must register. Registration is free and takes only a few seconds to complete.

Already a member? Log in here.

Breakout Trading Amibroker

Discussion in 'Software and Data' started by lienshi, Feb 25, 2013.

  1. lienshi

    lienshi

    Posts:
    2
    Likes Received:
    0
    Joined:
    Feb 17, 2013
    Hi All,

    I've been following Alan Hull books and so far managed to get his ROAR, MMA formulas for Amibroker. Does anyone managed to code/ get his breakout trading strategy formulas? He has the metastock ones written on his book 'Trade my way'.

    Any help is much appreciated.
     
  2. trash

    trash

    Posts:
    412
    Likes Received:
    17
    Joined:
    Mar 31, 2012
    What is the metastock formula?
     
  3. lienshi

    lienshi

    Posts:
    2
    Likes Received:
    0
    Joined:
    Feb 17, 2013
    Hi, heres the appendix formula I typed

    Breakout to the upside

    Volatility measure = close of breakout candle is above the previous candle by more than half the ATR(17)

    Close>(Ref(Close,-1)+(0.5*ATR(17)))

    Closing price position = close of breakout candle is above its midpoint

    Close>(Low+((H-L)*0.5))

    MACD measure = at the breakout, the MACD line is above its signal line and rising

    MACD()>Ref(MACD(),-1) AND MACD()>Mov (MACD(),9,E)

    Closing price magnitude = close of the breakout candle is greater than 20 cents to help ensure there is sufficient liquidity

    Close>0.2 (this will depend on what unit your price data uses)

    Trailing stop loss = displacement of 2 times ATR(17) below the highest high during the trading. include a satement to ensure the trailing stop loss only rises during the trade

    Displacement:=HHV(HIGH-(2*ATR(17)),5);

    Stop:=If(Ref(CLOSE,-1)>PREV AND Displacement<PREV,PREV,Displacement);

    {Plot the Stop Loss}

    Stop;

    Entry limit = 2.5XATR(17) above the trailing stop loss at the breakout only

    Limit:=Stop +(2.5*ATR(17));

    Breakout to the downside



    Volatility measure = close elf breakout candle is below the previous candle by more than half the ATR(17)

    Close<(Ref(Close,-1)-(0.5*ATR(17)))

    Closing price position = close of breakout candle is below its midpoint

    Close<(High - ((H-L)*0.5))

    MACD measure = at the breakout, the MACD line is below its signal line and falling

    MACD ()<Ref (MACD(),-1) AND MACD()<Mov (MACD(),9,E)

    Closing price magnitude = close of the breakout candle is greater than $1 to help ensure there is still enough room above zero for the price to continue falling for a reasonable period

    Close>1 (this will depend on what unit your price data uses)

    Trailing stop loss = displacement of 2XATR(17) above the lowest low during the trading. include a statement to ensure the trailing stop loss only falls during the trade

    Displacement:=LLV(LOW+2*ATR(17)),5);

    Stop:=If(Ref(CLOSE,-1)<PREV AND Displacement>PREV,PREV,Displacement);

    {Plot the Stop Loss}

    Stop;

    Entry limit =2.5 XATR(17) below the trailing stop loss at the breakout only

    Limit:=Stop-(2.5*ATR(17));

    Thanks
     
Loading...

Share This Page