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.
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.