Question about Order Place Code at Amibroker

Discussion in 'Order Execution' started by ben.lai, Aug 29, 2014.

  1. ben.lai

    ben.lai

    I am using Amibroker

    I wanna write a code that "xLine=EMA(40)",
    mainly BUY above xLine and SHORT below xLine

    For Long order placing....
    Buy Immediately when High cross xLine
    But if same bar close < xLine, then (Cut Loss and Reverse) Sell and Short
    else if Cross(Low, xLine) then (Take profit and Reverse) Sell and Short

    For Short order placing, is exactly the opposite.

    Would you mind teach me how to write the code for the above action?
    Many Thanks!!!
     
  2. damo484

    damo484

    I think it may be better off to try the Amibroker users forum or their yahoo site. Or...you can trawl through their manual to learn, or.....download a copy of Howard Bandy's book. Just google that.

    damo