I have a multi-position code with two entry signals called "Initial" and "Second"
I want to exit each position with specific exit rules for entry signal but I am having trouble working out how to reference each entry signal in sell code. Just wondering how I do this?
The code I usually use to exit is:
CODE:
Please log in to see this code.
But I can't work out how to alter it to recognise only the relevant entry signal.
Thanks in advance
Jim
Size:
Color:
Please see the code example for EntrySignal Property in the QuickRef (F11 key) under the Position Object group.
Size:
Color:
James, if you haven't coded exits for multiple positions before, make sure that you're not still using "LastPosition" logic in your script. If you're having trouble, just post the exit logic - and hopefully it starts with... if (ActivePositions.Count > 0)
Size:
Color: