Download MetaTrader 5

MQL4 and MetaTrader 4 - page 27

To post a new topic, please log in or register
  Event Click (3)
Hi everyone, is possible create a click Whit button in the graph and also have a click in a specific location on a web page?
I'm going to choose the last deal. As shown below, the profit and loss of all transactions will be shown. I choose the last transaction, and I want to see the gain of the transaction, but where should I fix it? for(int i = HistoryTotal()-1; i>= 0 ; i--)   {   if(OrderSelect(i, SELECT_BY_POS...
Soon after the loss occurs, the order will go further and further losses will occur. After the loss, I want to place an interval between the following order Can you tell me where the problem is? Even if I use it, it does not make any difference when I are not using it....
Hello everyone, Why is there such a big difference? //+------------------------------------------------------------------+//|   MQL 4                                                          |//+------------------------------------------------------------------+double  iADX(   string       symbol...
Hi  I want to use an Indicator in my EA , the indicator does not draw any line and just makes Comments . How can I take the information from the comments ?
I have written an ea that activates at 8 am new york time.  It looks back at the previous 7 am hour candle.  Using this candle the ea sets the buystop 7 points above the 7 am high and a sell stop 10 points below the 7am low.  It sets the sl at the high and low of the 7 am candles.  This ea has been...
Hello everyone, I am not sure what I have done, but every time I reboot Metatrader 4 my toolbars are not saved in my profile settings. I use to have timeframe, standard, charts, line studies and status bar all appear automatically on metatrader 4 start up. How do I re instate these settings to show...
Hello, I have been reading this forum for a while but just signed up to it today (so.. Hello everyone!). A little about me: I have been programming in C language for the equivalent of about 13 years of experience. When I started skimming through the get-rich-quick marketed EA's, I decided to start...
I am a programmer, and I have been working with MT4/MQL4 for about 8 months. I have written over 50 indicators and EAs, but with little backtesting/demo success because my strategies are lame. I have gotten very good at implementing strategy logic in a correct and efficient manner, and when I want...
hi  I just tried to do backtest with VENO ea, when it finished, no report show under the bar, can anyone help?
Hi, I am trying to write code which determines which chart is currently on top, in MT4. For example, if an EA or indicator is running on a particular chart, how to determine whether the EA/indicator's chart is currently on top? I know that you can bring chart to top: ChartSetInteger(chartID,...
the following code is in the help tutorial and I am creating  trend lines on frame_1H, the trendlines of (30 60 4H and 1day)  is raying right as coded but the trendline of  PERIOD_W1 and PERIOD_MN1 is not raying right,but the opposite direction as shown in the image any idea the problems? //---...
  Universal MA Cross EA (1253   1 2 3 4 5 ... 125 126)
I try to make an EA for any Moving Average Cross strategy, try to make it universal. So please let me know should you have any suggestion to add to this EA. Common Setting : ----------------- StopLoss (default 100) Set your Stop Loss. Use 0 (zero) if you don't like to use Stop Loss ( not recommended...
Been working on this for wayyyyy to long and just plain stuck-- do i use a switch or a enum or something else? Neither switch nor making a emum seem willing to use a integer like below...  What im trying to do is cycle through a group of numbers using gap++.. So in the example below we would start...
Hii, so as the topic says.., i have a question, here is the thing: i have some indicators that will show different results when i leave them on the chart for a while, but when i'll switch the TimeFrame to lets say H1 and back to M30, the indicators will show different results then when i left them...
I am brand new to MT4, and am required to use MT4 instead of MT5 because OANDA my broker only supports MT4. I am a C/C++/C# expert. Questions: Using the MetaEditor I do not see a way to organize a set of files into a project.   It looks like EA's must be 1 file and only 1 file?   Is there a way to...
Hi,  sorry for the beginners question. I am puzzeled w/ the Zigzag input parameter Deviation. On [DAX30] 2 digits POINTS = 0.01 any Deviation value between 5 or 5000 does not change anything?? Looking at the code, it seems to be an absolute point value and not as mentioned in many place a percentage...
hello, can you reset the Seconds () variable? my test reset does not work if(Open[0]!= Open[1])    {    seconds=Seconds();    }   else if(seconds >=20)   {   seconds=0  }  
In describing the cfb I am going to cheat : since it was invented by Jurik, here is what he is saying about it : What is the Theory Behind CFB ? CFB tells you how long the market has been in a quality trend. This value can be used to adjust the period length of other indicators, especially...
Hi all, I have some close prices on excel and want export this data to Metatrader and create line chart. I not need open, high, low. How this can be donne? 
I have a little issue with MT4. When i change timeframe then charts's settings  goes from > enable "foreground" to > disable "foreground" .  What could be the reason ? Anybody ? 
BullishHammer=((Open[i]+Close[i])>(High[i]+Low[i]/3.0)); I am attempting to construct a hammer pattern signal in this case bullish where the body is a third the size of the candle high/low range. Can some one point me to where I am going wrong on this? and also how would I quantify this as the body...
when I put the EA or predictor in the backtesting, there always pop out array out of range error like the following, I donot whether it's my error or the config of the ea. for example the first ea is from Deep neural network with Stacked RBM. Self-training, self-control the number of k lines cannot...
I would like to kindly ask you about the broker´s side of Meta Trader 4 - I mean the server.  As I wouldn´t like to have any troubles with the brokers in terms of overloading their server/servers, my question is: Can I send tens of orders (eg. twenty times 15 lots) to the broker´s server in the time...
  MQL4 Websocket (10)
Hello, there is a way to communicate with websocket with mq4? Thanks in advance. 
RSP FRIENDS, I WISH TO HAVE A CHANGE IN MT4 CHART SUCH AS CHART OF 30 MIN / 1Hr STARTING FROM 0 SEC (AS NOW),& 5 SEC, 10 SEC 15 SEC 20 SEC 25 SEC SUCH 6 (N) CHART FOR 30 MIN / 1Hr  IS IT POSSIBLE, APLICABLE & BENEFICIAL /?? REGARDS  KIRAN CHAUDHARI
Hi, Could you please help with the issue I am facing: Basically when I open a buy stop order without stop loss and take profit I got the error number 130 (ERR_INVALID_STOPS) . On my code I have checked the limitations as defined on this page:https://book.mql4.com/appendix/limits So on the price...
After executing a program, it reported a  few undeleted objects of certain type. How to find out where are these undeleted objects? Is there a way to access the calling function stack?  I am thinking a solution to store the calling stack at the object constructor so that I can track the various...
Hi, How can i validate an entry with fractal? Entry: Open buy when the fractal  show an down arrow, and sell when the fractal show an up arrow. Exit: Close the buy when an up arrow shows, and close sell when an down arrow shows. I'd tried to code with iFractal but I could not do the condition.
can anyone make this indicator be an expert advisor for supply and demand ?