Download MetaTrader 5

MQL4 and MetaTrader 4 - page 19

To post a new topic, please log in or register
Hello all, I would like to understand why this code doesn't work. Some expert help please.  Code:     bool ShowGrid=ChartGetInteger(chart_id,CHART_SHOW_GRID,1,value);//         Grid not removed    int OffOnGrid=ChartGetInteger(Chart_ID,CHART_SHOW_GRID,window,value);//  Grid not removed 1) What does...
New MetaTrader 4 Platform build 1065 The MetaTrader 4 Platform build 1065 will be released on 23 March, 2017. In the new version, an error has been fixed connected with the restart of Expert Advisors on charts after switching timeframes. Now, Expert Advisors do not stop, and are correctly...
Hello! I have a problem with adding an "Inputbox" to my ExpertAdvisor to set an input parameter (Indicator price) by clicking the specific botton ("Button_setINDprice") in the chart. What I can find in the forum and I´m trying is the following: ..........................................................
Hi Everyone!!! I have just finished my first EA using build 1065 and was wondering if someone had access to my EXE file, would it be possible for them to hack into it and view the code behind my logic. And if it is possible to get hacked, how can one fully protect their code. Any input or direction...
There is an EA that cancel all pending orders (see attached). But it  leaves on market pending take profit and stop loss, that really are also pending orders. Is there an EA that cancel ALL pending orders (that is also take profit and stop loss)? Thanks
Hi I have a problem. (M1, USDJPY) My metatrader uses only 27-03-2017 to 24-04-2017 range with strategy testing, even if I want eg. 01-02-2017 - 24-04-2017.  I looked into "history center" and there I have a history for USDJPY since 02-03-2017. But still, how can I MAKE my strategy tester to use this...
Hi Since 3 days i am working on getting MT4 running on Raspberry Pi 3 (os: Raspberian) .  Installed exagear and wine... Check. But every Installation of MT4 turned out as MT5. Don't know  why.  This was very strange for me. The setup was called MT4, the desktop link was named MT4, but the real...
My EA uses classes and include files for my stop loss and money management ect. I normally like this method it keeps things clean and easy. I have a problem though, with my include files I can only call out variables generated by the system example market info, symbol, ect. I can not figure out how...
Hello , i have problem with coding , when i attach EA on other currency , the EA not running , but when i closed previous currency , the lates currency will run by EA. How it could be? What must i put on my EA?
Hi there, I was wondering if it was possible to get a list of input parameters given to an EA or Indicator? Right now I'm logging my EA's settings to a new file automatically whenever it detects that I'm using different settings so that I can look back and see what I was using in the past.  However,...
MT4 will evolve and will soon merge with MT5. There will be a single compiler supports both platforms. More information on the forum Upcoming MetaTrader 4 and MQL4 Upgrades - Big Changes Are Underway - MQL4 forum Что будет нового в MetaTrader 4 и MQL4 - большие изменения на подходе - MQL4 форум
Please can anyone help me in 2 very simple question (for those who use MT4but not for others)? I am testing an EA. It is not in strategy tester but a version that runs normally in demo account. I put it in the chart, auto trading is setted, Launchthe EA smiling face appears and it runs. Ok. Then I...
Hello Guys, this is the list of Fractals free indicator:  //+------------------------------------------------------------------+//|                                                     Fractals.mq4 |//|                      Copyright © 2005, MetaQuotes Software Corp....
  Change Time frame (11   1 2)
Hello all, I have been trying to change a charts timeframe in my EA, but I haven't been able to get it to work.   string we ="GOLD";  ObjectSetInteger(0,we,OBJPROP_TIMEFRAMES,OBJ_PERIOD_M15); The code complied with no errors or, warnings.  I need some help to make this work properly.
Hi, may I please get some help with this. The #4x3 semafor alert indicator has been the pride of my trading, it has helped me a lot in getting my trades to the next level, not only with the accurate and fast alerts but also with how clear and simple it is. I would there like to automate my trades...
Hi, I'm posting a https request in my EA but the WebRequest returns -1 with error 5203 ERR_WEBREQUEST_REQUEST_FAILED. What do you think the problem is?   Thanks,  Ala 
Hi there, I manage a number of VPS's with EA's installed on them using. All using the same EA. I come across a problem where some of the EA's will give a 4109 error when trying to open trades. This does not make sense to me as I have allowed live trading in the options and the EA settings, I have...
Hello  I make an image by WindowScreenShot and I want to copy this image to clipboard and paste in other programs (like telegram desktop or paint) I saw very good code for CopyTextToClipboard in this link : https://www.mql5.com/en/forum/153674#comment_5020915 I'm trying to use copyImageToClipboard...
Hey Traders, Kindly help me on how I can set email alerts from MT4 to my email address. I was using  the set up in tools, Options, mail and used gmx.com. However it does not work anymore.
Hello, I want to identify the candle (in the last 5) that have maximum range (High[i]-Low[i]) . I wrote this code but for fill an array with range size: int candele = candelePrecedentiBuy;   int i = 1;      while (i <= candele) {        RangeCandela[i] = High[1] - Low[1] ;            }   How can I...
Hi Everyone,  I'm new on this world and I'm trying to develop my own EA in MQL4. I kindly ask you to have a heads-up to understand how I can add at the price candle graph, the following: Two horizontal lines (Bid and Ask) that I have stored in an external .txt file and that are dynamically...
Hello, I will try to keep it short. I noticed a weird thing with one of my EA's and perhaps you can give me some insight about it. I have an EA running on an Oanda demo account (MetaTrader 4). The EA is loaded into various different pairs at the same time. The EA is completely automatic and should...
Hi Guys , I was searching for lot multiplier code but was unable to find which i want. I found a code but it increases the lot on the percentage of account balance . But i want a lot multiplier which increases lot on the profit . if previous lot size was 0.5 but after the profit of 500 it must be...
Hello, for to copy text to clipboard, I tried the solution of ricx on https://forum.mql4.com/30795 It's running through without error, but in the clipboard there only is the first character of the input string. I tried to find an explanation and a solution and then replaced "CF_TEXT" with...
I have a custom indicator to call in the symbols values for two timeframes and I have run through strategy tester and for labels printing the chosen timeframe they update but for those from a differnt timeframe they never change. Is there limitation? MT4 b625 Meta Editor 5 b914 --- Another thing...
Hi all! I am writing to warn you about a virus that mined my account in MT4 and left it at zero. He started opening and closing trades without being able to stop them, in a few minutes he made me lose $ 2000. Disconnect my PC and re-open the account in my broker began to do the same until I left...
for(int x=OrdersTotal()-1;x>=0;x--)     {      if(!OrderSelect(x,SELECT_BY_POS))         continue;      int variable=0;       if(OrderSymbol()==_Symbol && MarketInfo(_Symbol,MODE_ASK)<=OrderOpenPrice())         variable=1;      if(variable=1)         Print("now variable is 1");...
Can i remove Alert Window when condition is false If condition true then show Alert but condition is false Close Alert window how is code
Dear Friends, I like very much using Triangular Moving Average code developed by Mladen. given as under //+------------------------------------------------------------------+ //|                                                  TriangularMAmq4 |...
Does anyone know what could cause the "global initialization failed" error message
1...121314151617181920212223242526...1244