Forum

Find the maximum number of lots that can be opened

I am making a EA that will run on accounts with low leverage. To avoid runtime errors, I am trying to find the maximum number of lots that can be opened given the available free margin. Here's my attempt at the calculation. double marginRequired; double freeMargin; double maxOpenLots; void OnInit ()

Use trade copier to copy MQL5 signals within personal accounts - allowed?

Say I subscribe to an MQL5 signal in account A, and use a copier to copy the trades to account B (both are owned by me). The rules say "resale or free retransmission of Trading Signals is prohibited." But does copying within my own accounts count as retransmission