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

Notification

Icon
Error

Options
Go to last post Go to first unread
ksrt  
#1 Posted : Saturday, April 18, 2009 11:03:49 PM(UTC)
ksrt

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/16/2009(UTC)
Posts: 11
Location: Sydney

Hi, I am new to Equis and I am currently doing some testing. I am having problems with the position sizing & the positions not being stopped out as I require. I want my position sizes to be 15% of capital and have entered in .15 into the position sizes with % of available equity selected on the buy order tab. When I look at the trades taken they are more than the 15% I want. What am I missing here? With the stops I have put in stops and stated a maximum loss but these are being exceeded. Not sure what I am doing wrong here?? Thanks in advance for your help/advice cheers scott
wabbit  
#2 Posted : Saturday, April 18, 2009 11:49:29 PM(UTC)
wabbit

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)
Hi Scott,

Welcome to the Forum.

Have a look for Roy's (mstt) response in this thread about how the EST computes its position size: http://forum.equis.com/forums/permalink/28585/28585/ShowThread.aspx#28585times when we want a stop loss at say $10.00, but when the actual prices gap down from $10.50 to $9.00 there is no actual opportunity to exit the trade at the desired price, so the actual loses incurred are higher then predicted.


Hope this helps.

wabbit [:D]

ksrt  
#3 Posted : Sunday, April 19, 2009 3:58:40 AM(UTC)
ksrt

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/16/2009(UTC)
Posts: 11
Location: Sydney

Thanks Wabbit I will see how I go.. With the sell options (or buy to cover short positions) is it possible to program a trailing stop loss ie 2 x ATR and test a system using these stops to close out positions? Also I understand that there is slippage but the losses incurred in the tests were thousands more than would like leading me to think it is more than gapping down.. I will continue to play around..
wabbit  
#4 Posted : Sunday, April 19, 2009 5:39:40 AM(UTC)
wabbit

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)
Yes it possible to chandelier-esque exits in the EST. You will find the Simulation.Age function useful.

Without looking at your system coding it is difficult to tell from here why the stops weren't "working".


wabbit [:D]

ksrt  
#5 Posted : Monday, April 20, 2009 9:21:53 PM(UTC)
ksrt

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/16/2009(UTC)
Posts: 11
Location: Sydney

Wabbit

Most formulas I find for the trailing stops require inputs which obviously makes them unusable for the system tester.

Do you know of any resources that may provide me with some examples or guidence? I have searched the forum for hours, granted there may be something on these forums but I am struggling to find it.

I have thought maybe using if statements but I am sure it will be more complex than this. I have Richard Dales advance stops and would like to replicate this in the system test. Can I use the actual formula:

ExtFml( "AdvancedStop.StopLong", entry,entryprice2-initatr*ATR(10),0,H-trailatr*ATR(10),0,0,0,0)

and reference the entry price with

entryprice:=valuewhen(1,simulation,currentpositionage=0,open)

I have tried this but can't seem to find the right combination.

Your help is greatly appreciated

Regards

Ksrt

wabbit  
#6 Posted : Tuesday, April 21, 2009 6:02:55 AM(UTC)
wabbit

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)
I think I may have given a bum-steer somewhere with regard to entryPrice and ValueWhen()? For whatever reason, currentpositonage is not a data array like in the rest of MS but is evaluated uniquely on each pass (maybe someone else can verify this for me, please)

So to use a trailing stop and or a profit target in the EST I use something along these lines:
Code:

{SELL}

{profit target}
takeProfit:=c>extfml("forum.ref",1.1*o,simulation.currentpositionage);

{trailing stop}
trailingStop:=c<extfml("forum.hhv",h-(2*atr(10)),simulation.currentpositionage);

{exit}
takeProfit or trailingStop;



Hope this helps.

wabbit [:D]

Users browsing this topic
Guest (Hidden)
Similar Topics
MS16 System Tests (MetaStock)
by maeday 8/8/2019 5:32:20 AM(UTC)
How to remove multiple System Tests from Favorites in MetaStock? (MetaStock RT and DC)
by MS Support 4/30/2018 4:02:15 PM(UTC)
How to add multiple System Tests to Favorites in MetaStock? (MetaStock RT and DC)
by MS Support 4/30/2018 3:50:19 PM(UTC)
Importing system tests and indicators from MS10 to MS11 (MetaStock)
by alei 11/10/2009 1:54:25 PM(UTC)
Getting the same results on System Tests? Look here for possible reasons. (Tips & Tricks)
by Liadan 9/2/2008 12:58:38 PM(UTC)
Multiple Time Frame System Tests and Experts (MetaStock)
by uhehs 1/16/2007 1:19:00 PM(UTC)
Which Explorers/System Tests work best for you? (Formula Assistance)
by WindsurfStew 12/27/2006 11:52:58 PM(UTC)
multiple single system tests (Tips & Tricks)
by accident 9/16/2006 6:07:14 AM(UTC)
System Tests (MetaStock)
by Shelley 12/9/2005 10:48:27 AM(UTC)
custom indicator optimisation in system tests etc. (Product Wish List)
by Gerrit 10/9/2005 2:35:01 PM(UTC)
Editing System Tests (MetaStock)
by Shelley 4/10/2005 10:06:00 PM(UTC)
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.