1 (edited by yonkuro 2018-10-20 16:06:16)

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.

Re: setProtectionSeparately

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.

Re: setProtectionSeparately


Thank you for the explanation.