Download MetaTrader 5

MQL4 and MetaTrader 4 - page 244

To post a new topic, please log in or register
I need help with a formula for an expert adviser that I am creating. I need to earn $17.00 from an increase of 8 Pips.   In a recent trade, I lost $12.17 by loosing 6.12 Pips trading a volume of 80000 units. What volume do I need to purchase to earn exactly $15.00 from a Pip gain of 8 Pips?
I prepared simple script, which prints the open time of current M1 candles for 3 symbols: #property strict//---void OnStart()  {//---   string   CurrPair[3]={"EURUSD","EURGBP","EURJPY"};   datetime CurrTime[3];   datetime TimeArr[1];//---   for(int i=0;i<3;i++)     {      if(CopyTime(CurrPair[i]...
Hello all, Newbie here, I am trying to study MQL using the link https://book.mql4.com/. Seems that the web server keeps blacklisting my ip address. When I switch to my mobile Internet connection, it works, using my office connection works as well. I get a 403 Error with the details in Cyrillic,any...
my account got lost all the trading history and not loaded since this morning please fix the bug thx please email me so i can send u my account id.
Candlesticks appears as bar-lines, whereas set nicely as candlesticks by myself. tried several times on settings.
Does any one can tell: What are differences among OnCalculate(), start()  and OnStart()? How to get prev_calculated value in start() function? Cheers
i am interested in investigating on how news effect on Forex. Do You know any web site (such as forex factory) providing historical data on news relating to economic indicators where we can directly download the figures of economic indicators like, NFP from about 2007 on wards?
Has anyone got the solution to the "ftp STOR command failed" error when using publisher in metatrader.
Hi, What I'd like to do is be able to tell what my account balance is at a certain time in the day. I'm trying out a strategy that has numerous positions open at once. As I am at work all day I'd like to be able to come home and open a log and see what my equity was at a given point in the day. Is...
Every time I create a new EA,Script,etc using the MQL4 Wizard I have to type in my name in the Author Section and my link in the Link Section. I was wondering if there is a way of changing the default author and link in the MQL4 Wizard so my information is there every time I create something.
Is there any code, function or something which is able to return Account Balance of an specific time? For example at the beginning of the day.
I'm experiencing that MarketInfo(Symbol(),MODE_LOTSIZE)  and SymbolInfoDouble(Symbol(),SYMBOL_TRADE_CONTRACT_SIZE) gives me wrong value for some markets. Currently I am using a demo account on pipindex and on their page (http://www.pipindex.com/trading-conditions-commodities.html) I can read that...
  open orders with 10pip gap (62   1 2 3 4 5 6 7)
please help me with handy code to open position and open another one after 10pips.thanks see what i have tried but no success with the code please help if( ma1 > Ask + (10*Point)&& CurrentTime != Time[1])  {      Opn_B=true;     }
Hi, When you hoover a stop loss line you get the "stop loss profit" (see image). Is there a way to calculate this or a built in function to get this? The prupose is to verify that an order got the correct stop loss (so it doesn't risk too much of the trading capital).    BR Michael 
Hi all I just downloaded  the latest version of MetaTrader 4  and have found I cannot  create a new account! I go through Demo account set up, add all my personal information into all of the appropriate fields and I get stuck  on this page (see attachment). I have tried using UK information as well...
Hello there, Im having a bit of trouble here: double Read_File(int i)    {       int handle=FileOpen(Archivo_Historical(),FILE_READ|FILE_CSV);       while(Time[i]!=FileReadString(handle) && !FileIsEnding(handle))          FileReadString(handle);       int valor=StrToDouble(FileReadString(handle));...
hello friens i try to calculate volume with ima on array but i have a some problem.   if i use long type then error "parameter conversion not allowed".  if i use double type then ea is not work completely double  volume_ima[];double  volume[];     ----> if i use long type arrey then  "parameter...
Hi I  am trying to write a expert advisor code that will open a new trade in the same direction as the previous if it was profitable and change direction if it was not. Any ideas on how to do this?  Thanks 
Hercules van Wyk
Dear Sirs, Could you please tell me why my platform throws out this message and as a result slows down my Platform to such an extend that it is almost impossible to trade? I have changed the EA for the conversion without any improvement and yet the same EAs run perfectly on other currencies - only...
Hello,   I've been using the metaquotes-demo server.   It looks like volume is messed up on it right now.   Can someone investigate this?   Reset the server or fix the problem, please!! thanks! TBB 
Hi,   I am looking for a consistent profiting EA, can anyone recommend? I search the internet and there are many websites on EA and I am not sure which EA is really consistently profitable.   Regards 
Thomas Ikegwu
Hey Guys, hope you're all doing great? I've a promising softwares written in MQL5. However, I need programmer who can use tools written in MQL4 Language customize it into simplified MQL5 Platform Mode with indicators and expert adviser. This may be easy for experienced programmer, the MQL4 language...
I have tried to print from a EA and only get duplicate timestamps and the last 19 minutes of a day. Why is this? I have attached the code and the settings I use in the ST as well as part of the output. Also I have exported data from the history center which looks good and is second accurate and...
Please tell me how to select order opened with highest price thanks
  I'm new (1)
I am new to this software.  I accidentally made some changes to my MQL4 software.  How do I reset the software so it's the same as I downloaded it?  
Hi Guys!  Since I'm very bad at programming, I decided to sign up here and ask you for help. What line do I have to add in an expert advisor (or what possibility do I have) to achieve, that it opens only ONE trade per crossover. It should not open a new trade as soon as the old one closes. Thanks in...
Hello house, my name Lucky (I hope I get Lucky with my humble request I have been  trying out a lot of things in forex. At the moment I am experimenting with CCI and I would like to build an EA (based on CCI using the iCustom function. I would really appreciate it if someone could help me out....
Hello MQL community,   I am trying to adjust the script PeriodConverter that is included in MT4 samples, to use multiple timeframe periods in one conversion script. The modified script works partially, but the modified part isn't updating on chart as original does. With this script can be generated...
Has anybody idea how to loss no more than 30% on global forex markets and earn more than 50% during one year? I would like to loss no more than 2% of the capital on single entrance with 15 entrances on whole year. Any MQL4 experience?
New article Plotting trend lines based on fractals using MQL4 and MQL5 has been published on mql5.com: The article describes the automation of trend lines plotting based on the Fractals indicator using MQL4 and MQL5. The article structure provides a comparative view of the solution for two languages...