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.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 2/12/2008(UTC) Posts: 17
|
Try Using the traling stoploss in the stops
|
|
|
|
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)
|
|
|
|
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.
|
|
|
|
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?
|
|
|
|
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.
|
|
|
|
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?
|
|
|
|
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.