MQL4 and MetaTrader 4 - page 125

To post a new topic, please log in or register
More MQL questions. Thanks in advanced to the answer. What is the absolute best way to lag free execute a sell right now from command line linux terminal directly/without graphical MT4 for better RAM usage? Need the code. Paying API Fees the only way? Meta lang mql.exe the best ? Independant...
Hello my friends, I've an indicator. I want to update my indicator to the new MQL4 Compiler. I already wrote the new code but I've on problem. When I add #property strict  -  the indicator vanish but when I delete it the indicator appears. Here is the code & I hope any pro here could help me. The...
  iBands (10)
I use iBands in my EA but I cannot seem to identify the middle moving average of the bends. Any idea on how to get the middle line value since iBands only uses MODE_LOWER and MODE_UPPER? I tried using iMA with no luck. Here is my value for the bends: iMA(NULL,0,20,2,MODE_SMMA,PRICE_CLOSE...
I have been all over the forum and read all the articles in Tester, but I can't seem to find much about how others may be achieving Walk Forward Analysis for their EA's with MT4. I know there is a tool by Easy expert forex, but this tool unfortunately has limitations. Essentially it only seems to...
Hello, I created my EA that open #3 orders at the same time when some conditions are true. In backtesting EA works fine and in Result I can see my #3 order with same open time: The issue is in DEMO. I see in Journal tab a time delay (seconds, until 1 minute) between Order Buy Market and Order Opened...
Hello everyone, How should I program this?   I can't see a way to get string "sym" to receive more than one enum value. Example: METAL selection is only Gold, or Silver AUD selection  is only AUD vs other pairing EUR selection  is only EUR vs other pairing GBP selection  is only GBP vs other pairing...
Hello, I don't know how to permanently delete indicator from MT4 software? Indicator, in my case Average True Range, is original one and NOT a custom. I would like to delete it from menu so from entire Metatrader software and not only from chart. This indicator is worst one ever seen - impossible to...
Hello guys, I am new to MQL4 programming. I started an EA using the indicator Slope Direction Line Modified. I checked the EA in very old post https://www.mql5.com/en/forum/178852 https://c.mql5.com/forextsd/forum/49/slopedirectionline_v3_1.mq4 SlopeDirectionLine_v3.mq4. Test on EURUSD M5, M15,...
Hello, I would like to add an alarm sound to this zig zag indicator Thanks for your help
Is there any existing implementation of list of string, integer etc. where we can add element, remove element directly, without caring of the size of the arrays?
I can't locate my pop-up price window. The last time I was able to see it I draggedit just above the task bar at the bottom of the screen. When I press f10 the MT4screen becomes inactive but the po-up price window is nowhere to be found. Re-startingMT4 doesn't bring it back either...any thoughts?
I have the free version of shved_supply_and_ demand indicator where I would like to pass the four nearest zone hi Zone P1 and P2 as well as the lo zone P1 P2 so I can make a pending order EA with it . The basic strategy is the Zone bounce or Supply and Demand bounce. Unfortunately the buffers are...
Hi Guys I have a custom indicator, which works fine when I attach it to a chart. When I attempt to get the values from the indicator, they are retrieved correctly as per the chart, when getting it from a script. If I use the same code that works in the script from an EA - I get values, but they are...
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...
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?
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...
  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 
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...