in Search

Entry price strategy

Last post 12-14-2007, 16:50 by oztrader. 3 replies.
Sort Posts: Previous Next
  •  12-13-2007, 11:06 26042

    Entry price strategy

    There are entry strategies which utilize buying at price beside OHLC. However metastock does not seems to cater to testing these entry methods. Wonder if anyone has a probable solution.

    One entry method is to buy at bar high + 1 point.

    For example, today bar has a buy setup.
    If tommorrow price open below today high, buy at high + 1 point.
    If tommorrow price open above today high, buy at open.

    Flexi
    Using ms8 and tradesim 4

     

  •  12-13-2007, 18:30 26045 in reply to 26042

    Re: Entry price strategy

    Flexi,

     

    Assuming you are writing the code for back testing in TradeSim then try something along these lines.

     

    Entry Trigger:=Ref(BuySetup,-1); {"BuySetup" = the rules and filters that must be satisfied for the system to give a buy signal}

     

    EntryPrice:= If (OPEN<=Ref(HIGH,-1),Ref(HIGH,-1)+0.01,OPEN);

     

    This code is written on the basis that the “BuySetup” happened yesterday and this is the buy instruction for today.

     

    oztrader

  •  12-13-2007, 23:44 26050 in reply to 26045

    Re: Entry price strategy

    Hi oztrader,

    Tradesim allow buying at H+1 but the software does not cater to optimisation. Pefer to implement the Ref(H,-1)+1 in MS system tester. MS8 allow OHLC but not variable price entry. Does v9 or v10 allow this? Or a custom code is possible to buy Ref(H,-1)+1?

    Tks.

  •  12-14-2007, 16:50 26065 in reply to 26050

    Re: Entry price strategy

    Hi Flexi,

    I had a look at the v9 manual and it would appear to have the same constraints as v8.

    Best of luck with the optimising.

View as RSS news feed in XML