Rank: Newbie
Groups: Registered, Registered Users Joined: 11/17/2009(UTC) Posts: 3
|
I am testing system in system tester from last 6 month and
still I am struck in the concept of trailing stop method used in metastock. I
tried so many codes for trailing stop loss in system tester but the results vary.
Can any one help me and tell about what exactly codes or concept used in
trailing stop loss and initial stop loss in metastock system tester.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi dhirbisht
I would call the EST trailing stop a profit stop. From memory the stop kicks in on the second bar of the trade unless you say otherwise by setting a delay. Unless the trade moves above the purchase price (on a long trade) you will definitely be stopped out by any low that drops to the purchase price once the delay has expired. The actual Profit stop allows you to set a profit target. What the trailing stop does is it tries to prevent you losing more than a set amount of profit. However the percentage you set applied to loss of trade profit, not the loss of trade capital. Suppose you have the stop set at 50% and your trade moves up by 2%, if that trade then moves down by 1% the stop will say "whoops, 50% of profit has just disappeared so I'd better kill the trade". Great.
I think you would do better by coding a trailing stop loss into your exit code window and stay well clear of the EST trailing stop. The same goes for an initial stop. If you have MS 11 you might like to try the Intellistop formulas. While there's not as much flexibility with these as there is with the 4 Intellistop options available with the ICE plug-in, you might find they are of some use.
Adding OR L<Ref(Fml("MS11 - IntelliStop Buy (longer-term)"),-1) to your Long Sell code should get you started. The intellistop formulas use a couple of PREVs but the slow-down effect is not too bad. In my opinion they're quite useful for testing.
Roy
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 11/17/2009(UTC) Posts: 3
|
I use the following code as u said For Long exiting long position OR L<Ref(Fml( "zAdaptick - IntelliStop Buy 2"),-1) and for exiting short position OR H<Ref(Fml( "zAdaptick - IntelliStop Short 2"),-1)
But results are poor as compare to selecting Trailing stop loss in EST in stops tab... Just check your own the results on moving average cross over on any Index. 1. without trailing stop loss 2.Stop loss by calling some function say from ICE plug in or other code(not selecting trailing stop loss in EST in stops tab) 3.only cross over by selecting the trailing stop loss in EST in stops tab..
You will find that the best result on system testing is on 3rd option. I want to create some expert using code to get the same result of 3rd option.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 4/9/2008(UTC) Posts: 8
|
dhirbisht wrote:I am testing system in system tester from last 6 month... You have spent a lot of time and energy on the problem. I suggest a change in the direction of the attack. Run your stock through the Genetic System Search to see what it comes up with. See my message in this post: http://forum.equis.com/forums/post/30647.aspxYou might find a different approach profitable. A new perspective may be beneficial.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 11/17/2009(UTC) Posts: 3
|
Sorry for replying late I tried your mentioned software (Genetic
System) but the result are poor as I tested in metastock EST point only test.
Still looking for the trailing stop loss code for EST
metastock.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 4/9/2008(UTC) Posts: 8
|
Note that the Genetic System Search for Technical Analysis software is intended as alternate approach to the tedious process of investment rule construction. If a particular indicator does not increase the performance of a set of buy and sell rules for the security under test, it is modified or discarded. - While some manual inspection of candidate trading systems is instructive, eventually it becomes onerous. Let a computer do the menial searches. Moreover, expand your horizons. Do not focus on a small set of indicators and disregard the wider universe. In the meantime, time is passing. See my blog post Time is Money.
- Furthermore, you must always check a set of investment rules for conditions that will cause you to deviate from the plan on which you've spent a lot of energy. I wrote briefly about this in my blog post Develop a Trading System That You Won’t Second Guess or Abandon.
- Finally to address your trailing stop specifically, have you seen the code at the meta-formula.com Website?
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 1/12/2010(UTC) Posts: 9
|
Hi,
Did you find the code yet as I would be interested also.
When I use the Metastock Trailing Profit Stop it's often inaccurate and stops me out an a price that's not realistic. Do you see this also?
|
|
|
|
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.