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

Notification

Icon
Error

Options
Go to last post Go to first unread
aed71  
#1 Posted : Monday, November 10, 2008 1:20:15 PM(UTC)
aed71

Rank: Newbie

Groups: Registered, Registered Users
Joined: 9/6/2007(UTC)
Posts: 4

Hi,

I would like to know if I can enable a sell short command valid if the system is was perviously sold only. Eg:

Buy Order : Criteria-1

Sell Order: Criteria-2

Sell Short Order : Criteria-3

Buy to Cover : Criteria-4

I want system tester to apply Criteria-3 if and only if the last trade was a Sell Order (Criteria-2=True)

I'm using Metastock 10.1 EOD.

Thanks for your help in advance.

Regards.

wabbit  
#2 Posted : Wednesday, November 12, 2008 3:49:13 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Hi aed71,

Welcome to the forum.

Have a look at the ValueWhen() function, or BarsSince() function. Both of these could be used to "remember" the type of trade last executed; you might also be able to use the PREV function but I'd recommend looking at the other two options first as preferences over using PREV.

Roy Larsen wrote an excellent tutorial on using latches in MS, he describes using specific latches to "remember" values. The document is available in the files section of the forum.



Hope this helps.

wabbit [:D]

aed71  
#3 Posted : Saturday, November 15, 2008 3:23:28 PM(UTC)
aed71

Rank: Newbie

Groups: Registered, Registered Users
Joined: 9/6/2007(UTC)
Posts: 4

Thanks wabbit.

BR/AED

andwilson  
#4 Posted : Sunday, November 23, 2008 2:37:58 PM(UTC)
andwilson

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/6/2008(UTC)
Posts: 9

At Files Section in this forum, look for the ForumDLL Manual, it has a formula called " Normal 0 Latch or Flip Flop Function" that will make you life a lot easier.
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.