MQL4 and MetaTrader 4 - page 799

  Organizing Class's  (11   1 2)
hey, my programs are starting to get awfully long, I'm trying to keep everything nice and simple by using big spacing between sections and lots of comments. but is there a way you can have different classes on different pages (and perhaps even have different groups of classes in their own folder)...
I did not find any relevant information in documentation on this site. The question is about difference between those chart windows: and about the property in those chart Properties: I noticed, that if I change this property manually, nothing happens until I restart the terminal. Another...
Raised with ServiceDesk - posted here for visibility (just in case someone is hunting down memory leaks). If there is error in my test case please let me know :) // Singleton Object reported leaked but is only allocated exactly once and deleted exactly once... #property strictclass Singleton {...
Hi, I have Expert advisor, that creates some label object in init(). I noticed that adding EA on chart causes MetaTrader4 to store chart profile on disk, but it happens before my object is created, so created object data is not stored in chart profile. I need to readd EA again, change profile or...
hi, Im new to the world of EA's and was wondering if someone will be able to steer me in the right direction or even write it for me? The rules are: On the 15min chart any pair -If there is a candle that closes higher then open but only buy 2 or more pips difference (bull), only if it appear after...
[Deleted]
Last year was my first year trading Forex. I had 1220 transactions. In my EA each signal kicked off 4 to 5 trades. I downloaded the trade transaction data from my broker and then purchased an after market product that I thought would convert this data into a TXF file for import into TurboTax. In...
  Commission Info  (1)
Hello, is it possible to get the info abouth commission before a order is open? I know there is a function OrderCommission() with which you can get the value, but when you have no order open, is it also possible to get this info before you open a order?
[Deleted]
  What does Point Size mean?  (11   1 2)
I actually want to send an order with predefined exakt stop and limit levels. OrderSend(Symbol(),OP_BUY,Lotsize,Ask,3,Bid-Stopdist*Point,Ask+Limitdist*Point,0,Green); This is what you find in the documentation.. I havent found the meaning of the above "Point". What is a Point Size of a currency? I'd...
i am a newbie to mql4, so please need some help now, as i said above, How to create a indicator buffer which will draw a chart of the gap between previous candles close and current candles open price?
[Deleted]
installed mt4 from instaforex on my new windows tablet. the app was immediately updated to build 610. copied a customer indicator as usual to folder experts>indicators. but the new indicator doesnt show up in mt4. as always, you close and reopen mt4 after copying the file into the mentioned...
Buenas tardes Podría alguien por favor decirme porque cuando quiero descargar datos del centro de historiales de mt4, me aparecen los errores mencionados abajo y como podría solucionarlos. En asistencia al cliente de alpari y de fxcm no me dan ninguna solución.. Yo estoy sospechando que la nueva
Hi, On my VPS I installed the Windows updates and after re-start (only) 1 terminal (out of 6) was NOT started by my script. 1) I went into the folder and tried to start it my self but nothing ?? 2) I tried to start it from console (in its folder): terminal.exe (sz 7,791 kB dtd 14.02.2014), with...
[Deleted]
Hi,I've hust registered in MQL4 and i want to ask if somebody khows,an indicator that shows the distance between the price and Moving averages on the chart in real time. It would be very helpful to me,because i try to follow 5 to 6 Currency pairs,and i cannot to remember all the data for all of...
  fibo levels + %$  (5)
Hello A question about Fibonacci tools tips. On this snapshot, under green ellipse there are fibo levels and under red rectangle there are prices ----------------------------------- In fibo retracement tool when you add %$ in Fibo \ Fibo Levels \ Description as shown in...
[Deleted]
[My issue is that I can't get a response from Don or Forexrobottrader support regarding the hard-coded EA 's that get automatically sent out from their web site. I've bought and use several of their EA's successfully - the Equity trail with the new Fractal Pterodactyl works really well - but the...
[Deleted]
Hi Everyone, I'm trying to create a label with a light blue background and black writing. I want to do this so the writing stands out more. I've tried to use the OBJPROP_BGCOLOR with both ObjectSet and ObjectSetInteger but the ID seems to have no effect on the label. Any suggestions would be...
  QUESTION - File Function  (16   1 2)
I am using FileOpen(filename,FILE_BIN|FILE_WRITE ) to write EA produced data to a file in files folder and is automatically updated as data values change. Then use FileOpen(filename,FILE_BIN|FILE_READ ) in an Indicator to use this data. This works great. The problem is when using the Strategy Tester...
Raised on Service Desk EDIT: Posted here for visibility. // Dynamic Array of objects is leaked. #property strictclass MyClass {};MyClass array[2];MyClass single;int OnInit()  {   return(INIT_SUCCEEDED);  }void OnDeinit(const int reason)  {  }void OnTick()  {  } Output: 2:15:36 Expert static2 EURUSD...
I follow (or better followed as I was automatically unsubscribed) Johnpaul77 https://www.mql5.com/en/signals/30745 Today he opened a position NQH4 which apparently is not supported by my broker. My journal shows: 2014.03.14 16:11:12.755 '2100017921': Signal - subscription disabled 2014.03.14
  iBarShift issue  (3)
Build 216. Is it normal that an exact iBarShift to return a bar number even if it's not there? I am looking for a specific date, something @14:45 for instance, on the H1, with exact=true, and it returns a bar number on H1, though all hourly bars begin @:00 . Is that normal or is a bug? I had to...
Hello to you all. A newbie but very keen to learn. I have some indicators and experts I wish to add to mt MT4 but although doing it all as I should they are not coming up when program is opened. They show up in the programs folders as they should do but nowhere to be found in MT4. I must be doing
[Deleted]
Hello, I wonder what is mean "start of the day" in the trading between two defined hours and trade only once. Assumption: 1. GMT 2. start trading at 7 am and stop at 9 am. Definition of "start trading day" should be: now=TimeCurrent(); x=now-now%86400; or x=now-now%25200; Thank you.
1) Attempting to hide a focused editbox (standard library) will not work. Furthermore, the object will be visible even if the dialog window in which is located is minimized. 2) Pretty often, double clicking a label will put it in a selected status. It can be moved by mouse (though it jumps back to...
What would happen if send NULL under sl in an ordersend command
Hi coders! I wrote a DLL function in Delphi. This code only return a PChar text to the ex4. ibrary get_text; uses SysUtils, Math, idHttp; {$R *.res} var function get_text(): PChar; stdcall; begin result := PChar('Hello world!'); end; exports get_text; begin end. My MQ4 code: #import
No matter what I do, when I change the width from 2 to 3 in the setindexstyle, when I open the indicator on a chart, it sets all inputs to zero. Yet when the index are set as 1 and 2 respectively, everything loads. This frustrating because everytime I change timeframe, it resets all the heiken ashi...
Hi, If I search (Ctrl-f) a string and cklick again and again Find-Next it could happen that the code is moved to the side to show the string in the editor window - some what in the middle (right-left). If now after Find-Next the string is again at the beginning of a line the code is not move back...
[Deleted]
  London Break-out  (30   1 2 3)
Dear forum members, Since a few weeks I am trying to get ahead with MQL4, but what a challenge!! I was hoping I would be an expert already! but I am not and I hoping to get a little bit of help. I am trying to build an breakout Expert advisor for the London opening session. I want my expert advisor
Just in case anyone is playing with Singletons in MQL4++ and failing (like me), I've reported the following at the service desk (Fairly sure it's a compiler bug...) EDIT: Posted here for visibility to other developers. Will update thread when fixed. // This expert demonstrates that static members...