Download MetaTrader 5

MQL4 and MetaTrader 4 - page 64

To post a new topic, please log in or register
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?
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...
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
Hi guys, please I need help to plug these two things together... I have this EA (mql4), which is monitoring the account Balance, Equity and Profit. When the set profit or the set loss % is reached the robot closes all open trades. I also want the Autotrade in Mt4 to be turned off to prevent the main...
Hi I know its like a one time ordeal, or is iit? How does one setup mtf chart in strategy tester?
Hi all, I'm   running an EA   on 3  different charts and i'm wondering if someone knows an mql4 code that automatically closes  all trades when a set total  profit ( pnl) is reached. Is it possible?  Please help. Thanks.
Hi MT4 programmers, I have indicators that create objects.  For a few of my indicators, I might add more than one (of the same indicator) to a chart. A problem will occur if the indicators both create and delete the same object names.  Therefore, the usual workaround is to use a user-defined...
Hello all and thanks in advanced. I am trying to only open new orders if they are going to be opened in not the same price as any of the already currently active opened orders (MODES_TRADES, not MODE_HISTORY). In other words, I don't want 2 open orders with the same OrderOpenPrice() for my scalping...
extern double Lots = 0.01;extern int Slippage   = 3;extern double TP = 0.00200;extern int MagicNumber=11111;string text = "Forex Mudah";int init(){   return(0);}//+------------------------------------------------------------------+//| expert deinitialization function...
Print (MarketInfo(_Symbol,MODE_BID));OrderSend(_Symbol,OP_SELL,0.01,MarketInfo(_Symbol,MODE_BID),0,0,0,NULL,0,0,clrNONE); Notice how, upon utilizing the code above, in the Experts tab you will see that there is sometimes a discrepancy between the MarketInfo(_Symbol,MODE_BID) and the actual price at...
I hope to write a function PrintVars that is able to print the print variables with their names. e.g., int var1=1;bool var2=true;int var3=2;PrintVars(var1,var2,var3); The output to the console is: var1=1var2=truevar3=2 The difficulty here is to Get the variable name;passing parameters of various...
Hello everyone, could someone please tell me if it is possible to intercept window chart moving event? (it has to happen when dragging chart window by mouse). Thank you
Hello,  I have problem to use GetMessage(...) Win32 function to intercept Windows msg. Could someone please help me with a little example if that is possible? Than you