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

Notification

Icon
Error

Options
Go to last post Go to first unread
flyingtoaster  
#1 Posted : Wednesday, March 30, 2005 2:39:35 PM(UTC)
flyingtoaster

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/29/2005(UTC)
Posts: 1

hello,

I would like to store entries values for later testing. ie : i buy long at 100$, my stoploss is set at 90$, the value go 120$ and i want to automatically set my stoploss at 105$ (I don't want a trailing stop but a fixed stop that go automatically to entrie value +x% when the value go up)

I don't know how to do it with MetaStock langage.

Thanks for your comments.

Daniel
Patrick  
#2 Posted : Wednesday, March 30, 2005 6:25:22 PM(UTC)
Patrick

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)
I fail to see how this is different than a trailing stop?

Here is a Trailing Stop formula :

bc:={Buy Condition here};
lvl:={Level Of Stop, for example 'value +x%'};
If(bc,lvl,
If(ROC(C,1,%)>0,Max(lvl,PREV),PREV));

The last part of the code says :

If buy condition, plot the level of stop value
If the price goes up give me the greatest value between the new value and the previous level values
If the price goes down keep the previous level value

etc ...
Users browsing this topic
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.