MQL4 and MetaTrader 4 - page 5

Hi guys, I am facing wired problem when I am trying to use WebRequest() function on Windows. Here is the simplest code which could be written: void OnStart(){   string url = "http://server.com";   string headers = "application/json";   int timeout = 5000;   char post[],result[];   string...
[Deleted]
Hi, I'm trying to get the number of decimal digits from a number. for example 0.1234 ---> 4 0.465 ---> 3 0.51 ---> 2   So far, I can only a similar function from this function MarketInfo(Symbol(),MODE_DIGITS); But that doesn't really help me. I need to get the number of decimal digits which I get...
I am using MT4 and I have used mql5 marketplace from it. It was working well three months ago. Today when I am trying login I am getting the following message "MQL5.community authorization failed". The MT4 version I am using is download from "Octafx" broker website. Please help me solve this
How can I get the value of the position, which is marked in the picture, in the EA code
When I set “Long Only” or “Short Only” in the advisor settings, the terminal sees error 4110 or 4111, how can I write a check for position allowing in the code before completing the OrderSend function
hi everyone I have indicators code in MQL4 and I want to use it in Mql5 How I can change codes into Mql5 I don't know any thing about Mql5 codes below are my indicator's code I really need it as soon as possible Best Regards Neda
  MT4 End Of Life  (66   1 2 3 4 5 6 7)
Hi all I have heard reports that MT4 is soon to become 'End of Life' with no active support or updates. Can anyone explain what the future holds for MT4 and the vast array of millions of ex4 Indicators, Scripts and EA's? Any plans to provide a port or emulator for these to help transition over to
hi, I have used this great article for mt5 to connect to a wss api. which is working fine. but the same code in mt4 does not work at the very first line long http_open_result = WinHttpOpen("mt4",WINHTTP_ACCESS_TYPE_DEFAULT_PROXY,NULL,NULL,/*reserved parameter*/0); I think sending that string is
how to write a check in the code of the mql4 advisor "Only Short" and "Only Long" so as not to get errors 4110 or 4111
  OrderSend: Error code 131  (31   1 2 3 4)
I get this error on validation my product but it is running well on backtests.
I try to create a code which will work on all instrument to calculate the right lotsize based on 1 percent risk, but my current code show me only a right lotsize for forex currencys, when i put the indicator on bitcoin chart i get to big lotsize, can you help to make a working code which will
  CumulativeDelta  (2)
Hello! Any idea how to calculate cumulative delta in mql4? There are some indicators saying that they are delta indicators , but as per definition , delta calculation involves volume_ask and volum_bid which is not available in mt4
Hi guys, I have an indicator that duplicates horizontal lines across multiple charts on different timeframes. The code to place and move the lines works fine but the code that deletes the lines does not work. #property strict #property indicator_chart_window #include <stdlib.mqh> #include
In the following function the ibandsonarray always returns 0. I have verified the array is filled with the correct values, but I always get 0 for the upper and lower bands. I searched this forum, google, and youtube for several hours, and found some people who had this problem, but they either
I just bought an EA for the MT4 platform. But when I click "Install" it doesn't work. I can't install my EA. Can you please help me
<Deleted> //----------------------------------- // Open Order pending by other pending orders //----------------------------------- int start () { ngày giờ tĩnh t; if (t == Thời gian [ 0 ]) return ( 0 ); double MyPoint = Point ; if ( Digits == 3 || Digits == 5 ) MyPoint = Point *
Hello, I am using an EA attached to 4 currency pairs in one MT4 client. I frequently encounter an error " Trade context busy ." My question is, is this error due to my computer hardware resource issue (RAM/CPU), Metatrader 4 application-related issue, or Forex broker server-side issue? If this is a
[Deleted]
Hello my entry prices are different in live trading from EA backtesting results, what might be the reason and how can I fix it? The spread used is the same as the time traded, but I get different results in entry hence affecting the results, how can I fix this. The EA is supposed to be opening
Hello there, I'm converting the working MT5 version of my EA to MT4, but I get an array out of range error not matter what I try. It's my first time working in MQL4 and I have tried many things but I can't solve the issue so hopefully someone can spot it and advice because I'm running out of idea
Hello, even though it worked fine yesterday, today I'm experiencing a "connect failed [No connection]" error and I cannot search for any other brokers at all. I don't understand what's happening?????? I've been using this server for 10 months now. It has always been normal. I run 30 terminals
Hello everyone, I have a problem with a simple math "double/double" in my system. I've been trying to find an answer but haven't come up with a topic that's exactly what I'm looking for My code here. I can print value x1,x2,x3,x4,x5,x6 , but x7 doesn't work. Someone can give me the answer, please
  wrong return  (1)
in my code sometimes the function returns wrong number or does not return
Hi, due to my testing setup i need an idea how to avoid automatic update from metatrader. Is there an opportunity how to handle with it. Or possibe to rollback to older Version
  Is there MT4 technical support?  (40   1 2 3 4)
Is technical support for the MT4 trading platform available if I have a problem with it? If so, where? If not, what is the alternative
hi any one know how to get the chart of opposite tickers in metatrader ? instead of EURUSD to show USDEUR instead of USDJPY to show JPYUSD and so on (i need it to be real time updated as the original tickers) any one can help ?
  Dope.mq4 EA  (2)
Good day all. I wonder if anyone knows this code and where does it originate from. Perhaps another EA and this one was renamed? There is not much written about this EA on the web, and back testing shows great results but in real time trading it does not update the "Level" line properly. Does anyone
Hi; There are apparently 3 choices to calculate current price. Which one is preferred and why? SymbolInfoDouble(Symbol(), SYMBOL_BID); or MarketInfo(Symbol(), MODE_BID); or SymbolInfoTick(Symbol(), MODE_BID); Appreciate an explanation. Thanks
I was attempting to download some broker's mt4setup.exe and the connection kept timing out.  I tried from two different computers in two different countries. After about 15 minutes, I got it to download in the Thailand location.   But New York I am still getting "Timed out".
classes and structures is confusing for me would you please refer some tutorial video contents to me
Hello, everyone! I subscribed earlier today to a signal in MT4. Because of some glitch, I had to restart the computer. I closed all instances of Metatrader, restarted the computer and opened them back. Soon after that I realized that everything related to the signal I subscribed to just disappeared