MQL_Easy icon indicating copy to clipboard operation
MQL_Easy copied to clipboard

Validation Stop/Freeze Level for Buy/Sell Stop-Limit Orders

Open sirinath opened this issue 3 years ago • 4 comments

Hats off for a very well done library. In case of MQL5 the Stop/Freeze Level validation for Buy/Sell Stop-Limit Orders are missing.

It would be good if this can be added as currently figuring this out is a shot in the dark with many invalid order errors.

sirinath avatar Dec 06 '21 07:12 sirinath

Thank you for your proposals.

Denn1Ro avatar Dec 08 '21 09:12 Denn1Ro

Hi, can you provide an example which showing the invalid order errors. I am asking you because the Freeze Level validation for Buy/Sell Stop-Limit is already exist in the library.

Thanks

Denn1Ro avatar Dec 21 '21 17:12 Denn1Ro

Currently I am not running any checks as there is no validation and checks for ORDER_TYPE_SELL_STOP_LIMIT and ORDER_TYPE_BUY_STOP_LIMIT

sirinath avatar Dec 22 '21 08:12 sirinath

OK. You have right. I will make an update in order to take into account those orders' type.

Denn1Ro avatar Dec 23 '21 14:12 Denn1Ro