Forum

EA Test and Buy and Hold Comparison

Hi, is there any way to compare the results from our Expert Advisor with the "buy and hold" alternative. That is, if we buy at the first position opened by our tester and then we just hold that until the end of our test (this is useful because if we are testing a bullish market we could think our

Override parent function

Hi, is there any special syntax to override parent functions ? or is not possible if they are not "virtual"? Thanks

Open Order using amount in USD instead of lots

Hi, is there any way to open the positions using the amount in USD we want to invest instead of the lot number? Or at least to show what was (or will) the amount in USD for every order. It's really confusing to me to manage with lots because I'm trading stocks and cryptocurrencies and I'm not sure

How to calculate order position size / total amount in USD?

Hi, I'm a bit confused with the "lots" unit, is there any way to get the total amount in USD or current currency for some order position? I know we can get the OrderOpenPrice() and OrderLots() but I don't know how to use it. For example, if OrderOpenPrice is $100 and OrderLots is 0.1, what is total