Forum

How to prevent strategy tester from logging the messages in the journal tab?

Hi friends, I'd appreciate it if anyone can help me on how to prevent the strategy tester logging messages in the journal tab? Thanking in advance for your guidance

Working with files from multiple charts

Hi friends, I'm writing a code in my EA to export the opened orders data from my trading account in a single CSV file. Through the OnTick function, with any new tick comes, the EA checks the file to see whether a newly order has just opened or not, and if there is a new opened order that has not

Get the creation date or modification date of a folder

Hi friends, I'm looking for a way to get the creation date or modification date of a folder. Is there any way to do so? thanking in advance for your kind guidance

else if styler in new update

Hi friends, Today I was going to update my code and when I used the styler feature in MQL4, I suddenly understood that with the new update, using the styler feature causes some undesirable changes with the ELSE IF structure. I want to have the previous structure of the ELSE IF not the new one. I

Using "arrays" as input of functions

Hi Hope you're all doing great, I want to use array as an input of my function . My function can work with all kind of arrays (1D or 2D or 3D arrays) so the array that I'm going to use as an input in my function might be a 1 dimension array, or even 2 dimension or even 3 dimension. Now I want to

import a function from an "mqh" file

Hi I'm writing an script and I want to use a function which I've written previously in an "mqh" file, in my script and I don't want to do a simple copy-paste and put the code in my script, instead I want to use #import to use the previously written function in my script. As I read the documentation

FileReadArray issue

Hi friends, I'm trying to write some info from an array into a .bin file using FileWriteArray function and then read from that file and copy the file contents into another array using FileReadArray . As I checked the MQL4 documentation, I found out that it is not necessary to define the array size

Tester memory handler: tester stopped because not enough memory

Dear friends, Hope you're all doing great, I have a repetitive problem with strategy tester when backtesting my EA and it is about not having enough memory when the backtest is suddenly stopped and the following error appears: "Tester memory handler: tester stopped because not enough memory" I've

Problem with MT4 Account History

Hi friends, Hope you're doing great, Today I faced with a very special issue regarding the Account History of the MT4. I've written an EA and now I'm testing its operation on a demo account on real time. Within my EA code, I've written a procedure to save the details of the order with the info I

Open Stochastic from my own indicator

Hi friends, Is it possible to run the stochastic indicator and my custom indicator simultaneously while attaching my own custom indicator on the chart? thanking in advance