francisalmeida / Publications
Forum
Historical Account Leverage
Hi All, I would like to know whether it is possible to check historical Account Leverage ? Alternately, if someone can guide me on how to calculate the Account Leverage using MQL5 code for a given date time would also be useful. I've tried the below code, but the output in the journal always returns
CopyRates() function for a specified time period
Dear Members, I would really appreciate if anyone can guide me with this. I want to retrieve the rates using the copyRates() function between 2 specified timings: Start Time: currentTime() End Time: currentTime()-30 minutes. I found the sample code in the below link, but not sure how to pass the 2
pending order wrongly getting filled in strategy tester
Hello everyone, I'm having some issues with pending orders wrongly filled when I run the strategy tester below are some images of the results. The buy stop in the attached image is getting filled where the price levels have not reached. Any ideas? trade.BuyStop(Vn ,ReferencePrice - 20 * _Point