Forum

Math function, I came with mql5 download and install don' t agree with the MQL5 web page

math_down.png is Math.h came with QML5 download when I ,first time, installed MQL5. mql5 mathabs .png is the screen short of QML5 Reference->Math function. Those two function don't have the same return signature. Math.h return a boolean status while the reference return results. All of the

Can't reset my password, current pass word not working.

Resetting password requires my current password. I input my current password along with my new password. But mt5 doesn't reset my password. Any idea on how to reset the password

Can't get File Write or Print Ouput from Script

I wrote a script to manipulate a set of matrices and want to check the dimension of the result matrix . I wrote output to a file (csv) and also print it. I can't find neither of them. I use explorer to find the csv file. No joy. Any help is appreciate. File write is line 158 and print is 161

Inconsistent of Closing Tickets

if more than one tickets are opened at any time (not opened at the same time), MQL5 wasn't able to close all of the tickets (see enclosed figure). Enclosed: Call to close long and short Code of closing functions Figure show not all are closing void closeLong(){ int total = PositionsTotal ();

iDeMarker Return An Invalid Handle

I am running a test on a free MQL5 download EA (file name zw63). This EA uses DeMarker indicator and stochastic. However, when I ran a debug, it crashs when a call to iDeMarker return an invalid handle. I look in MQL5\Inicators directory and haven't found iDeMarker. There is a link to a page which

mql5 function shows ENUM value in debug mode "unknow enum value 65714::0

// Custom enumeration for trend direction enum ENUM_IND_TREND { NO_TREND= 0 , // No discernible trend UP= 1 , // Uptrend detected DOWN= 2 // Downtrend detected }; // Input variable to choose a default trend (optional) input ENUM_IND_TREND default_trend = UP; // Select a

back testing graph not agree with history leger

Has anyone ever seen this problem? I ran a single back testing on my EA. Graphical show there are profit on trading. However, the history show loss in all trading. I don't known what the issue is

Indicator problem

Hi: I cut and past one of the indicator from this site and inbed it in my expert. However, I have a difficulty geting it to work. Here is the setup. // -------------------------Property--------------------------------- #property indicator_color1 Blue // Medium at max or min #property

More questions regarding to iCustom indicator

Hi: With the help from this forum, I was able to write a custom indicator that plot 3 traces. When I looked closely to the return argurment of the "int start()" function, I was amazed. How can the start function return "double" when the declaration indicated "int"? I am guessing that the function

Need help writing a custom indicator

I wrote a custom indicator that draw a line using moving average. So far, it drew a line. However, I have a scale that use a timeframe as a switch to select two scaling parameters. How do I get timeframe from the current chart so I can select the proper scaling parameter. I am not concern about the