in Search

Contra Buying System Tester

Last post 01-12-2008, 21:58 by hayseed. 1 replies.
Sort Posts: Previous Next
  •  12-22-2007, 11:08 26140

    Contra Buying System Tester

    Hi,

    I would like test a contra buying scenario using system tester. But I could not find a way to issue a sell order 3 days after entry, anyone can share how I can do that in System Tester?

    Thank you.

    Stocktester

     

  •  01-12-2008, 21:58 26307 in reply to 26140

    Re: Contra Buying System Tester

    hey stocktester..... to sell at a set time after opening you can use the barssince function in a manner like below.....h

     

    buy when 10 crosses the 20

    //--------------------------

    a:=mov(c,10,s);
    aa:=mov(c,20,s);

    cross(a,aa);

    //-------------------------

     

    sell 3 bars after the 10 crosses the 20

    //-----------------------

    a:=mov(c,10,s);
    aa:=mov(c,20,s);

     BarsSince(cross(a,aa) ) =3;

    //------------------------

     

     

View as RSS news feed in XML