Download MetaTrader 5

MQL4 and MetaTrader 4 - page 569

To post a new topic, please log in or register
I have been searchingthe MT4 forums & database to find a way to automatically generate magicnumbers but to be able to do it easily and still be able to track orders afterMT4 closes or your EA is compiled. This should work no matter what if for anexample there two orders of the same: currency pair...
I'm sure someone else probably asked this question already but i cant seem to find an answer.. is there some command i can use (eg. int indicator.CCI.Value1 ) to get output values from a given indicator? right now I modify the indicator to export the values to a txt and then have my EA read the txt,...
Hi, I am new to MetaTrader and was wondering if it's easy to create a script to close all open positions at a certain time - and if possible to activate this as some form as script when I am away from my PC. Using MetaTrader with FXCM if this helps. Any help greatly appreciated. Many thanks, Nick
//+------------------------------------------------------------------+//|                                                         연습.mq4 |//|                        Copyright 2012, MetaQuotes Software Corp. |//|                                        https://www.metaquotes.net...
Anyone can comment the use of ARIMA & ARMA indicators? ARIMA: http://en.wikipedia.org/wiki/Autoregressive_integrated_moving_average ARMA: http://en.wikipedia.org/wiki/Autoregressive_moving_average
Hi, When I delete or update the Prices Alert for to notify me for buy or sell. It is not working. when I closed and restart the metatrader the old info well show again. Pls help me to solve this problem.
Hi guys, I have tried to find an offline chart like constant range bar, but in this specific case, I like to make an offline chart, so that each candle consist of defined constant volume(ticks). Unfortunately the s-Constant Range Bars.mq4 file was very complex and its indexes was not clear in order...
OrderSend(Symbol(),OP_BUYLIMIT,startVolume,Ask+ strategySelectMovement*pip,0, 0,Ask+strategySelectMovement+ martingaleTakeProfit*pip); Here is the code im using, if i change OP_BUYLIMIT to OP_BUY (changing ask to market) the strategy works fine, however it wont let me do it with a limit. There is no...
Many of the Russian mgl files uses a description text language that can not be translated into English by Google Translate or Yahoo Babel Fish. Here is an example: string PuthTerminal    = TerminalPath()+"\experts\files";                  //Ïóòü ê òåðìèíàëó    string FileOptim       = "optimise...
Hola a todos, no se ingles asi que espero que alguien que hable español, me pueda ayudar. Veran, no se porque pero no puedo nunca ver bien los numeros de los precios, solo puedo ver 2 o 3, pero no la cifra completa, he intentado de todo, pero nada, aca les muestro una imagen [URL=http://imageshack...
I thought for sure it was a problem with each line needing a unique name so I used a for loop to change a part of it each time. But it doesn't work. I want it to show a vertical line every time the stochastic crosses. This is my code for it. I'm thinking I need some kind of array to store the...
Can anybody post a code example of an indicator that paint bars, like Metatrade does? If Close(i+1)>Close(i) blue bars If Close(i+1)<Close(i) red bars Thanks
I found EA on the net that places 5 buy and sell pending orders at 20 pip intervals. I dragged it on the chart and there is smiley face but for some reason it is not working. Unfortunately I am not a coder and I don't understand what's wrong with it. Maybe someone is interested and could have a look...
Francois Tremblay
  news.dat (3)
Hi everyone, I can't find the file news.dat in my history folder anymore. I used to see it some months ago. Does anyone know if Metaquotes has changed something and that we don't have access to the file anymore. Thanks Cheers
my dll is not under ........\expert\libraries\ folder, may i import it like this #import "E:\dlls\hhhh.dll" if can do this maner,will the ea run slowly,or not accurate ? thanks
Still working towards a comprehensive. long term traditional Trading Journal. I'm wondering if there is any way in MQL4 to utilize the widely used and standardized 'Tags' to save the EA Name, Version Number and Set File (info) that many such apps including Windows itself can directly access?
Has anybody ever run into this before, I searched the forums but nothing came up. Any help is appreciated. Thanks.
  About EUR/USD (2)
Hello, please give me some informations about EUR/USD. I want to know where is the end of this rally, EUR/USD now running about 1.30070, I want to know probably where will be the end, 1.31 or 1.32... I can not understand, please give me some idea, I will remain grateful to you. Thank you.
Hello, i created an Expert Advisor for an offline chart that looks like the following code: int init() { start(); return(0); } int start() { while (!IsStopped()) { RefreshRates(); //execution code Sleep(1000); //print each 5 mins a message "i am alive"...
Is there any mql4 to C translator? Thanks!!
Hi, I have EA applied on each chart, and I have 24 pairs of charts running at anyone time. EA on each chart has successfully triggered orders accordingly. However, I notice that not all charts fire my EA. Somehow a few charts simply do not fire the EA at certain time, and I have no idea why it...
I am trying to find out how to efficiently deal with matrix multiplication and matrix inversion in MQL4 but I have no idea where to begin. I have minor programming background, mostly SAS, R, MATLAB, C++ and python. If anybody could point me in the right direction or if any scripts exist to deal with...
int barcount;        bool closebuy = false;        bool closesell = false;                //Process calculations only once per bar        barcount = GlobalVariableGet("BAR_"+Symbol());                if (barcount!=iBarShift(NULL,0,0))     {        barcount=iBarShift(NULL,0...
  everytime loss (13   1 2)
dear friends i m playing forex but im everytime loss why please how to cover loss please guide me thank yo
Hello boys, Just curious, is there any tool readiy available out there to construct time series, or plot the value of Portfolio Equity as a line chart? So that you can visualise it better, i.e. plotting Equity/Balance instead of pairs. I would think this cannot be done in a pair MT4 window, as...
Hi, I am new to FIX Messages and Meta Trader and Meta Server. I've a doubt in FIX to Meta Server. Is there any possibilities to connect my FIX Client to Meta server? Thanks & Regards Dhilip R
I have a problem when programming an MT4 Expert Advisor. The "OrderSend" function works in the strategy tester but not on the live account... Why ? Need a magic number in the order ? Need to add a comment ? Need to open the order and then after set stop Loss / take profit (really not safe) ?...
Hi All, I have an EA that needs to be configured with "Allow DLL imports". I can either set this every time I attach this EA (that is annoying) to the chart or set it by default - but it will affect all other EAs. Is there any way to set defaults for particular EA only? Thanks in advance, Michael
Hello I'm very new to MQL4 programming but I have a lot of experience in programming I started with the most simple program to get a first feel of how things work. init() function is being called but start() function is never called This is my code: #property copyright "talfink" #property link...
I am currently studying how to code MQL4 though am not a programmer. My aim is to build a simple EA based on crossover of 5 and 8 EMA settings. Crossover to the upside opens buy positions, while to the downside closes the buy positions and opens sell positions automatically. It should be able to...