vdemydiuk / mtapi

MetaTrader API (terminal bridge)
http://mtapi4.net/
MIT License
521 stars 281 forks source link

[MT5] MtApi5Client.ObjectCreate is missing second anchor point #146

Open flognity opened 5 years ago

flognity commented 5 years ago

The Method ObjectCreate in the class MtApi5Client is missing a second anchor point. Without a second anchor point some objects might not be possible to draw (like a trend ENUM_OBJECT.OBJ_TREND). The functionality is already implemented for The MT4-Client but not for MtApi5Client.

In general, the Method ObjectCreate in native mql5 is generic and allows n anchor points: https://www.mql5.com/en/docs/objects/objectcreate

Overall, the File MtApi5.mq5 also needs to be adjusted to fit the requirements.