MQL4 and MetaTrader 4 - page 684

To post a new topic, please log in or register
Hi Guys, do you know a source where it is possible to download history-event-data (Forex-Calendar) of some years? Thanks in advance! Luke!
hi i have a simple ea and i would to add a thing for close order, this is fibonacci so i added the indicators and i would to close order if MAP (moving average with period 1) is near at least 8 pips to lower or high lines of fibonacci, so this is the initial part of intrested code //...other code...
I'm trying to show on a chart, an arrow for each open trade. However, I want it to appear at the open of the bar it occurred, and not at the actual OrderOpenPrice. I have a script (attached) that puts an arrow and price box at the OrderOpenTime (great), but puts it at the OrderOpenPrice. I want it...
Dear all By visual, we can easily identify that price runs in trend form, the high and low of every wave, and the direction of a wave. However, does anybody know, how to let EA to do it? Does any one has an idea on it? Thanks for your kind help! Wing
Hi guys, I'm a newbie (but have programmed before) so you will have to forgive me, I understand the concepts of the program types (EA, CI and Script) and their scope of operation (Every Tick, Every Tick, Attach to Symbol Window). Is there not a Program Type that can execute on say "Button Click" and...
Hi, I want to call another "indicator B" out of my "indicator A" Both are custom indicators. I don't want to get definite values, only that it shows this indicator. So I want to use no buffers from "indicator A". Perhaps it is possible through calling a script "show indicator B" out of my...
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
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
Dear all Does any one know how to teach EA to define consolidation? or if it is impossible, how to handle it if your system will generate signal in consolidation? Thanks for your reply in advance. Wing
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 ){}
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,...
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" //----...
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...
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...
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?
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...
  Silver Trend indicator (13   1 2)
Hi All, I had been evaluating trend indicators lately. Came across Stalin, Notarius and recently Silver Trend. Had done backtesting, and found that Silver Trend provides excellent results, with little losses on whipsaws but large winners on trends. The backtests (manual) were done on fx and...
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
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...
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);...
Anybody know who is a good trusted coder here. pls recommend me one. Thanks
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...
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 !
   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
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
  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