MQL4 and MetaTrader 4 - page 562

[Deleted]
Hello, I have an EA. I want to insert security code in it. I want to do that the EA works till specific dat and time. Forexample; I want that the EA works till Oct 15, 15:30 pm. Secondly, I want to hide my EA's code. Can you help me, please? Finally, I want tthat the EA works for specific parity
Is it safe to buy EA from folks you do not really know ? Can the EA that you buy from some one else online be used to hack into your PC ? Regards
The most interesting figures at the Strategy Tester Report are imho Total net result and Relative drawdown. Both figures will be greatly dependant on the choosen Order size. Another valid statement is that the rate between Order size and Account balance together with the Relative drawdown will...
[Deleted]
Hello, I write an Expert Advisors program that stores the Indicator values iEnvelopes, iBands and iMA in an Array. Unfortunately, the program doesn't work. No prices are stored in the Array. What must I do? extern int SMA_Period = 4;extern int SMA_Shift = 0;extern int SMA_Method = 0;double...
How to get the current bar color? Is there any function() for this task?  I have an idea to know the current bar color. Comparing if the open price is greater than closing price/current price then it means that current bar is red. Do you think my idea is correct?
As title says, i'm having some problem placing BUYSTOP/SELLSTOP order sometimes, i get Error 130 (ERR_INVALID_STOPS), probably related to MarketInfo("EURUSD",MODE_STOPLEVEL).   My broker return 0 as value from MarketInfo("EURUSD",MODE_STOPLEVEL), i tried to correct the OrderSend price adjusting it...
Hi comrades, how can I continue writing on the next line (similar to pressing the 'enter key' on a keyboard) on the label of a button I have created? Thank you for you in advance?
Hi all Been searching around the forum looking for references in regard to when to use "for - count down" vs "for - count up" statements. I use the following code to check open orders in my bot int orders_total = OrdersTotal (); for ( int pos = orders_total- 1 ; pos>= 0 ; pos--) { if
Hi Guys So I have a strategy that I have been using in Mexcel, but I want to be able to backtest it on Metatrader. Only problem is that I have no prior experience in MQL4. The idea of my strategy is to use the 15min, 30min, and 1 hr timeframes (i will write the strategy and laymans terms but I have...
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...
[Deleted]
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?  
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 .
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 ?        
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>
[Deleted]
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...
[Deleted]
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
[Deleted]
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_window extern double margin = 0 ; extern int shift = 0 ; string symbol; int timeframe; double trade[]; double
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",...