Topic: setProtectionSeparately
Dear Popov,
Would you please explain what this syntax means?
bool setProtectionSeparately = false;And what will happen if we set it to true?
Does it affect how the SL and TP delivered on ECN account?
Best regards.
Create and Test Forex Strategies
You are not logged in. Please login or register.
Forex Software → Expert Advisor Modifications → setProtectionSeparately
Dear Popov,
Would you please explain what this syntax means?
bool setProtectionSeparately = false;And what will happen if we set it to true?
Does it affect how the SL and TP delivered on ECN account?
Best regards.
Yes, you are right.
The expert tries first to send an order together with the SL and TP. If the order fails, the expert sends it again without SL and TP. On success, it markers setProtectionSeparately = true; and send the SL and TP separately by using the ModifyOrder function.
When setProtectionSeparately = true, the expert always open first the position and then modifies it with SL and TP.
Great!
Thank you for the explanation.
Forex Software → Expert Advisor Modifications → setProtectionSeparately
Powered by PunBB, supported by Informer Technologies, Inc.