Download MetaTrader 5

MQL4 and MetaTrader 4 - page 75

To post a new topic, please log in or register
Hi Everyone! I am brand new to FOREX and MQL4. I had some limited C/C++ previously and when I realized that there is a possibility to program Expert Advisors I became very excited. So I started learning it from different materials on the net and applied for some udemy tutorials as well. I am...
Hi guys, Today I started up my computer and noticed that my accounts where gone. So first I setted these up again. Next I noticed my most important indicator is gone. So I went to Indicators->Market and tried to add the indicator I use most often. However, I can't attach it to any chart, it just...
Hi. In these years in the market, I could observe that price patterns is the key and best behavior on market prices future. The history always repeat itself. Past and future are an illusion, all is a continuum line of time.  But all know that a heuristic calculus is a little heavy. So, why not use...
Hi, finally I managed to use NotePad++ (google) to edit and compile mt4-files with some surprises :) 1) I created one folder for both mt4-compiler: 32 and 64 bit. (you'll find the HowTo in: Editor=>F1=>Search:"Compiling") 2) In that folder I created as well two folders MQL4 and MQL5! 3) In the MQL4...
Hello, I have a .csv file with some data, if i try to import the data to my MT4 the History Center can read the data, but it dont import all data (see attach file). For exaple ther is some data missing: 20:45 20:20 20:15 20:10 but as you can see, this data are exist in the .csv file.   Could anyone...
Hi Guys, My coding below basically to check reliability/validity of Hammer/ShootingStar (period H1) on period M1 chart. - swing up/down on the last 30min before it closed. My problem is with this line ----> while(TimeCurrent() >= MinSec(1,0) && TimeCurrent() <= MinSec(5,0)) The condition is true,...
Anyone have any insight on getting the close price of the last order? I tried: if(OrderSelect(OrdersHistoryTotal(),SELECT_BY_POS,MODE_HISTORY)==true)     {    double LastOrderClosePrice = OrderClosePrice();     }
Hello all, I have an EA which shifts the chart around using the ChartNavigate function. It's been working for months, but since downloading the update today it doesn't work properly. I can demonstrate the problem with the following code, an EA (turn off the auto scroll before putting it on a chart):...
Hi guys,  I looked around and found some information but I still am confused and not sure 100%. Most of the posts are a few years old... Does MetaTrader 4 support the use of SSL to send SMTP Emails?  What about TLS?   Thank you in advance 
Hi everyone, I am using iCustom into indicator to retrieve values, and use them as signals emitter into my EA (better visual than put all code in Expert). I am using M1 Period Chart, and I want to obtain other period values ( Day, Week, Month, ...). So here, I try to retrieve "Daily MMA20" on a "M1...
hello what is Time Zone in metatrader4 history center ? is this UTC ? and is this fixed for broker or can change with brokers country time? thanks so much
Hey, I'm want the MT4 terminal to feed price data into an external program through an EA, the external program will then carry out calculations and feed buy/sell instructions back into the terminal. Which would be a better language for the external program, c++ , c# or java? I'm asking the question...
Hi, in the full code attached and segment below I don't understand why it takes a long time to load when placed onto the 5m and 1m chart but is okay on the larger charts?  Reference says that it might be something to do with too many physical memory locations? But I'm not sure?    for(int i=limit;...
Hi guys, I hope someone can help. I have downloaded some trial quality data 1 month to check quality. Data was in txt got that converted to csv in Excel. But when importing into Mt4 I got some bars which are not in Excel file My mt4 view of 1m EurUsd 2016/07/01- 2016/08/01   I know It doesn't look...
Hello,  I just started learning MQL language and I have a question, right now I have build a EA which is checking if all my different conditions to take a trade are met. When this happens then the order should be executed once. Right now if all conditions are met it openens a trade at that moment,...
I am trying to understand the meaning of zero value in back testing. When I run a back test I get a number of positive results a number of negative results and a large segment of 0 results. I wish somebody could explain why this is happening and what is the meaning of these 0 results. To make clear...
Now I'm using an indicator (MQL4) that count bars (timeframe 5 minutes) from the Top or Low within a range of x bars (in the example 215) with this formula: int lowbar = iLowest(Symbol(), PERIOD_M5, MODE_LOW,215,1); int highbar = iHighest(Symbol(), PERIOD_M5, MODE_HIGH,215,1); datetime...
Hi Traders,     Now I feel the execution speed of OrderModify is quite slow.   When I see the timestamp on "Journal" of MT4, after sending order modify to confirming of the order modified, there is about 600ms in average. Opening order is much shorter, about 150 ms.  Deleting order also takes longer...
Hello i would like to know how i can ajust a martingale program to return to lotsize 0.01 after 2 consecutive wins. Normaly a martingale starts over after 1 win.. I have tried this way but not sure if this is correct . for(int x=counter-1;x>=0;x--) (I change the 0 to 1 to get consecutive loss1....
Hello, The PeriodConverter is working well against all data downloaded via History Center (F2).  In turn, when applying the Period Converter on top of a graph, it will create the offline charts with the starting and ending dates matching the underlying data amount/quantity. However, is there a way...
There is an idea in the metratrader 4 help files, tools > configuration at startup, that I really want to start using: I want to script my metatrader 4 to run certain commands automatically, such as: -automatically perform and save a backtest of a specific EA and currency pair from x date to y date,...
Hello everyone, I have the following function that gives me a allert when when you come to form the double up and double min:   void DoppioMinMax(int DistanzaFrecciaRib=5, int DistanzaFrecciaRia=5, ){  int dpmindmax =0;  int i, countDmax=0, countdpmin=0;   for (i = Bars-10; i >= 0; i--)     {...
hello ican see any signal bar to my mt4
hello mt4 asked me proxy serever during instalation
Hello, Working on a very simple array data export to CSV. All is working well, except that the bar indicator [barInd] counting is in reverse to what I would prefer it to be. So the question - would it be possible to reverse the numbering mechanism? Instead of getting: barInd   |   Date...
What is the value of one pixel on the Y axis of the current chart? I need this value so that I can calculate the value of 600 pixels. This is because I want 600 pixel take profit level, and not 600 Points or 600 pips. I want a uniform take profit levels on all charts, regardless of their Point...
  help me please [solved] (30   1 2 3)
I'm new in mql4 and this code opens multiple orders, how can i avoid it? it should just open 1 order until it closes,  how can i do this?   Thanks   void OnTick()   {      double up= iIchimoku (NULL, 5,9,26,52,3,0);   double down= iIchimoku (NULL,5,9,26,52,4,0);      if (MathMin (up,down) < Bid )...
Hi everyone, I'm brand new with MQL4, I'm tryng to apply a moving average to another moving average. I'm able to call my two custom averages into MT4 e to plot them.  But I want to apply the second average (yellow/blue) to the first one average (red); instead all I can do is to apply them to price...
Hello .. in fact, I have noticed that no trades could be happen with the following code example:       if(Close[0] < PreDefPriceBuy)          BuyExecute(); while replacing the < with the <= would allow trading normally       if(Close[0] <= PreDefPriceBuy)          BuyExecute();  .....
I will be happy if MT4 supports UTF-8 source files. Currently, MT4 build 6xx supports system locale codepage encoding and UTF-16LE. UTF-16LE is locale-independent encoding, but has the following problem: Some tools recognize UTF-16LE files as binary (ex. git).Not only tools but also some of web...