Download MetaTrader 5

MQL4 and MetaTrader 4 - page 181

To post a new topic, please log in or register
Hello, in my EA I create a txt file in "File" directory. Now I want to execute this file for showing it in Notepad... can someone tell me how to do it? I searched a lot but didn't find anything about this. Thanks a lot Massy
Greetings Everyone, The Metatrader 4 was working perfectly until yesterday, i got this error message "Conexion failed" right down the window. I tried to reinstall it and create a new demo account, I tried to stop my antivirus but still not working, Btw my internet connection is very good.   Any one...
Hi all, Can you do it? class a {};class b : public a {  b(int i):this("explicit call")    {   }  b(string s)   {    str=s;   } }    
The following data is part of my 'log' file and represents data from a custom indicator. In this case the variable is on the 1 minute chart, last value (i.e. 0 )and 5 periods At 1 second past 15 minutes the variable changes (as expected) and remains the same throughout the fifteenth minute (as...
Hello, I wont to close an expert from the init() function in certain conditions. Is there a command, which can do it? It must be simple but I cannot figure out. Thank you!
Until the 1970's, and for the previous 100 years, the value of most currencies was tied in some way to the value of gold. In 1944 this "gold standard" was replaced by the Bretton Woods Agreement which valued the United States dollar against gold, and all other currencies against the US dollar. In...
Is it possible to add a custom text box or a dialog to the market watch panel in meta trader 4 or mt5 ?  
I never seen an EA trade like this so forgive me if this has already been made   I'm planning a ea based on the zigzag indicator, which opens a sell + closes buys after the last highest position and opens a buy + closes salls at lowest. If there is a new lowest after the first, it will open a new...
Sharing a great EA: Pick/get valiant rare mega-bubble points so far away from majority market noise points-> Sequence more Turning point with deepness/MTF. The code read 10% Day Move (20100 analysis per move). In near future will peruse a month tick by tick. The party is starting....
Hi Coders, Is it possible to get the type of the backtest model? I would like to know, weather it is working in Control Point mode or in Every Tick mode. Thank you in advance. Relative
Hi, Is there easier way to copy trend lines or fibs from one chart to another without doing the 'save template' function in MT4. For example I have 2 charts, one 15 min and the other 4 hour. I draw some trend, horizontals, fibs lines etc... on the H4 but I want my H4 analysis (some or all) to be...
Im trying to get the object OBJ_ARROW_THUMB_UP to appear every time the if condition is true when i test over a few days. Code as follows : input int MaPeriod = 200;input ENUM_MA_METHOD MaMethod = MODE_EMA;   input ENUM_APPLIED_PRICE MaPrice = PRICE_CLOSE;// OnTick() event...
Hi, can anyone help on this one?       Spent most of a day trying to get the value of  account balance before a trade and again afterwards. I want to see the amount of cash that the trade costs.       Still  trying to work out why the account balance has not altered. Code as below....
good day to you all! attached code is of a 10 period rolling window with linear descreasing weights. this is my first and very rudimentary step towards implementing an adaptive feature into EAs so that parameter values adapt to changing market conditions with weight on more recent data. however, it...
I want to trade the same EA on different currency pairs(charts) and it seems there is a conflict. I loaded my EA on EUR/USD and it placed an order, however it didn't place an order on GBP/USD when the entry condition was meet. Please how do i code the same EA to run independently of each other, so i...
Hi,  I would like to create an indicator with an arrow and a text of what the arrow means. Does anyone know how to do it? Or better still have a source code for an indicator that does it. THANKS.  Here is an example below.    
For example, if you use the functions "SymbolInfoInteger(Symbol(),SYMBOL_SWAP_ROLLOVER3DAYS)" and "MarketInfo(Symbol(),MODE_SWAPTYPE)", you'll get the integer that is not easy to understand.  Is there a existing function or an easy way to translate the integer back to the enum identifier or...
Hello,  I registered yesterday, but today the platform is blocked, it is not updated and at the bottom of the screen it appears "not connected" or " account not valid" ....what can I do? Thanks 
  BTC/USD (2)
Hey everyone my name is Freja. I am into cryptos and the evolution all finances. I am interested in using MQL4 with BTC/USD. I just downloaded and have been searching for guides but all guide i find in search are for MQL5 i think? Can anyone help me find a guide, i'll keep looking in the meantime.
Hi everyone, I am reading the MQL4 documentation online about how is structured MT4 and some mock codes of custom indicators and EA. I would like to know from someone more experienced than me if with my (good) C++ programming background I could learn MT4 style quickly. Of course I know that all...
Hi, I have a problem passing the current MqlRates to a C++ DLL. Here is what I have done so far: MQL #import "MQL.dll"double ihigh(MqlRates&[],int);#importMqlRates rates[];bool called = false;void OnTick(){   if(called == false)   {   ArrayCopyRates(rates,NULL,0);   called = true;...
Hello Mql Team, i have downloaded MT 5. In mt5 you see the MAMA ea and the MAPSAR expert advisor. I want ask you kindly:     Have you an recommdation, for which pair, or index or metal,  these ea`s , and on which timeframe,  these ea`s profitable working ?  How much must the account funding? 50$ or...
good day to you all :) following code is of a trading log function i have written, which writes a number of variables to a file. its all working good besides it writes each order over and over again by each new run of the loop. now i was kind of suspecting this to happen and wanted to come up with a...
Hi, How does one write a script that can apply an indicator onto a chart. I can set the initial parameters of the indicator from the script. Is this even possible ? Thanks.
  MQL4 first step (32   1 2 3 4)
Salute folks, A lot of reading has been going on and the tone is clear on doing the stuff yourself. I have never written a line of code in my life and desperately want to try and code my own basic EA. I have tried to read through the manual and start losing the plot halfway down a page each time...
Hi guys, I'm trying to debug my EA on history data and the option on the menu is always disabled. I see it works fine with real data. I already did the necessary setting under Tools -> Options -> Debug tab and the menu option is still grayed out. I found some old topics about this subject but they...
  close MT4 (2)
I could be overlooking this, but is there a setting in MT4 that gives the user a "are you sure?" question before closing MT4? Using RDP, I've closed MT4 a couple of times when I meant to close RDP. Yes, lot's of cursing... thanks.
Hi,  I am a little bit confused with the use of const inside a function, as an example below. The document says the following "The const specifier declares a variable as a constant, and does not allow to change this variable during runtime. A single initialization of a variable is allowed when...
Hi all i am new in with mql4 and i am learning to programming in this language. I want draw at time [i] the close value of Bar M5 at all hours 20 miinutes. Ie each H1 bar close i want draw  xx:20 (range xx:20-xx:24) M5 close bar. For example: Close bar H1 at 11:59 then mql4 draw close bar M5 11:20....
I refer to the sample given in the documentation. How are we meant to use OnCalculate? With the old "start" event, we have a for loop to calculate the indicator per bar, how do we do that here with OnCalculate?why are these arguments have an ampersand, e.g. &open[]? What is the difference with the...
1...174175176177178179180181182183184185186187188...1245