Forum

MQL5 - Opening trades on multiple currency pairs at the same time

Hi! I have an EA that checks every new bar and opens position when conditions are met. I would like it to work on multiple currency pairs, but there will be a limited number of currently working pairs, probably 2 or 3, because I don't want to be wiped out by a drawdown. So if they are already open

Calculate risk without using MarketInfo()?

I'm trying to make something that I don't know if it's even possible. Testers can't use MarketInfo() method, but I need to test all major and minor currency pairs. There is an obvious problem when counter currency and account currency aren't the same. I wanted to make a workaround and set different

I made universal position size calculating method based on risk

Hi, I couldn't find any satisfying solution, so I created my own, maybe it will be useful for someone, will be glad for any feedback. Tested with online calculator on multiple pairs, and looks like it works. class PositionSizeCalculator { public : double Calculate( double risk, double

iCustom - Load parameters from input dynamically (including bool parameters)

I would like to make an universal indicator tester that follows some concrete rules and I'm looking for best way to input parameters. I couldn't find any good example on the internet. Every example assumed, that we already know all the parameters that indicator has. I made 8 double inputs that we