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