MQL4 and MetaTrader 4 - page 10

Windows Server 2019 Windows Server 2016 What is better ws 2016 or ws 2019 for run mt4? Thank you
Is it possible to calculate the maximum drawdown reached in an account? How? How can the development of equity be built
Hi, MT4 build 1421 compiler build 2408 the expression: if (state != EMPTY) { Print ( "false != EMPTY" ); } triggers this message in the compiler: expression is always true But it is not valid. In the MT4 Tester everything works as it should. For example I have something like: void func( bool
[Deleted]
Hi everyone, I'm starting to learn more about GUI panels using the appdialog box to add a panel to an indicator I'm writing. I have a basic understanding of how to create a panel and various buttons and labels. I just had one question about saving the location of the panel. If I move the panel on
[Deleted]
  Range not behaving as expected  (22   1 2 3)
Goodmorning all.  I'm trying to create a "dynamic" range using ArrayMax/Min - aseach new bar comes in (and assuming some other criteria are met) the range extends in length - to achieve this I have elected to create a variable, the value of which changes upon each new candle (and some other...
Hello guys. Is it possible to change the values ​​of an array after it is defined at the beginning of the program? for example I have declared an array with default values ​​as follows: string NewsSymbol[ 7 ] = { "USDJPY" , "EURUSD" , "USDCHF" , "NZDUSD" , "AUDUSD" , "USDCAD" , "USDJPY" }; I tried
Hello. Please I would appreciate any help I can get. I am trying to tile windows vertically in mql4 using only code. I know this is achievable with user32.dll but it’s been a struggle even finding a basic article that can teach a beginner how to work with dlls in MQL. I have a code that can tile
Hi, I have added a scroll (CScrollV, Controls\Scrolls.mqh) control to the basic active control panel example in the mql4 includes library. I have been playing around with active panels for several weeks now and have even programmed a very detailed panel, but I cannot get the scroll control to work
When I read the log file I could recognize that  the Custom Indicator is loaded and then removed.  Again he is loaded and removed. Then he is loaded. Enclosed you see a screen shot. What does that mean ? 
  MT4 VPS change  (2)
Dear everyone, I am running a MT4 EA on a VPS. The EA will modify the SL/TP constantly. Suppose if I want to change to use another VPS, when I re-open the MT4, the EA will no longer be running. If I re-attach the EA on the chart, will it keep modify my previous opened order in the last VPS? If no
Hello, The indicator picture below, is a simple indicator that places a dot above each candle high ( green dot ) and low ( red dot ). The indicator is working with real time data only, meaning as the indicator is forming, the high and low of that candle is used in placing an dot arrow above and
Hi, is there any way to scroll the chart via MQL4 ? I'd like to scroll it to data, when the price touches my Support and Resistance Lines, so I don't have to do it by hand. Thanks
Hello, I would like to ask if has anyone encounter this problem and been able to fix this? I am trying to read signals from a custom indicator , however, it caused out of memory, I believe that there are bugs in my code but I still do not know how to fix this. The custom indicator I am using here is
[Deleted]
Hi all, I would like to be able to automatically tile all chart windows in the MT4 terminal. The keyboard command is <ALT> + R, and this can be automated using keyboard events e.g. https://www.forex-tsd.com/metatrader-programming/3805-key-event-within-mq4-programs.html. However, this solution...
I am having an exorbitant amount of trouble incorporating my custom Indicator into an EA. The Indicator calculates 3 values and no matter how I try to get the EA to retrieve the indicator values at the conclusion of a bar, the EA always gets data that differs from the indicators calculations . Can
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893 Moved to MT4. if ( O[ 0 ] == 0 && O[ 1 ] == 0 && O[ 2 ] == 0 && O[ 3 ] == 0 ){ for ( int shift = 0 ; shift <= 3 ; shift++) { O[shift ] = iOpen (symboll, timeFrame, shift);
Hi, I noticed that TerminalInfoString(TERMINAL_DATA_PATH) returns a path including the broker's name, like: C:\Users\[username]\AppData\Roaming\[BrokerName] instead of the usual: C:\Users\[username]\AppData\Roaming\MetaQuotes\[number] Does anyone know why this happens and how to reset it to the
hello master, i got a bug error when creating an custom indicator with telegram notification, with the description ''WebRequest' - no one of the overloads can be applied to the function call", can anyone fix it? i would be very grateful :)
Hello everyone, I am using the latest MT4 client on a total of three computers. On two computers I was kicked out of MQL5 and can't get back in. It tells me that my username or password is wrong. I have already deleted the community.config file and reinstalled the complete MT4. Both did not help
Hello, I have created API with port 80 in local server. I want to send data from terminal to API but it shows error 4029. I tried many ways but it didnt work but it worked well in mt5. Below is my short function. Please help me to fix it or guide me to fix it. Thank you guys so much #property
Hello all, i trade with EA and i have an issue when market high fluctuate price. My EA can't open the order and it messing with my whole trading setup. I understand that when i open order manually, i can tick the box for "Enable maximum deviation from quoted price". Can i make it a default for my
HI..........i just loaded history data to M1 chart from 2011 to Nov 2024.............but M5 and onward other charts still do not have data how does M1 data gets moved to other timeframes ? Thx ckm
I would like to check with you to make sure that the net balance and risk code works in both directions //Maximum amount of money to risk double moneyToRisk = NormalizeDouble((AccountBalance()-Total_Current_Risk()) * RiskInPercent / 100, 7); Can Total_Current_Risk() be negative? that is, the sum of
Hi, I need some help here. I want to add stochastic oscillator with these custom levels with MQL4 to MT4. I am also changing chart colour and candle stick colours, When even I attach my custom stochastic indicator, I have to open and close settings manualy before it starts to work. Any idea as to
I've got a Gold EA on MT4 that works great on Demo account but when I put it live on Real money account nothing happens? It doesn't trade, all parameters checked and it's the same as demo. Any ideas
[Deleted]
Hi guys, I need help to search for the source code regarding this indicator or its updated version. I believe this is a free indicator made by someone or a group, as it is not tied to the user platform. I have traced it to another forum, but Sergey told me he has no idea of who created it. There is...
Hello everyone, I encountered a problem when using the WebRequest function, and I would like to ask everyone to help. The website engineer gave me the following information: URL:http://ea.takeasy.tech/api/ea/accounts Method:GET Headers:Content-Type: application/json\r\nAuthorization: Bearer {API
ea cannot load and save set file in the MT4 Has anyone encountered this situation? Ask for answers
Hello, I am trying to use the .SRV file from my broker to set up an account using MetaApi Cloud, but for some reason it is missing from its expected location. You can see from this link that this is where it should be: https://fx-list.com/find-metatrader-srv-file I have been able to find it here in
Hi, I built an EA in EA Builder and the code works perfectly in testing. For testing I use every tick for accuracy. In live trading the code works perfectly most of the time but misses trades. This is very frustrating because there are no errors in the journal to indicate where there was a problem....