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