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

Notification

Icon
Error

Options
Go to last post Go to first unread
ifnx  
#1 Posted : Monday, May 13, 2013 11:41:32 AM(UTC)
ifnx

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 10/13/2012(UTC)
Posts: 2

Hi everyone! I am new on MS programming and have a question:
How can i programming inactivity stop in MS formula language? I thought that stop level is equal to Ref (H, -{number of periods in stop})*(1+ {percent}/100) for buy deals, but system tester with inactivity stop doesn't triggered when price fall down than that price.
Thanx for any help.
henry1224  
#2 Posted : Monday, May 13, 2013 4:19:07 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
you could use barsSince() function
ifnx  
#3 Posted : Tuesday, May 14, 2013 4:50:45 AM(UTC)
ifnx

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 10/13/2012(UTC)
Posts: 2

henry1224 wrote:
you could use barsSince() function
can you give an example please?

henry1224  
#4 Posted : Tuesday, May 14, 2013 7:03:22 AM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
You need to create a system
LE:=your long entry;
SE:=your short entry;
LX:=BarsSince(LE)=5;{Long Exit}
SX:=BarsSince(SE)=5;{Short Exit}
Then you can use the Forum Dll to finish

But you really need to read the formula primer or the manual that comes with Metastock!
I realize that you are anxious to trade with metastock, but unless you know how to code or understand what the code is really doing,You are going to lose money!!!
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.