MQL4 and MetaTrader 4 - page 1056

Dear all Does anybody know, when an order is created after last spread is issued by the broker, that last or next spread will be used by this order? Wing
[Deleted]
Hi Guys, does anyone know if there is a professional data feed I can use with MT4 instead of the usual broker feeds which are inherently inaccurate? Many Thanks Sensi
[Deleted]
  Question on neural network programming  (63   1 2 3 4 5 6 7)
Good time everyone! I have a question about programming . I would like to know what data is fed to the inputs of a neural network to predict the closing price of a bar. If possible, give an example of code for calculations. Who, what formulas do they use for calculations? There are a couple of
Hi there, I understand that the command Sleep () does not work in MT4 script. Can I use the following to make the delay? int _time_waiting=0;   _time_waiting = TimeLocal() + 30; // the pause ends in 30 seconds after the current local timewhile ( TimeLocal() < _time_waiting ){}
[Deleted]
Hello I have a problem. I want to close all open orders at a time but takes longer than 5 minutes to close them. Usually more than 50 orders simultaneously. This is the code I'm using to close: OrdersTotal iOrdersTotal1 = int (); for (int i1 = iOrdersTotal1-1, i1> = 0, i1 -) { OrderSelect (i1,...
[Deleted]
Hello all, I am in the process of writing a script that gets user input from an external application. My understanding is that to do this I Have to send the external application's edit control a WM_GETTEXT message. I found the following lines in the WinUser32.mqh file: #import "user32.dll" //----...
[Deleted]
Dear All, I've found what they call it BSP indicator, but I didn't found it in MQ4 format till now. Kindly help me to implement that concept for MT4. The associated mathematical formula for BSP is as following: Buy Pressure = Buy Volume / (Buy Volume + Sell Volume) and Sell Pressure = Sell Volume /...
Dear all I found my Metaeditor stopped running in these days and I want to reinstall MT4 in my computer but I don't know how to keep the historical data. As you know, when you reinstall MT4, all daily data from the charts which was downloaded day by day before may not be resumed after you reinstall...
[Deleted]
Tools > History Centre > EURUSD > 1 Minute(M1) "Warning - you are going to download data from the MetaQuotes SOftware Corp. but your account is with Alpari"... Have historical data back to 17th April. Feb and March data is missing and data again the 13 Jan back? Tried to delete historical data in...
[Deleted]
Hello, I would like to trade with the Symbol GER30 (German DAX) and contracts. Question: What is one lot and how to convert it into contracts?
[Deleted]
Hi there! This is probably easy for you, but I don't see my mistake. So I would be glad if you could give me some relief! :) In short: I open a position: int ticket = OrderSend(Symbol(),OP_BUY,10,Ask,5,Ask-10,Ask+10,"Long Order",1234,0,Green); i want to close this position: OrderClose(ticket,10,Bid...
Hello, does anybody have an idea how to rename those displayed name of the account in MT4 like its shown on the attached screenshot? You often have a lot of accounts and if they are registered on your name you can distinguish only by the id numbers ... THX haemse
[Deleted]
Hi I'd like to show you a snippet which constantly gives me the 4002 error. Which means, if I comment this function out (obviously without the Print() function ;) ), the error disappears. What the code does: it calculates the average of the trueranges of the last 20 days. double truerange[20];double...
[Deleted]
I have a lot of pending orders working in a EA. My free margin is about to be exhaustedand the market is moving fast, I cannot figure out how to delete these pendingorders. Please, can someone help me. Note that time is of the essence. Thank you in advance, George
  am i missing something?  (12   1 2)
i created my 1st indicator, and it doesnt seem to work at all, i think i am missing something or dunno may be many things. can some one say me wat is wrong with this code? double ExtGreenBuffer[];int init()  {   IndicatorBuffers(1);   IndicatorDigits(5);   SetIndexDrawBegin(0,34);...
[Deleted]
Anybody know who is a good trusted coder here. pls recommend me one. Thanks
Skype: dmitryfilini The strategies are not bad :) I traded on my own, the result is not bad. I made $200 for one of them out of $7... I withdrew 100, and I lost the rest because of my emotions and impatience. That is why I would like to create an EA . I think it would be unfair if the EA itself paid
Hi Guys, I want to code an Ea that could close all open trades at once, with closing conditions as soon as the Sum of profits and losses is positive. There are many articles in the web that offers codes, scripts or EA in order to close trades at profit. But these codes are to close opened trades...
[Deleted]
Help! I have an EA written in MQL4. It is attached to one currency/chart window, but actually performs automatic trades in 6 different currency pairs. My problem is with 2 lines of code: // get 5-minute moving averages: current and 4 periods ago// the +1 offset for the Shift argument was determined...
We use "Bid" to get the current bid price of every quote So, How to get the previous bid price ? Thanks for your guide !
[Deleted]
   NormalizeDouble(1.49999990, 0) = 1.00000000   NormalizeDouble(1.49999991, 0) = 2.00000000 thank you, MetaQuotes. btw: this bug is far from new, they know it and they just don't care
[Deleted]
Hello there! I'm quite new to this language, but not new to programming at all. And I really like the language! :) But now I got a problem...I hope you can help me! high20 = High[iHighest(NULL,PERIOD_D1,MODE_HIGH,20,0)]; What I expect from this snippet: I returns me the highest value of the stock...
i want to calculate the sum of an array,is there this fuction ?thanks
[Deleted]
  Live Update  (2)
I need to do a MetaTrader 4 Live update. They have a bunch of custom charts, indicators and a layout I'd like to preserve into the new version. How is this done? Thank you
  Bar time  (5)
double h = High[1]; int t = Time[1]; MessageBox("H=" + h + ", t=" + t); The above returns the correct high for bar 1 but the time returnedis 13335535200. What is the correct way of retrieving the bar time?
Dear colleagues. I would like to offer you MetaTrader 4 API for .Net. This is application programming interface to remote control MetaTrader 4 terminal via TCP/IP from .Net applications. You can download demo version from mtapi4.net. More information you can get via email: v.demydiuk@gmail.com
[Deleted]
This chart was working fine before but for some reason when I scroll to the live edge all price action candles are not visible?! I have tried removing all indicators and the problem persists. All other charts are working fine, this problem is only affecting the EURUSD 15 minute. Does anyone know how...
can some tell me what does this mean in the journal
Hi, I need a EA to output a record into text file when opening a trade. Does anyone know how to make it? regards,thanks
[Deleted]
I want to risk 25% of my equity, So I want to find out how much lots I need to buy. Equity() = $9000. Risk = $9000*0.25 = $2250 I want to use a 20 pip stop. So I calculate Risk/stop(in pips) = $2250/20 = $112.5. This is where I THINK my confusion is: I have a mini-account on a 3/5 digit quoting...