Download MetaTrader 5

MQL4 and MetaTrader 4 - page 331

To post a new topic, please log in or register
Hi all, Is there no way to change symbol names in mt4?. If i want to import historical data diferent to forex pairs i can't find the way to change or create new symbols names, i'm trying to use mt4 to backtest other products, for instance, importing futures data. Is there a way to add or change...
What is the difference Between Indicator and EA ?
Hello. Hope somebody want  help me.  I have updated my pc from Windows XP to Windows 7 , and reinstalled the Metatrader 4. After that, I moved my experts and indicators to the correct folders (my experts in the folder MQL4 > Experts and my indicators in the folder MQL4>Indicators), but when I launch...
Hello, i am looking for a private lessons in mql4/5, online classes, maybe by skype or something similar. i can study alone, but i think that i spend too much time to find answer for any tiny error that can happend. i preefer spanish, but english is ok. Greetings from Chile
Hello, i need a script to save the data of candles marked by vertical lines as csv or html , can anyone help ? :| , or is there any script can do that?
How to export data in some data type before stop EA ? When start EA again ,how to import data back ? Thank you
We have coded expert advisor with dll. This EA can post all your orders with SL and TP from MetaTrader 4 to your Twitter with delay about 1 sec. (you can increase delay), you also can post profit with with a given frequency ( 1 time per week for example). 1) Open file run.bat with any text editor...
Hi, I am learning to use an array of the structure data type.  Specifically, to accessthe multiple dot-notated variables' from the structure array .   I can declare a structure, list thevariables, assign data to those dot-notated variables, declarean array from the structure data type, assign the...
In this MQL4 source code, we see dots in variable names, e.g.: extern bool    ShutDown.NOW=False; However, when I compile the code, the compiler expects a semicolon where there is a dot above.  A similar question has been asked and the replies made it seem that a dot could be part of a variable name...
I've found from other forum with the below script to identify whether the Zigzag pointing UP or DOWN. However, the below script has discrepancy with the original Zigzag indi. What I would like to have is to identify the current direction of the original Zigzag indi to execute Buy or Sell & close...
Hi, This is my first time customising my own indicator and I have a problem that I hope some seniors may help me with. The problem I have now is my indicator's line graph won't draw properly because some values (outliers?) are astronomically high when compared to the rest. The result of this is, the...
New article Upgrade to MetaTrader 4 Build 600 and Higher has been published: On February 3, 2014 we released the new MetaTrader 4 build 600 with the completely revised MQL4 language and access to the Market of applications. In addition to the updated MQL4 language for programming trading strategies,...
 i hope change MultiTerminal StopLoss and TakeProfit from price to pips change pips  easy change price trouble
Hey MT4 World...  Hoping someone can help with a problem...  I have an EA running with about eighty variables... When I open MetaEditor and update just ONE or TWO variables in my EA - and then save/compile...  And then open MetaTrader - and click on Expert Adviser -> Properties -> I see the...
I would like help in doing a project please as subject to help speed things up when trading please.
I heard MT4 was portable, so I recently downloaded MT4 onto my external so that I can work on code while I'm not on my home desktop. I can access the terminal and charts fine, but I can't access meta editor. Pressing f4/clicking on it in the terminal doesn't bring anything up, and if I try to open...
Hi, I would like to count every tick for each 10 last bars (with the current bar) in PERIOD_M1. How to do it using MQL syntax ? I would like to get the following results: bar 0 (ticks counted: for example 25) bar 1 (ticks counted: 58) bar 2 (ticks counted: 28) bar 3 (ticks counted: 37) bar 4 (ticks...
Hello I can't seem to find an explanation via the help icon so I thought I would ask here. Please could somebody tell me what the variable inputs mean as shown in this picture:       Are the values in percentage terms? What exactly is MaxEARisk? is it risk per trade or risk per all opened trades? Is...
I havethese 2 Ea´s, one for H1 other for H4, both of them will place a market order (if trading conditions are met) at the end of the H1 and H4 candle respectively. The changeI would like to have done is : I would like the EA´s to wait X seconds beforeplacing the orders ( there should be an user...
Getting an error "OrderStopLoss' I-value required. I cannot find this error in any definitions.  Can someone point me in the right direction.  
Hi PLEASE can anyone teach how to use this Indicator ?
Hello,   I am in China and use MT4 for andriod to trade usually, yesterday i unloaded the software and reinstall it today then met a problem - i cannot select any servers! Could you help check this problem? my version of andriod is 4.3. thanks.  
I have written an EA which takes trade positions (buy/sell) on bar openings. Suppose the EA is attached to a chart of H1 time-frame, the the EA will make trading decision on the opening of a new bar (i.e. every hour), and if the decision is a go, it does the trade (either buy or sell). You can have...
Hi everybody, I don't know if someone else has the same problem I have. The day before yesterday I've updated my PC from Windows XP Home edition to Windows 8.1, and I've formatted my hard disk. Then, I've reinstalled my MT4 platform (the broker is FORMULA FX), and I've put my EAs into "Formula FX...
Hi, Is this possible to add list/combo box as extern variable? if yes how to add? pls. see image i attached here.
Hi All, I am new to coding (never done this before) but want to realize my own trading strategy. The system should send a buy order each bar (at open price) for a number of periods that is equal to an moving average used. After this the EA should close the first (oldest) order in the next period ans...
Hello friends,   I am developing a strategy, where i want to use an auto lot configuration, but not based on Stop loss or take profit, i want that the code uses a lot size that is a % of the total balance, for example:    If i have10.000 USD balance in the account and i setup the percentage of...
Hi, I'm facing a strange issue. I have a "Flag" order, a Pending order (OP_BUYLIMIT / OP_SELLLIMIT) with a specific comment. This order, could be triggered when market moves very quick, and my CloseOrders function closes this "triggered flag order", by checking with its OrderType, OP_BUY / OP_SELL....
Hi, This simple routine gives me an output of the latest tick every 5 seconds.  But I've found that if I don't use RefreshRates() before Bid, the routine just repeats the first value received.  Is this the right way to ensure that I get a new value every time Bid is accessed? for (n = 1; n <= 10;...
No answers, very expert peple indeed!!!