Forum

CheckLoadHistory examples in Indicator MQL5

Hey everyone. Greetings from Down Under. I have been trying to implement an indicator that downloads higher timeframe price data in MQL5. I have used various versions of the CheckLoadHistory() functions, including this one https://www.mql5.com/en/docs/series/timeseries_access and this one

Commissions and Swaps - MQL5

Hello MQL5 people. I'm wondering if anyone knows of a way to read to Commissions and Swaps from the terminal, rather than needing to calculate them programatically. I calculate these within my EA at present, but would rather read them off the terminal if this was possible. Thanks in advance

Deals In Hedging Mode - MT5

Hello everyone. I find the need to convert an MT5 Netting Mode EA into Hedging Mode due to my broker no longer offering demo netting accounts. My EA does not make use of hedging positions. Either BUY or SELL are open at any one time but not both. However, each position can have multiple deals as the

MT5 Tester Account Currency different from actual Account Currency

Not sure if anyone has this same problem. I have a demo account with AUD 10,000 as the Account Currency . When I run the Strategy Tester, the Account Currency is read as USD - with the same dollar amount(i.e USD 10,000). Any ideas

ArraySort() in MQL5 - sorts in Descending order and not Ascending as documented?

I have probably misunderstood the documention for the ArraySort() function in MQL5. https://www.mql5.com/en/docs/array/arraysort states " Sorts the values in the first dimension of a multidimensional numeric array in the ascending order ". When I use this function, my arrays are sorted with

Less Bars in Live mode than in testing: MT5

Hello everyone; I've been testing an EA and using historical data on an Alpari Demo Account. When I run in Strategy Tester , the available bars are a little more than 500,000. However when I run in trading mode, there is a little over 50,000. The "Max Bars in Chart" is set to "unlimited. Does anyone

Error 4753 & PositionSelect() - MQL5

I often get Error 4753 although it does not seem to impact on trade operation or testing. After some research on this forum and wider, I haven't really found any answers that applied to my problem, so I did some experimenting. It seems to me that if PositionSelect(symbol) returns false, it ALSO

ICustom not loading - MQL5

Hello All; I have an iCustom call in an EA. It works fine in live mode. It was working fine in Strategy Tester as well - but no longer does. I have not made any changes to any of my system. The log in Strategy Tester has the following messages: 2017.08.17 19:33:18.036 file

Multi-symbol Expert some code for sharing - MT5

Hello MT5 programmers. I've been putting together a multi-symbol EA and am sharing the part of the expert that may be of some interest to some of you. Please note that I am no programmer and have only started using MT5 in the last 2 weeks, so the code is by no means elegant nor probably very

How does CopyTime work? - MT5

Hello all; I switched to MT5 a few days ago - so apologies in advance for my ignorance. My focus is on multi-pairs (hence the switch to MT5). However I am struggling to get things to work the way I would expect them (probably my lack of understanding about MT5). I am trying to check that a new bar