Download MetaTrader 5

MQL4 and MetaTrader 4 - page 118

To post a new topic, please log in or register
Hello everyone, I should add in the Alert pop-up, the value of a variable double , but as I wrote the code is not good. #include <stdlib.mqh>#include <stderror.mqh>//--- indicator settings#property indicator_chart_window#property indicator_buffers 2#property indicator_type1 DRAW_ARROW#property...
Hi, Sorry for my poor skills with programming. I have a volume indicator and based on this indicator I would like two arrows to show up. Code for my arrows indicators is shown below which I have taken from this link. https://www.mql5.com/en/code/7332 #property  indicator_chart_window#property...
new to meta trader so bear with me.  I am writing an EA - what I want to do is detect a bar change in the Fisher_Yur4ik indicator. Does anyone know how to do this? If so could you supply me with a code sample?   Thanks in advance!    
Hi, I have lost the last week (02/10/2016 - 07/10/2016) download of the calendar news from ForexFactory.com. If someone can upload it here it will be great. Thanks in advance. 
Hi,   In my order window the buy line is red and the sell line is blue. How to change the colours?  
I was thinking if there was a way to code forward tests in MT4 into OnTester() function. It's a pain having to do it manually while optimizing. Does anyone have any idea if this could be done? 
my EA attached on every chart works fine when only one chart on the upperest window ,  i want to see the overall performence of all the chart about 24 charts ,and tile herionly ,ea does not work .
Hi My investor's PC appears to be creating trades OK, SL/TP drawn, but not the actually order line itself.  See the attached pic. I've worked with mt4 and mql4 for about 6 years now and not ever seen this and wouldn't know where to look. Google not returning anything useful either.  Has anyone else...
Please give me sample code of Table indicator with value inside. I read the documentation many times but I don't get it because the sample code in there are not simple enough for average programmers. The documentation lack explanation/good short sample code. Look at this example code in your...
Hi Coders, My MetaTrader is running genetic optimization since a week. It needs some more days before finish. But now, I have to restart my Windows. So, is it possible to stop the optimization and then can I continue it? Thank you in advance. Relative
Params indicator line string or number  output for my EA ?    
Running an EA on a Demo Account and running it on a Live Account   Besides the first being that Fake money is used and the second being real money is used ...     Are they the same, Result Wise ?   Or will there be differences between the results of a real and demo account run ?        
Newbie with some questions to ask    1) In MetaTrader 4, if an EA is used, Is there some way to set the initial "Investment Amount" so that MetaTrader 4 will use only this amount to trade for the full Trading Session ?   2) In MetaTrader 4, if an EA is used, Is there some way to set a "Flag" such...
Dear Sir, The code work me only current time-frame 1 order per candle please modify the code. Thanks..  Code Here <decompiled code removed by moderator>
APeng
Hello, I want to send RTD from MQL. In Excel commandscan be send using RDT: “=RTD("ProgID,"server","Topic1",..."Topicn")” There you can send e.g. a command to place an order to another RTD server. Now I want not to use Excel, I need a bridge to send RTD commands from my MQL code. @ jjc: I was told...
Hi I'm new to Mql4 and I have problems with ObjectCreate() function. I want to create script that gonna show me some events on the chart via drawing vertical lines. I came up with that #property copyright "Copyright 2015, MetaQuotes Software Corp."#property link      "https://www.mql5.com"#property...
Hi, I  have a set of MT4 indicators that draws alert dots on the chart, histograms and lines. The indicators generate an alert signal and then some other indicators are used for confirmation. We can enter a trade when all confirming conditions are met at or after a max of 3 bars after the candle...
Hi guys  Small problem.... While all other indicators update accordingly on MT4, the SMI indicator doesnt. I have to switch timeframes and swtich back again to get the smi u to date. Anyone else has this?  
I'm working on a 1D k-means clustering code. I have defined 25 Cluster Means and I need to go through the available data and assign each value to the closest Mean. How can I do that without having to create 25 different arrays to which I should assign the data?
  Trade Panel - issues (11   1 2)
Hi,   I made some "OBJ_RECTANGLE_LABEL" s but I can't find how can I link each other. That mean I need to move all with single object. So where can I learn about that with example? Any idea would be better.   Best, Max 
I am returning the value of the Ichimoku indicator and want to be able to look at the data in the chinkou span one step back and one step forward of what is the default. So the 2 points on either side is what I wanted to retrieve. The chinkou span is a lagging indicator which is 26 positions behind....
Hello,  Is it possible to add in color transparency to an object?  Eg.  I want to take a rectangle and instead of making it while #ffffff i wanted to make it transparent.     I was wondering if anyone can show me some example code to do this?   Thank you 
Hi, if I use the following indicator with USDCHF, I get different results, depending on whether the line marked with //! is uncommented or not. Why? #property indicator_chart_windowextern double margin = 0;extern int    shift  = 0;string symbol;int timeframe;double trade[];double loc_margin;int...
New article Statistical Distributions in MQL5 - taking the best of R has been published: The R language is one of the best tools of statistical processing and analysis of data. Thanks to availability and support of multiple statistical distributions, it had become widespread in the analysis and...
DoubleToStr() is not working in Moving Average value. I want to display the MA value in 5 digits. When I pointed the cursor in MA line the value have 5 digits but when I use the iMA() function to display the value its display 4 digits. Here's the code: double m = DoubleToStr(iMA("EURUSDi",...
Is it possible to code an EA on mql4 that is used only for copying all trades from a specific trading account..
  Something really weird (11   1 2)
Hi guys, here is my indicator: #property strict#property indicator_chart_window//+------------------------------------------------------------------+//| Custom indicator initialization function                         |//+------------------------------------------------------------------+int...
Good day folks, I have a multi-currency/timeframe EA that I have created. Normally when loaded, its takes a few hours or maybe a day to start trading due to it being required to download all the data.....this is normal.  However, I have come across one broker in particular where it refuses to...
Hi, Gurus: I stuck in an issue as topic and I need someone give me hints or examples ! Thanks! I want click a button and control the visual status of a object such as rectangle label which displays some info about MT4 account in my EA. Due to the source code file totally  has 965 lines and post this...
How can I code Changing profile and Changing EA parameter (after I click OK on the parameter Window) to do different things. It seems both of them triggers the same event. As you can see both of them Initializes parameter, DeInitializes parameter, and so on. But I need them to do different things.