Rank: Newbie
Groups: Registered, Registered Users Joined: 3/16/2006(UTC) Posts: 4
|
I’m trying to write a system but I have troubles with the trade management, in particular how can I write : " when x happens sell half of the position, when y happens finally close all the position?” (for instance i enter a position with 3000 stocks and then i want to sell first 1000, then 2000 at different points)
I tried with simulation formulas, I think they can be useful for my purpose but I did not manage.
Can you help me?
Thank you
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/9/2004(UTC) Posts: 107 Location: Salt Lake City, UT
|
If you enter the postion with 3000 there is no way to close part of the postion.
If you entered three positions each with 1000 then you could close these individually.
Doc
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 3/16/2006(UTC) Posts: 4
|
yes, good idea! But how can I write it ?
I mean : Buy Order : formula : condition, how can I write buy two or three positions ?
Do I have to run different trading systems and then sum the equity lines? it's really unconfortable, what did you mean exactly with your post?
thank you very much
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/9/2004(UTC) Posts: 107 Location: Salt Lake City, UT
|
Multiple buys and sells are nto written into a system. Edit a System Test on the general tab there is a option to set potfolio bias to multiple. This will make the system tester buy every time you have a buy signal, if you have several buy signals in a row.
Regards
Doc
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 3/16/2006(UTC) Posts: 4
|
I still have troubles :
System Editor
general tab : portfolio bias MULTIPLE; NO limit number to simultaneous position
buy order : C > ref(c,-1)
the system enters in different days, i don't know why, but i need that all positions enter the same day.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 3/16/2006(UTC) Posts: 4
|
I tried to use entry size in buy order too, writing 2, but then in sell order it is impossible to write entry size 1 when x, entry size 2 when y.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/9/2004(UTC) Posts: 107 Location: Salt Lake City, UT
|
Sorry but there is no way to have the system tester enter several buys on the same bar.
Regards
Doc
|
|
|
|
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.