Download MetaTrader 5

MQL4 and MetaTrader 4 - page 92

To post a new topic, please log in or register
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...
Hey Guys, I found this nice EA manager on the internet. .............  <Deleted>
im a big fan of lumia. despite having much less apps from android, I still find its durability, elegance, camera, and overall experience greater than any android phone I've ever used. The thing is, I'm also a trader and I find the lack of MT4 app in Windows Phone app store quite annoying. I dont...
Any tips on keeping track of and managing multiple accounts at different brokers? So far I've been using myfxbook with ftp notifications which provide a good overall view of all my accounts as well as some analytics. It does not, however, provide realtime updates and does not allow me to execute...
'im new in mql4, and need help, this code doesnt work, but why? it should open a trade if the price cross ichimoku, why it doesnt work? thanks void OnTick()   {      double up= iIchimoku (NULL, 5,9,26,52,3,0);   double down= iIchimoku (NULL,5,9,26,52,4,0);      if (up && down < Bid  )      {...
Does anyone have an EA that places pending orders in trend lines, using the name and its position in object properties as a reference?
Hello, I do not know if the number of candles on the Limit variable is the number of candles on the chart or is there a different count.     {     int limit;     int counted_bars=IndicatorCounted();  //---- check for possible errors     if(counted_bars<0) return(-1);  //---- the last counted bar...
Does someone know how to create an external windows from EA?? like these pictures:  For now i use objectcreate to create object in the chart. I want to put my trading tools in an external windows. but i don't know what kind of thing i need to do this.   Thank you in advance.      
Cant download MT4 anymore. I went to download website and when i press on "DOWNLOAD MT4" at the end it automaticaly downloads MT5 platform and instals MT5.  So next thing was, i remebered that my old computer has MT4 so i turn on old PC, open MT4 and what i see is that MT4 does not show the right...
  DLL Hell (15   1 2)
We've all tried it.  There's something we want to do in a DLL but Metatrader is still stuck in the 19th century.  For my inquiry, I give you this: The EA: //+------------------------------------------------------------------+ //|                                                   MT4Exports.mq4 |...
  Newsprovider (3)
Hello I have a question. I use an Expert Advisor for DAX (GER 30) and I need a news filter for that but only for the big news that make a difference in the world like brexit or choice of American President. That´s the reason why I am looking for a news provider that I can build in my EA. If you know...
hi im very new to programming having only ever used quant a few times. i have created a fairly stable EA nothing spectacular but early backtesting shows very positive results.(extremely low drawdown) on the average spreads given by the broker 99% quality. I have 3 problems. Problem 1 ; during the...