logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
stocktester  
#1 Posted : Saturday, December 22, 2007 11:08:34 AM(UTC)
stocktester

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

hayseed  
#2 Posted : Saturday, January 12, 2008 9:58:22 PM(UTC)
hayseed

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.