Forum

BUG in MT5 build 3213 (latest beta version)

BUG description: When importing daily bars for custom system, the importer, I think, uses the OPEN values for the bar times as daily candles do have times of 00:00. It works with M1 and other timeframes. I had the latest release version and updated to latest beta version hoping this bug has already

AMD Ryzen 7 4980U vs. Intel i7 1185G7 for Backtesting

Hi! I am gonna buy a new laptop tomorrow (Microsoft Surface Laptop 4) and am a bit unsure which processor is primarily better for Backtesting (but not optimization)? Anyone here who has some technical background to be able to answer this. From Google is saw (if that is right) that AMD has 8 cores

How to debug EA in live operation?

Hello, during the implementation of my EA it was quite easy to debug errors/warnings that happened during backtesting in the strategy tester . Now, during live operation some unexpected things happened - as expected ;-) - and I do not know how to properly debug the code now. Is there any better way

Question regarding getLastError()

Hello, quick one: If getLastError() for instance returns 4204 and I don't use ResetLastError() to set it to 0 again. When a new error is produced, for instance, 4020, getLastError() will then return 4020, right? Meaning that I do not have to rest the lastError to receive a new one. It is updated

Alternative android app for MT5 Accounts

Hello! Does anybody know an alternative android app where it is possible to log into an mt5 account and see the traded symbols? I am asking as the number of indicators are so limited... Thanks

Stop Loss send with order VERSUS Stop loss triggered/managed by code (virtual stop loss)

Hello, what do you think is the better way to manage your stop losses when you trade real stocks and NOT CFDs. 1. Send stop loss directly within your market order so that it lies at the broker/exchange side 2. Or manage stop loss within your code (virtual stop loss) meaning when the price reaches

Indicator is drawn in foreground on live chart but in background in the strategy tester

Hi All, I use ChartSetInteger ( 0 , CHART_FOREGROUND , true ); to have the candles (not filled with color) in the foreground. Then I add an indicator and then the algo is drawing stuff on the chart. In the strategy tester , the indicator is in the background and all objects I draw are in front of

Order Types - Buy order with execution limit

Hello, I went through all MQL5 Order Types but I think neither of them does the job... Example: Current stock price is 80 USD. I presume the price will increase and thus want to open a BUY order when the price reaches 100 USD. However, I just want to open the order when I get a price between, for

Difference between indicator price values and self calculated price values using the same formula

Hello Community, I observed a difference in the price values (OHLC) coming from the native Heiken Ashi indicator and the Heiken Ashi values I calculated myself using the exact same formula as used in the native MT5 Heiken Ashi indicator. I found two forum postings describing the same issue

FileWriteStruct not working

Hello, ArrayPrint shows that array is filled correctly. File is saved but empty. If I use FileWrite (…) and add some strings to the file that works. So it must be specific to FileWriteStruct. Any ideas? void CTrend::fileWrite() { struct Datefile { double val1; double val2;