Rank: Member
Groups: Registered, Registered Users Joined: 6/20/2005(UTC) Posts: 10 Location: Perth, Australia
|
Hi,
A common ATR trailing stop for long positions states HHV (H - 2.5*ATR (5), 10). Instead of looking back for the highest High of the last 10 bars, I would like to program an exit which is looking for the highest High since my entry.
Is this actually possible? I was told that this is one of metastock's limitations since it doesn't have a memory.
I tried the following formula which wasn’t very successful…
Entry:= C>Mov(s,5s);
L < (HighestSince( 1, entry, H ) - 2.5*ATR(5))
I hope someone can help me.
Cheers
:P
|
|
|
|
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)
|
Have you had a look at Richard Dale's excellent and free trailing stop loss indicator? It might save you from having to code anything at all!
It available here : http://www.tradernexus.com/
wabbit :D
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 6/20/2005(UTC) Posts: 10 Location: Perth, Australia
|
Thanks. That's a great website!
: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.