Download MetaTrader 5

MQL4 and MetaTrader 4 - page 354

To post a new topic, please log in or register
Each time I think I think I’m ready to go live, a new piece of confusion arises. This time I was checking out forex.com (dealing desk) against FXCM (NDD) to check out spreads and anything else I might find. But I did not expect to find such a variation in the trade data.  For example, I’ve drawn an...
Hi. When I open a new order, I always use the takeProfit and stopLoss prices. When I close this order opened with the terminal this values remain in historical grid. There are many values, the price close, date, tp and sl and others. My problem is that when I close an order with my script using...
I have a trading strategy based on a custom indicator i have created. I can manually get trade signals by analyzing but i want my trade signals to display on the chart. Please how can i incorporate this into my custom indicator?  
Hi, I'm looking for  the original WPR code written by metaquotes in order to learn the code and make some improvment.... I've google the web and found the page which contain the code in mql4 is no longer exist, and I can't find the code on other site. Could anyone help to provide the original code?...
  MT4 Spyware (3)
I have really looked around the web quite a bit before posting this, and have not been able to find a clear answer. I've read innuendo and assumption, but I'd like to find something more concrete if it exists:  Q: Has anyone been able to verify that the MT4 installation or upgrades contain no...
suppose ticket 3 order is close then ticket 10 order place as pending order
hello, all is in the title ^^ i like to put alerts everywhere and that's really a tiresome task to delete the expirations one by one, there is no trick to change the default setting ? thank you, thomas ( i don't applause the guy who had the idea of this change !!pfff )
when i try to add new chart i get this:  C:\Users\?????\AppData\Roamin\MetaQuotes\Yerminal\804178f05358d0dfe1028115526a9e97\profiles\Default\chart01.chr contains an incorrect path.   anybody can help 
  scope issue (1)
I have a variable in a custom class that I declare a pointer to out of the scope.  Then I reset the pointer in the scope with one variable in the class and that variable loses it's value.  I have an oop background so I thought I would apply some of the new oop features but something isn't right....
Hello, I want at ObjectCreate ...  string        object_name,   // object name...have the string like candle1,candle2 etc....How can I make it? how to and to the string some variable(numbers) thanks :)
I'd like to know: 1) how may I customize the password I received to access this forum ? 2) how may I activate an audio or/and video alert whenever my expert advisor places or executes an order ? Thanks in advance 
Hi, I'm trying to compare two candles. How much percentage is one candle compared to the next. for that I am doing something Like:  open1 = iMA(symbol, PERIOD_H1, 1, 0, MODE_SMA, PRICE_OPEN, 0); close1 = iMA(symbol, PERIOD_H1, 1, 0, MODE_SMA, PRICE_CLOSE, 0); open2 = iMA(symbol, PERIOD_H1, 1, 0,...
Hi,   For some reason, some of my EA's are not displaying the comment text in my comment columns.    I must stress that this is only some of them, and there is no difference between the settings, as far as I can tell. I have always used the comment row in the EA settings, and monitored the trades by...
Hi, i need modification in Sell& Buy EA as:- Buy will closed automatically if the Sell signal is already visible and Sell will be closed automatically if the buy signal was visible. you can get coding support from Robot Danu EA attached here. kindly give modified mql4 file. Thanks in Advance Amol
Hello,  I would like to place an order when an event occurs, for example when my previous order hits either the SL or the TP.  Is this possible in mql4? Thanks! 
Been coding for years on MT4 but now tons of changes give me errors never heard of like this one: "'ObjectCreate' - no one of the overloads can be applied to the function call" What does that means and how do I correct my code that used to work just fine?
Hi, I've tried to move the folder of the script to my Expert / Script folder, re-launch the MT4 platform and the scripts were not there. So I move in the ones I wanted individually thinking that you can't move in a "Folder" of script into the script folder and still the scripts are not in the script...
  MT4 problem (2)
When I put SR levels on one currency pair, then drag a new pair onto the display, the new pair shows the SR levels of the previous pair. How do I stop this? I want to retain SR levels in the currency pairs, not have to redraw them every time, which makes scanning a number of pairs a total pain! I...
When you go back to look at old EA, the one thing missing is having the tester.tpl that you were using at that time. If an EA could specifiy a tester.tpl - or copy and overwrite tester.tpl that would be a nice feature. I suppose winapi could do this. Has it been done already?
I get error code 5004 when reading a file, whereas it worked with all previous builds.I think it is because of the introduction of FILE_TXT and similar parameters, since i`m not familiar with them yet, so please help me fix my code.Here is it: int SEARCHARRAY[5000000];int k=0;int FILEX; init()...
Hi guys,   I have a perfect strategy, but I want to use it on close values. Normally  it trade on every tick data.   This strategy is based on the OHLC values, of closed bars. So I don't need every tick data. I have a picture of this strategy attach to give a better view of the problem.   This...
I have an EA that I have put together however the problem is it is not placing orders the way I want it to. The logic behind it is to trade Short when the following conditions are met: Perceptron is < 0When TradeShort = True ( a combination of the following signalsbool macdShort=...
Does anybody face the problem, that after compile external values are not "reset" to the ones in EA?  Here is an very simple example:   #property copyright "Copyright 2014, MetaQuotes Software Corp." #property link      "https://www.mql5.com" #property version   "1.00" #property strict //--- input...
Thought this would be easy but can't find a solution If - for example I have some objects on a chart then I want my EA to check for there existence then interrogate the details of the object. If I draw - say 3 lines on a chart - Insert Hline - then I will have 3 lines withe names like Horizontal...
Hello, I don't know all the new functions after updating. Is there a function to switch windows? (eg USDCAD is in the foreground and the function must change to EURUSD) thank you
I already tried it myself and I got returns of zeros. here is my attempt: double SmoothedMA(const int position,const int period,const double prev_value,const double &price[])  {   double result=0.0;   if(period>0)     {      if(position==period-1)        {         for(int i=0;i<period;i++)...
Hi all, I have gone to great lengths to try to get Binary Options Bullet indicator to have emails sent to my gmail account when there is an alert. I have even set up an Hmail server which is continuously running along with MT4. I can send mails from the MT4 test option but it does not work with the...
  NO CONNECT (1)
Please! This caught my MT4 terminal, and in the lower right corner of the following message: No connection. Someone help me.
I want help for compling the attached file in new build mql 4610.
This is really shaking my confidence in automated trading. I've attached a screen shot and part of my chat attempt to resolve this. These are two demo accounts. I open the same AUDUSD 5min chart in account 756 and it appears normal. I open it in account 326 and data is missing from 5:15 May 6...