Rank: Newbie
Groups: Registered, Registered Users Joined: 3/11/2006(UTC) Posts: 1
|
This question seems so simple I hesitate to ask but I can't find the answer. I would like to do some optimized exit testing where I take profit and/or stop losses at the entry price plus or minus some ATR. The "Stops" tab in the system tester allow you to exit at either percents or points. I would like to exit in ATR's. This seems like it would be simple but I don't find any reference for the entry price in Metastock system language.
In english what I need would be something like: Exit at entry price plus 1.5 (optimized) 14 (optimized) day ATR's.
Any ideas?
Thanks,
Dave
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Try using something like this:
opt1:=1.5;
opt2:=14;
BC:={Buy Condition};
SL:=ValueWhen(1,BC,C+(opt1*ATR(opt2)));
Cross(SL,C)
Patrick :mrgreen:
|
|
|
|
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.