Download MetaTrader 5

MQL4 and MetaTrader 4 - page 7

To post a new topic, please log in or register
  installing MT4 problem (32   1 2 3 4)
I am installing the Alpari MT4, and the program is installed, but when I try to run the program (click to MT4), the screen becomes transparent, and get a message saying that "MetaTrader stopped working". I tried disabling antivirus and firewall (NOD32), installing it in and out of program files,...
MT4 works at reconnecting when connection fails, only if its utilizing *the same device* to reconnect. Sometimes fails to reconnect automatically even if its the same device. We still have to manually reconnect, which is not viable for me. I live in a place where the connection  is really unstable....
Hi, I am trying to vreate an EA. 1 of the things the EA ust do, Is to close an order when the 3 over 5 EMA conditions are met on the open of a new candle. When I try this in the strategy tester, i looks fine, but on a live account it doesn't work.  Maybe it is a slippage issue? Or is the code wrong?...
I have a weird problem... Testing a EA, runs fine produces a backtest.  But the second time I run a backtest with the EA (or any EA for that matter), MT4 immediately hangs and I have to kill it.  It doesn't matter if I try to run with different parameters, a different EA, or if just hit "Start"...
as shown is the ichimoku indicator //+------------------------------------------------------------------+//|                                                     Ichimoku.mq4 |//|                   Copyright 2005-2014, MetaQuotes Software Corp. |//|                                              http...
Hi Peoples - please can anyone help - I had MT4 (32 bit) running OK on my machine - I had to install the x64 version - I deleted the x32, purged and restarted the device and then installed the x64 direct from the MT website the install procures all charts with "Waiting for Updates" -I have tried...
hello at all, it is possible to replace the ilow () function or iCLose () with a string? I tried so but does not work: extern string CloseHigh ="iLow"; // Switch iLow or iCloseCloseHigh(0,0,1)); //iLow(0,0,1)); or iClose(0,0,1));
Good day Guys, can any one help me fix this problem? I'm trying to build a Grid Line Indicator and its saying Array is out of Range. Here is the source Code : #property strict#property indicator_chart_window#property indicator_buffers 1#property indicator_color1 clrWhiteextern double   RSMAX=2...
  datetime to Epoch?? (11   1 2)
hi everyone   do you know some way to convert a date '09.09.2014 18:32:47'  or the current time and date to Epoch???   thanks for help   yhoyo     
One more average and variations: - One more average - very advanced indicator with speed changing, with smooth options and with non-adaptive/adaptive options to draw SMA, EMA, T3 (0.618 Tilson), T3 (0.618 Fulks/Matulich), SMA, harmonic mean, Hull and TEMA, Linear regression value and so on....
Hi there everyone I am a total newbie to trading and coding, I tried coding a simple EA to test a strategy I had in mind but the code is not being compiled. The first error(s) which I think are the main problem   is as follows:"  ' iMA ' - constant expected " which repeats for the three instances I...
  eas doesnt work (11   1 2)
Hii friends, Why many eas doesnt work on my pc? a lot warnings or error looks. Thanks
Hey there, quick question: Is there any way to set a custom text to push notifications that MT4 sends to mobile about transactions? What I have in mind is that instead of the default notification text unforming of a closed position such as for example "order #35811722 buy 1.00 USDCAD at 1.34242...
  ADX alert!! (129   1 2 3 4 5 ... 12 13)
Hi, Can anyone help me with this favor? I am looking for an ADX that will alert, when a cross between D- and D+ occurs and vice versa. Sound alert that a cross happened, that will be appreciated Thanks
Hi, I have been trading for some years now and would like to learn coding my own Expert Advisors using my trading strategies. I have completed a MQL4 course for beginners which was good, but I want to / need to learn more before I can code by myself. I don't have any previous experience in C or C++...
My expert closes some orders NOT from TP and SL like it should, but for no apparent reason at price 0.00000, and in the journal it shows "close order#(order details here)....at price 0.00000" All the normal closes from TP and SL show up under the Experts tab instead of the journal tab. what would...
  MT4 UI Text Size (16   1 2)
Hi fellow MT4 users, I bought a Surface Pro 3 and installed MT4 on it. Works fine however the text is too small to read and strains my eyes making it almost unusable. I have tried changing text size to larger in Windows and playing with the DPI settings but nothing has made the text larger in MT4....
Hi! I copied a list. When the trader open a postion with size 0.02 my metratrader copy the position with size 0.01. Why my MT4 dont copy the original size?? I'm using a VPS with the MT4. I attach my configuration. Thanks
Hi, How can I detect a double click event on a Chart ? I can do it for a single click using : void OnChartEvent(const int id,                   const long &lparam,                   const double &dparam,                   const string &sparam) { //new logic    if(id==CHARTEVENT_CLICK)    { .........
is there a way to set semi-transparent color indicator's line? i used this but none of these  work: ...... SetIndexStyle(1, DRAW_HISTOGRAM , STYLE_SOLID, 1,  StringToColor("0, 0,127,0")  ); SetIndexStyle(1, DRAW_HISTOGRAM , STYLE_SOLID, 1,  0x00FF1234  ); SetIndexStyle(1, DRAW_HISTOGRAM ,...
Dear All, I had my metatrader system and default profile crash unsavedwhen my laptop crashed after over heating. I've reopened metatrader and my defaultprofile is loaded but the alarms have all been lost. Any new alarms that I sethave the conditions and counters and limits are all grayed out except...
Hi at all! MT4, I was doing a good backtesting optimization of a EA. I found a good combination of input values, it was giving good results, but he was not finished and I left my computer to work. I do not know if it finished the backtesting, but I found my computer restarts. Please, does anyone...
  OrderSend Problem (11   1 2)
hey i am a rookie in programming, i have the following problem: Compiler says: 'OrderSend' - declaration without type What i should do? Code: // BUY ORDER DEFINITION OrderSend(Symbol(),OP_BUY,LotSize,Ask,Slippage,BuyStopLoss,BuyTakeProfit,"Buy Order",MagicNumber,0,Green);   // Sell...
Axctually I am a amateur in expert programming, I have a so many errors after compiling  (9errors) and that expert in MT4 after compiling not loading . somebody can help me? The indicator using for expert is "solar wind joy :)"
Dose anyone know what the input 'slippage' means for the order in the function OrderSend()? It is an integer, but in the MQL4 Reference, it says : "If the requested price is out of date, but present in the thread, the order will be opened at the current price and only if the current price lies...
Halo fellow coder, I'm trying to use function call DoubleToStr(f0_8(), 0) in this way for my chartinfo panelbut the function is not working. This code only showing "Total Orders = 0 ". The function value is freeze.Any other way that can works perfectly  with applying font, color and position of the...
In other platforms, there is an eaasy way to calculate time remianinig till market close, or time passed after market_open... how to do with mql4?
Hi friends, I'm going to create a function to put some values in 6 different arrays simultaneously. I want to know whether it is possible to use a loop to get the name of the array and put the name of the mentioned array as the function parameter and make change in it and then again by using the...
  OBVIOUS BUG (9)
I use the simple code: #property indicator_chart_window #property indicator_buffers 1 double test[]; int OnInit(){   SetIndexBuffer(0, test,INDICATOR_DATA);   return(INIT_SUCCEEDED); } int DaysGone = 0; int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const...
Hello, i looked for an answer in previous topic but i didn't find it. Is it possibile in mql4, with a command line in an expert advisor, toggle the Automated Trading (like Ctrl + E) ? Thanks in advance
1234567891011121314...1225