What does the new ProtectionType parameter do?

Created at 07 Jan 2025, 15:20
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
ysftrades's avatar

ysftrades

Joined 09.04.2024

What does the new ProtectionType parameter do?
07 Jan 2025, 15:20


Hi all,

The ProtectionType is a new parameter added for placing an order with a stop loss and take profit.
I looked up the Help section to try and understand what does the ProtectionType parameter do. 
I understand that they are three values to choose from; ProtectionType.None, ProtectionType.Relative and ProtectionType.Absolute
I couldn't understand what is their effect. Could anyone be kind enough to elaborate how do these options effect an order or position?

Thank you


@ysftrades