Rank: Newbie
Groups: Registered, Registered Users Joined: 12/22/2007(UTC) Posts: 1
|
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
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
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;
//------------------------
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.