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

Notification

Icon
Error

Options
Go to last post Go to first unread
Freddie  
#1 Posted : Tuesday, April 6, 2010 2:36:25 PM(UTC)
Freddie

Rank: Newbie

Groups ready for retrieval: Registered, Registered Users
Joined: 4/6/2010(UTC)
Posts: 1

Hi,

I'm quite new at coding Metastock.

I'm building a range breakout system. I have come a long way but there is one thing I don't understand how to code. How do you code an stop and reverse? You have entered the trade but it goes the wrong way and when it does that it should hit the stoploss and also enter the trade again in the opposite direction.

It would be really great if someone at this excellent forum could give me a hand.

Best regards
Freddie

wabbit  
#2 Posted : Tuesday, April 6, 2010 6:07:34 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
You have been a member since:: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

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

As you will need MS to "remember" the trade that was just stopped out, you will need to use some latching code; have a look on the forum for some of the many examples and have a read of Roy Larsen's excellent guide on using latches in MS (files section).



wabbit [:D]

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.