Forum

MQL5 convert string to bool

Hello there, this is for information. I have recently struggled to convert string to bool in MQL5. Thanks to the tip of a friend, I could resolve it. I want to post it here, in case somebody has the same problem. The source field is a string, which has either "true" or "false". Important, this must

strategy tester - can you force the blind mode?

Hello there, I am doing backtesting with mql5 programs . I have found that the "visual mode" is always active, I cannot desactivate it, when I am in debugging mode of an expert. This leads to the fact that it can be quite slow, until I get to where I want. Question: is there a way to "force" the

Economic Calendar no values

Hello there, I am trying to work with the economic calendar , but even a simple query does not bring values. I am sure I am overlooking some basic thing? here my program for reference: MqlCalendarValue values[]; datetime date_from = D'28.10.2024' ; // take all events from 28. Oct 2024 datetime

Fundamendal data in MQL5

looking for a way to include fundamental data like interest rates in MQL5. Please advise if there is a good practice to do this

how can I download the result from a simulation

in MetaTrader, when I do a simulation, I would like to work with the results in a spreadsheet (excel, numbers etc.). But the only options I see is download xml. Is there another way to do this? I do not know how to work with xml. I would prefer a csv or text file. Maybe there is a way to do it with

how many rows in a file?

hello there, I would like to check , how many rows are in a file. I am working with CSV files. I have tried "file size", but it gives the size in terms of bites, not rows. If you are aware of any trick, thanks in advance. This is for MQL5

Drawing lines in simulation mode is working fine, but in live mode it does not work

Hello, I have created an expert advisor which should draw a line if a certain condition is reached (MT5). When I simulate it in strategy tester , it works. But when I attach it to a live chart, it does not draw the line. Is this on purpose? is there a difference between strategy tester and live

question: is it possible to add a criterion to the optimiser?

Hello, this is about using the optimiser function. There is a number of parameters by which the optimisation can be done. I have seen that there is also the "custom max" criterion. But my interpretation of this is, that is just another way of how to combine the other parameters. My intention is to

MT5 Optimization how to speed up runtime

Hello, I am using a server for running MT5. When I do optimisations, I can split it on up to 8 CPU's. Still it is running not extremely fast. I was wondering if there are any best practices on speeding up optimisations ? Thanks a lot in advance

Write Array which has also strings to file

Hello, I have researched about the possibility to write an array to a file in the forum and the documentation, and I have tried a number of possibilities. However, I have the impression that it does not work with an Array, which also contains strings. In my case, I have an array which is based on a