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

Notification

Icon
Error

Options
Go to last post Go to first unread
jumpbackjack  
#1 Posted : Tuesday, March 29, 2011 10:54:17 PM(UTC)
jumpbackjack

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/25/2009(UTC)
Posts: 15

This is supposed to be an 8% trailing stop in my Sell Order tab:

Entry:=Simulation.CurrentPositionAge=0;
HighestHigh:=Highestsince(1,Entry,High);
Sellprice:=HighestHigh-(HighestHigh*.08);

C<SellPrice

Can anyone tell me why it won't work? The system never sells, yet the stock does go below the 8% trailing stop level. Thanks.

gauravudani  
#2 Posted : Wednesday, March 30, 2011 1:29:45 AM(UTC)
gauravudani

Rank: Member

Groups: Registered, Registered Users
Joined: 2/12/2008(UTC)
Posts: 17

Try Using the traling stoploss in the stops
haddison  
#3 Posted : Thursday, March 31, 2011 11:07:15 AM(UTC)
haddison

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/6/2010(UTC)
Posts: 113
Location: London

I think there's something wrong with the first line as it has two equals signs. You may need to use the ValueWhen function: Entry:=ValueWhen(1,Simulation.CurrentPositionAge=0,C)
MS Support  
#4 Posted : Tuesday, April 5, 2011 5:00:07 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)
The simulation functions do not have any historical values. They are only defined for the current bar. You can not look back to find values they had on previous bars or use functions like valuewhen or highestsince to find conditions based on simulation functions.

jjstein  
#5 Posted : Tuesday, April 5, 2011 7:46:12 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
Is there a documentation/reference PDF for simulation functions?

MS Support  
#6 Posted : Wednesday, April 6, 2011 1:54:44 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)
The simulations functions are documented in the "paste functions" dialog. Check the box "Show English Names" and it will give a description of what each function calculates.
jjstein  
#7 Posted : Wednesday, April 6, 2011 3:50:31 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
Yes, that's been around for awhile...

So, still no actual documentation on how everything ties together, how the simulation works, etc., then? Not even 3rd party, book, article, whatever?
MS Support  
#8 Posted : Tuesday, April 12, 2011 11:05:27 AM(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)
I have not found any other material the describes the simulation functions, what they do, or how they work. I'm sorry, but for now, it seems the only documentation is the paste functions dialog descriptions.
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.