Forum

Function to Calculate Number of Opened Symbols

Could anybody please assist me as I don't know where I got this code wrong. I am trying to create a function named "OrdersTotalSymbolOpen()" to check for open trade on any of the following pairs namely EURUSD, GBPUSD, USDJPY, EURJPY and GBPJPY. It then assigns value 1 to such pair otherwise the

Entering Trade with Minimum Margin Level

I am trying to include margin Level as one of the conditions used for entry a trade in MT4. i created an external parameter MinAllowedMarginlevel where users could input the desired value. i do not want the EA to open trade except if this condition is met. When I tested the EA on back tester, it

Not more than 3 pairs opened at a time

I am very new in MQL4 coding. I downloaded this EA online. I am trying to modify it such that if I load it on say about 15 different pairs, I do not want trade to open in more than 3 pairs at any particular time even if the conditions for opening trade in the other pairs are met. Thank you all for