MQL4 and MetaTrader 4 - page 7

To post a new topic, please log in or register
Hi, I need some assistance on changing my order to enter a limit order "x" pips away, for example 5 pips away, if AUD/USD is .7255, buy limit would be .7250, or if Eur/usd was 1.1558, sell limit would be 1.1563 This is the current buy/sell Order code I have for instant execution but I want to change...
Hello everyone, I published a signal 3 weeks ago. Its showed in MYSIGNALS/PUBLIC for a while then suddenly disappeared. Its still showing in 'MYSIGNALS/ALL SIGNALS but not in PUBLIC.  I understand that the monthly growth was a bit high but when will this warning be removed so that it is available...
Hello everyone, I've been using MT4 on MAC and Windows for several years now. It runs well on both OS's, but since the MAC version is actually a virualized PC application through Wine, it has a couple of limitations compared to the pure Windows app. For example, on MAC you will not be able to access...
Hi All,  I am trying to do the following code: for(int z=0;z < OrdersTotal();z++) {      if(OrderSelect(z,SELECT_BY_POS,MODE_TRADES)==true) {        ....        int another_function = another_function(....) and then the another_function is defined by: int another_function(...) {for(int z=0;z <...
When I click "open chart" tab I am unable to see the entries and exits of my EA on the chart.  Can anyone kindly advise what I am doing wrong? Thanks,
how to draw V_Line on the chart according to the specific time For instance, I need to draw a vertical line on the chart when time is 6am, 6:30am, 7am,7:30am, ...12pm, 12:30pm thanks
For example,the EA places orders (using iCustom signal in one chart). order#1  buy  (EA ordered with signal of time frame M5)  ---iCustom(NULL,5,"indicator name",0,1) order#2  buy (EA ordered with signal of time frame H1)  ---iCustom(NULL,60,"indicator name",0,1) order#3  sell (EA ordered with...
Hi guys, I am looking to create a signal that is only visible to me and anyone else I share it with. Also, I wish the signal - even though on a real account - to be free rather than have the usual USD 30 fee. Is this possible? If so, how do I do this? Basically, I want to copy trades from a source...
How do I go about entering a Trailing ENTER order (short or long)?  I see the the trailing stop feature once the order is filled etc but if I want to set up a trailing entry order I don't see a function for this on the order tickets?  Thank-you!
I understand the basics of making an expert advisor and have seen some posts that mention that I should use iCustom function to access my indicator in an expert advisor, but it's not too clear. I want to make an expert advisor that takes a trade when the "X" and arrow appear at the same time, as in...
so I added a custom timeframe which is 90M timeframe, I used 30M chart and added the "period converter" script multiplied by 3. I added my EA and unchecked the offline checkmark on the properties of the chart so that my EA works. But every time a re-start my mt4, the offline 90M chart goes back to...
Can I run an Expert Advisor (EA) on multiple shares at the same time. So for example flag all stocks with RSI > 80% ?
I have an expert running on a GBPAUD chart. Its job is to open other charts and apply a template if certain criteria is met for other pairs. Occasionally it will open a chart for the same pair more than once, and so I run a check when each chart is open to close duplicate charts. The problem is that...
I've been trying to find an MT4 indicator that draws vertical lines at specific times that on mouseover shows a description of that line just like the default vertical line MT4 has. Thanks for any help someone might provide
If I use indicator buffers, they are always displayed on the chart. How can I NOT display them and still have their values calculated? I need only the values, but not the visible part, but I want still to use the indicator buffers because their size is handled automatically by MT4. For example, the...
Hi the market products are not showing in the mt4 market tab .. please see attached pic even though the MQL balance and all the other tabs including the Signals tab seem to still be functioning normally Any help / ideas very much appreciated 
Hey everyone, for an EA I can program that for example F7 key is called and the properties of the EA open. For a custom indicator I know I can open via the indicator's list or via double klick on a line or bollinger band or so. Is there a way to call a special key like F7 or programm a user defined...
Hello! I have just bought a system for forex-trading and so far it has performed well but there is one problem with it,it doesn´t do the trades it self so I have to sit by the computer alot and perform the buy- sell-orders myself.I have been trying to learn some programming but I realize that it...
I'm in high-frequency trading, because their VPS are more than 200, so he from the official website to buy a month VPS. Thought order speed will be faster, as a result, your order did not change fast. Discovered, after today, I replay the same platform, the same EA, the same signal, the official...
Hi All, Im rather new here and I want to create a simple system where I look at the high and low of the first 1 hour candle at a start time (in this case 9.00).  If after this first 1 hour the rate goes above the high, than sell. If it goes below the low than sell. What I did so far is the following...
Hi, sir I are not familiar with English.Please understand me  ------------------------------------------------------------  I want to ordermodify at Specific time for example evry four hour,, in other word,, evry new H4 candle,,   Hour() = 4, 8, 12, 16, 20, 0.   When i use the function Hour() ,  can...
  Dinamic TP (2)
Hi! Does anyone know a math formula to calculate a dinamic TP based on SL distance. The smaller the SL-the bigger TP and the bigger SL-the smaller TP?
I have found a indicator on this website which provides previous day (or week / /month) high and low prices.  I want to use this as the basis of creating my own EA to place buystops and sellstops at the previous day high and low.   Link: https://www.mql5.com/en/code/14410 I can see the code I want...
Hi i was trying to solve this problem with service desk but they redirected me here.. so i dont know who is in charge of signalls sellers but i need help. Recently i decided i will start selling my signals so i choosed one of my old ECn icmarket account and i started trading there according to...
Hi, I am trying to read from history file using an EA, but I encountered a problem with a certain broker, in which the symbol names end in [..r], i.e: EURUSD..r When I try to use the FileOpenHistory function with this filename, I receive an error 4101 - Wrong File Name. On any other broker with...
int liveAccountNumber = 535621;int liveAccountNumber2 = 737213;if(( AccountNumber() liveAccountNumber) && ( AccountNumber() liveAccountNumber2)) Hello, I am trying to do in this way but it is not working for the second or multiple account number. I want to get a code that will allow my EA only for...
Hello, this should be a trivial, but unfortunately I can not find it anywhere.I would like to obtain a MovingAverage of some indicator, for example Stoch(5,3,3). How can it by done? double stoch1 = iStochastic(Symbol(), Period(),5,3,2, MODE_SMA,0,MODE_MAIN,shift); double stochEMA1 = iMA(symbol,...
  Mandarine EAs mods (620   1 2 3 4 5 ... 61 62)
Another Mandrine mod, this time just using regular Mandrine indicator setup, but if you choose you can filter your trades using fibs, the fibs draw on your chart automatically when Mandrine installed, they will be there whether you use them as filter or not, and if you do use them if the ma's cross...
Strategy Tester no longer works after my broker recently changed its live server from GMT-5 to GMT+2. I've been having to switch back and forth to the old GMT-5 server to test, but that server now has completely gone away, and I have no means to test my EA. Please note that I am not talking about...
Hello  I have a problem. I don't know why there occurs memory leak. I made class Ticket.mqh and TicketList.mqh(Vector) It is made for a convenient order. The destructor also work properly. But error of memory leak  occurs. I'm using two class and some objects (Label) This below of code is related...