Forum

How to obtain commission per lot in MQL5

I am trying to calculate lotsize for my EA - everything is fine except the commission per lot aspect. Does anyone have idea of how to obtain commission per lot in mql5? I have seen some EAs that developers are able to account for commission per lot for a symbol. Anyone there to help

Subscribed signal is closing the wrong trades!

I subscribed to a signal - I do notice that from time to time it closes the wrong trade and leave the right one in the system. For example, instead of closing the trade that was opened on 8/1/2020 it went to close the one that was opened on 28/8/2020. This has happened twice now. The more concern is