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.
|
|
|
|
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]
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 9/6/2007(UTC) Posts: 4
|
|
|
|
|
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.