Sell at market when a minimum profit target is achieved
Author: Partha
Creation Date: 12/6/2019 4:38 AM
profile picture

Partha

#1
I have a strategy code with multiple positions...I want to modify my sell at market for those p when a minimum profit target is achieved...can you please share code snippet

CODE:
Please log in to see this code.
profile picture

Eugene

#2
You could for example check the NetProfitAsOfBar / NetProfitAsOfBarPercent property of the Position p:

CODE:
Please log in to see this code.


More detail in the QuickRef (F11 key).
profile picture

Partha

#3
thanks mate
profile picture

Eugene

#4
Any time.
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).