Download MetaTrader 5

MQL4 and MetaTrader 4 - page 17

To post a new topic, please log in or register
  File path (1)
Hi,  Easy one for you guys I am sure, can you give the file path to write a txt file, I have tried loads and I'm just not getting it :-( Steve
I would like to use Mt4 910 version. However, when I open the MT4, it cannot connect to the server and said my MT4 is "old version". How can I fix this problem?
Hello all, I'm new to this forum and MQL4 in general. While practicing with the code, I have created a custom signal based on Bill Williams' Alligator indicator for EA testing purposes (Jaws 13/1, Teeth 8/1, Lips 5/1). But it looks like I have forgot something... Can you help me? The code for OPEN...
I am a Newb to MT4 and MQL. I have placed eight EAs on one MT4 instance. I developed these EAs on a 30m time frame, but I am using a 1m Timeframe for testing purposes. I receive the error "Cannot change existing previous pending order with ticket: 1984613, reason: 1". ("Program has been deleted from...
Overnight, Microsoft updated my Windows 10 to "June 13, 2017—KB4022725 (OS Build 15063.413 and 15063.414)". This morning, my stored Accounts information has disappeared from my mt4 client terminals. I work with 3 mt4 instances, over a dozen accounts, live and demo, and several brokers. Usually I...
Hi friends I gathered the following EA from other codes. But he is not trading. What could be the reason. Can you help me. Thank you extern int stoploss     = 150;extern int takeprofit   = 500;extern int slippage     = 10;extern int Magic = 4166;extern double Lot = 0.01;void OnTick(){   for (int...
It is pretty easy to get the current spread on a pair, and it looks something like this in my code. string infotext2222  = " Current Spread: "+DoubleToStr((Ask - Bid)/pips,1); However, I also want to display the spread that I "paid" or that existed on my last trade. So say I took a trade at 11:00...
In my EA I am getting the error message, "possible loss of data due to type conversion", for both occurrences of "prevtime = Time" in the EA code below: if(Time[0] == prevtime)                  return(0);        prevtime = Time[0];        if(!IsTradeAllowed())                 {...
Hey guys, I coded an indicator that creates Support/Resistance lines. Now I've tried to create an EA which opens orders directly when market price touches a Support/Resistance lines. For some reason the orders are not being placed directly at the lines. Can somebody help me, please? Here's my code...
Hello, I want to memorize in a variable the current time (when a condition happened) plus 5 Periods ( I'm testing EA in H1 timeframe). This is the code: if (RangecCandelaMax == High[1] - Low[1])  {                         if ( Close[1] < iBands(NULL,0,50,2,0,PRICE_CLOSE,MODE_LOWER,1)){...
Hi All, I know, I know!! it's probably the most asked question but I am unable to figure it so please take a look at this and tell me what I am doing wrong as it's not working in backtesting Broker = intertrader          minstoplevel=MarketInfo(Symbol(),MODE_STOPLEVEL);               if(OrderMe ==...
Is it possible to limit ram usage by Mt4 instance? How can an user do it?
hi,   Is it possible to download a older build from MT4 e.g.  build 765 or 625? If so where can I download it? 
Hello everyone, I'm thinking and tested for hours but i can't figure out this error I have this scrips: if (Solenh[i]==1 && OrderSelect(IDB_Tien[a[i]][0],SELECT_BY_TICKET)==true) // Right                {                                     datetime Tgiandong=OrderCloseTime();                    if...
Hi I am trying to add two buffers in this ADR indicator i found online, so that i xan use the buffers in an expert advisor. I want the ADR High's price and ADR Low's price to appear as buffer 1 and buffer 2 in the data window on the Mt4 platform, as show in the picture attached. Can someone please...
I was trying to build an EA by using Envelop indicator and EMA indicator. But when I run the code it some orders were placed with wrong conditions. My Strategy is shown in the figure. I assumed Period 1 of EMA is equal to line chart. SELL ORDER - When downward  line chart cross with lower envelop...
  OnTick() time (4)
Hi all, I am trying to back test my EA but when I try to get the time of the tick it keeps returning the actual current time void OnTick()  {//---      WriteLog(IntegerToString(TimeHour(iTime(NULL,PERIOD_M5,0)))+" "+IntegerToString(TimeMinute(Time[0]))); I have tried but Time[] and iTime[] Any help...
Hi users, how do I allow all outgoing and incoming connections on my MT4 terminal on linux? I have the following issue 1) Push alerts will not send from linux server thanks
Hi I (Win7, 64, mt4, b1090) have an indicator CaVol with about 10 Parameter of which only the first two matters (the rest is for the presentation). This indicator has 34 puffer. Now I wrote a second indicator CallingCaVol() that calls the first one - but only with the first two parameters - assuming...
Hello everyone, I'm just learning how to code a EA, I'm very happy if someone explain this error for me This is my mini func int Lenhmua(int Loailenh,short x, short y)     {          if (Loailenh==OP_BUY || Loailenh==OP_BUYLIMIT )     {          if...
Hello, For the passed few weeks I've been a little stumped on where I'd place a variable for identifying reversals in the parSAR indicator. The main goal here is I want to include it in a buy signal, but I'm having issues dissecting it. Here is what I am using....
  Indicator Miscellaneous Questions (151   1 2 3 4 5 ... 15 16)
Hi, #Broker Time   I spent few hours for reading some comments, but I did not figure out how can I set my Broker Time to my indicators / how can I set my indicators to my Broker Time. (maybe I confused) My Broker Time starts from 01:00, but all my indicators works from 00:00. So how can I solve my...
There are several vendors charting system like Renko, rangebar, tick chart and so on. It is easy to attach EA and run EAs on these types of charts. However, back testing EA on these charts is real problem. Some of the vendors have their methods on how to back test but these methods do not back test...
Hello,   Could someone please tell me, how can i get Bitcoin index chart as iq option have? i didnt find any normal solution for getting it working. Maybe some broker you know?   Thanks 
Hi, I would like to know how I can easily check a value of a function / variable in my program. let's say I Have the following variable double TODAY_OPEN = iOpen(NULL,1440,0); is it possible to display the value somewhere so I can have  a look at which amount the variable is showing. thanks
Hi all I am using CCI indicator in MQL4 expert advisor. u want to set its fixed minimum and fixed maximum properties via MQL4 code. please refer to the below screen shot. please tell me how to get it done.
Hi all, I am trying to use SupportResistance custom indicator available in MT4 platform using iCustom function in Expert Advisor. I am using following code.           Resistance = iCustom(NULL, 0, "SupportResistance", 0, 0);           Support = iCustom(NULL, 0, "SupportResistance", 1, 0); By...
This should be an easy question: Does the OrdersTotal() function return the number of open orders for whatever chart the EA is loaded on, or does it return the total amount for the account? I.E., If I have the same EA loaded on say 4 different charts, and only one of them launched orders, are the...
kindly assist me how to install metatrader 4 on my windows mobile phone Nokia Lumia 900. been trying alot of way to install even try to download and install from metatrader 4 mobile and mobile SE, also cannot. so please consult me because im really rely on this mobile software to trade daily...
I have a variable... Double randomnumber1 = MathRand()/32600; But randomnumber1 keeps coming back as 0.0 even though MathRand is choosing random numbers between 0 and 32600!! I just want a decimal number between 0 and 1. JEEEEESUS. I've spent so long on trying to get this one line to work. How is it...
1...101112131415161718192021222324...1249