Download MetaTrader 5

MQL4 and MetaTrader 4 - page 143

To post a new topic, please log in or register
Hello, Prior to build 600, I wrote a C# DLL that worked perfectly but it seems that build 600 broked my EA calls. The C# DLL define some functions like this (using RGiesecke library): [DllExport("loadAllDatabase", CallingConvention = CallingConvention.StdCall)] public static bool...
I am trying to call a function from dll written in C# named bool CyboLoadBuffer(double &buffer1[], int size, double &buffer2[], double &buffer3[], string symbol, double a, double b, double c, double d, double e, double f, double g ); from my expert it shows error Stack damaged, check DLL...
Is it just a problem with my MT4 or did the speed adjustment also disappear on your MT4?
Hello, I am looking for a script that would return the number of active symbol on the account (number of symbols that have active orders). Il would use this value in an EA to limit the number of active symbols. Thank you!
Win 2k8, R2 SP1 Quad core 2.5gb ram.  b920, terminal running for 2+ months continuously, AUDUSD pair.  No custom dlls used (only mql4). 2016.01.08 02:27:07.144 Access violation read to 0x1432BE9C in '[mt4 portable]\MQL4\Experts\[ea].ex4' I noticed this in one of my terminals.  The EA just stopped...
Hello,   I am trying to read values for multiple pairs on single chart. On single chart indicator works. But when i am trying to read from more pairs on same chart so it is going wild. Do you have any idea what to do to get it to work?    double EURH1=iHigh("EURUSD",PERIOD_CURRENT,0);   double...
I have to evaluate max profit value by one order's Lots, Ask (Bid) and TakeProfit value. (TakeProfit value = TP x Point) If this order is a take profit order, the order closed price will equal to Ask + TP x Point (Bid - TP x Point). I found a formula: profit = Lots x MarketInfo(Symbol(),...
Hi, The iHighest and iLowest it give the last Highestor Lowest Price it is not care about candle if it green or red, But I need to referring to the last green candle Low OR last red candle high. How to find that? the candle could be 1 OR 2 ..... But it is the last candle.  All the best
Hey Community,   Is there any option or tool to add a extra, that shows me directly, how many money 1 Pip would be actually? It would be even more nicer, if it would be a calculator and I can enter my pips end I get the value in € or $.   Thanks and Greetings! 
Journal tab:  2016.02.05 09:37:18.384    [ea name] has newer unsupported version, please update your client terminal And experts tab: 2016.02.05 09:37:18.384 cannot load 'C:\0Metatrader 4\Exness 1\MQL4\Experts\!CleverTrader Enterprise.ex4'2016.02.05 09:37:18.384 !CleverTrader Enterprise: has newer...
Hi, guys this below is a script that is used to place a buy pending order. It is not complete because it is missing a part, but I do not know where to start, if any of you can help me I would be really happy. In fact it is not even a part but it is enter an activation command. In fact, what I would...
Hello, How can I show in the charts only a period time of a day? For example, show only NY time for EUR/USD chart or hide pre-market data for SP500. Thanks 
I have used mt4 for so many years and this is a constant problem. On dragging the crosshair, it keeps disappering before I can drag it to point B from point A to measure the number of pips. I've tried pressing shift, control, and alt with it, but it still disappears before I can reach point B. Is...
Is New MetaTrader 4 Platform build 950 still 32 Bit version only for Windows? In odrer to relieve performance computing EA, is it worth it to set the affinity CPU cores for running two different instances of (MT4) terminal.exe?
Hi there. I'm having a little problem with my indicator.  The indicator itslef it is working just fine. It's Separate window indicator with histogram style, and it's value can be only -1 or 1. What happen is that when i change the periud for exemple from 1H to 5m the first time i do that, it does...
Hi All, I am still new to mt4 programming. I really need help with this. I need to create two horizontal lines, Upper and lower. These lines are to be created using the most recent fractals value.The upper fractal for the upper line and lower fractal for the lower line. When new fractals(lower and...
Hi All, Is it passble to specify which Symbol the code can look in? for ex: I need it to look in "AUDCAD" Pair. #property indicator_chart_window   double prevbid=0;   //+------------------------------------------------------------------+//| Custom indicator initialization...
i tried to test my ea in visual testing , but it always stuck when launch the buy order . what 's wrong ?  pls help. 
  error 130 (3)
I am getting error 130 can someone help here is what i am doing get the signal from email and opening trades on mt4 its working smooth on alpari uk demo account but getting error on hotforex current price 1.2560 where SL=1.2460 output of StrToDouble(SL) is 1.246 int ticket_num = OrderSend (PAIR...
Hi guys, I've been trading futures for years and now looking at forex. I'm using freshest download of MT4 on Windows 7. I lost some money with stops recently, at first I thought it was me entering wrong orders but now I know it is system. WHAT HAPPENS I like to place several trades at same time,...
Does anyone know what this is exactly?  I'm trying to put labels on the chart which match and I cannot work it out.
void OnTick()  {//--- check for history and trading   if(Bars<100 || IsTradeAllowed()==false)      return; // Can this return be replaced by continue ? After this return, it back to the start of Ontick function ? //--- calculate open orders by current symbol...
Hello Forum, On my end it looks as though there is a problem with the MetaQuotes history centre, I just cannot download any history/ and the tester gets stuck on the "waiting for update" screen. I know this may have been discussed (message is the good old "There are no new data for a symbol") - but...
I'm got a C# DLL that calculates my trades for MT4. It is compiled as x86 and uses RGiesecke.DllExport for unmanaged code. So far so good, but I'm not able to call any other class libraries from it. As soon as I instantiate a class in an external dll file (which I manually copy into the Libraries...
I sometimes (thought rarely) receive "array out of range error" in the following code: focusedIndex = iBarShift(NULL, 0, focusedDate);if (focusedIndex>-1) {   datetime realTime = Time[focusedIndex];} which leads me to a question, whether someone has explanation....
Hello! A hello to all with same mind of trading. I'm a beginer of EA. I learnt C by myself, but all about reading a book of C. Headache, I tried to read a simple EA of Moving Average in my MT4, but can not understand all of the lines. Pls help! I marked those I can not understand in RED.  I'd like...
Lately I have had som problems with the SendNotification function. It has worked fine for years but suddenly it stopsworking for periods. It looks like its because of the restrictions of max 2call per secund and not more than 10 calls per minute. I’m trying to find aworkaround of this problem and...
Why is it that when I place my Indicator onto a chart it only shows the objects on current day. But when I run it on tester it displays all previous days? int OnCalculate(const int rates_total,                const int prev_calculated,                const datetime &time[],                const...
Hello  Write indicator/alarm composed of three incices? Is composed of two CCI and one rsi. Alarm after fulfilling certain conditions. Can anyone help? Sorry for my English 
Hi fellow traders  Can anyone please tell me where to find the mql .exe compiler. I need it please.