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

Notification

Icon
Error

Options
Go to last post Go to first unread
milton  
#1 Posted : Wednesday, May 28, 2008 2:51:06 PM(UTC)
milton

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 5/28/2008(UTC)
Posts: 2
Location: Pennsylvania, USA

I am new to this tool (which is excellent!) and I'm hoping one of you can point me in the right direction.

I have a system that allows for simultaneous positions. In certain circumstances I would like to trigger a second or third buy signal, but only if I'm currently holding a position. That is, I would not want the buy signal to fire if I was not already in a position.

Is there a way to assess whether or not I'm currently holding a position?

Thanks!
wabbit  
#2 Posted : Wednesday, May 28, 2008 6:54:34 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 milton,

Welcome to the Forum.

Download Roy Larsen's instructions on how to create a latch using MS Formula Language free from the files section: http://forum.equis.com/files/3015/metastock_files/entry19675.aspxtest the first has triggered without an exit signal, then test for the other entry signals. If you have a single exit signal this makes life easy for the latch code. If you have multiple independent exit criteria, the latch code is still do-able, but its going to get quite messy and involve using nested PREV statements which is going to be slow and CPU intensive. Consider using an external function instead.

Hope this helps.

wabbit [:D]

milton  
#3 Posted : Wednesday, May 28, 2008 7:23:47 PM(UTC)
milton

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 5/28/2008(UTC)
Posts: 2
Location: Pennsylvania, USA

wabbit,

Thanks for the reply. Fortunately, I am working with only one exit signal. I will download the suggested item and give it a shot. I really appreciate your help.

milton
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.