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

Notification

Icon
Error

Options
Go to last post Go to first unread
danielmendes  
#1 Posted : Friday, October 19, 2012 1:35:25 PM(UTC)
danielmendes

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/19/2012(UTC)
Posts: 2

Hi! I'm new on MS11, and have variation of the MS 11 1st hour breakout system that has 3 exits: stop loss, stop gain and close at last bar.

The sell order (STOP ORDER) is:

new:=ROC(DayOfWeek(),1,$)<>0;
time:=(hour()*100)+minute();
rt:=ValueWhen(1,Ref(new,-11),HHV(H,12));
rb:=ValueWhen(1,Ref(new,-11),LLV(L,12));
mc:=valuewhen(1,new,ref(time,-1));
rangeup:= 0.01*ceiling(100*(rt+2*(rt-rb)));
IF( H > rangeup, (rangeup + 0.01), if( L < rb, rb - 0.01, if( time = mc, (h+l+(100*c)+o)/103, (h+l+(100*c)+o)/103)))


The third IF, I made an weigthed average to get a price closer to the CLOSE price. It's better than only CLOSE for this statement, I just don't know why.

Well, the problem is when the last bar has at least 2 equal market prices and Metastock don't "find" a price and the order is sent on the other day (link below).

Does anyone can help me with that?

http://www.4shared.com/office/PVUQNcTe/DOUBT.html

Thanks a lot!

Daniel

MS Support  
#2 Posted : Wednesday, October 24, 2012 2:51:16 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)
please send the System, Orders, and Summary tabs of that system test report to formulas@equis.com. That should give them enough information to see why the system did not exit at the price you expected it to.
danielmendes  
#3 Posted : Thursday, October 25, 2012 12:53:18 PM(UTC)
danielmendes

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/19/2012(UTC)
Posts: 2

tks Adm! I'll do that!
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.