Different exit signals for different entry signals
Author: Jim0000076
Creation Date: 4/8/2016 1:47 PM
profile picture

Jim0000076

#1
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
profile picture

Eugene

#2
Please see the code example for EntrySignal Property in the QuickRef (F11 key) under the Position Object group.
profile picture

Cone

#3
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)
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).