MQL4 and MetaTrader 4 - page 610

Dear Friends and Traders.. I've doubt in my Price alert indicator. It alerts on every incoming tick.. but i like to get alert on every 3 seconds.. the every incoming tick alert is annoying. Please guide me
Hi, I making an EA and on that EA I need 3 EMAs displayed on the chart, with different colors. So I have  tried to use ICustom (my topic) and after some suggestions I'm trying to load the template that I have made. I have template on "C:\Users\...\MetaTrader - Install\profiles\templates" and...
Over time, I've experimented with several techniques to reliably and quickly detect whether the terminal is connected and history updated, but they all fall short under certain circumstances. I'm specifically talking about 2 scenarios: 1. Disconnect/Reconnect with the Terminal running 2. Terminal...
[Deleted]
Hi guys, I have this indicator (MBFX Timing) and I'd like to take a signal when it change color. If I use the iCustom function it gives me just the value, is there a way to take the colour of the line? Thank you!   
Hi, I am using the code example of the mt4-reference to read some csv-files in the COMMON-Folder - despite my terminals are placed at 'my' folders (keyword: /portable mode) and fail?? My COMMON-Folder (C:\Users\cas\AppData\Roaming\MetaQuotes\Terminal\Common\): with 18 different csv-files like...
When i use these 2 similar codes to find candle patterns how come the 1st one has no errors on lowerShadow or upperShadow objects yet the 2nd one shows error on mainBodyBear, mainBodyBull, midBody objects. I cant figure it out? //------------- // Candle Patterns...
this works but its rubbish. during the first 1 or < 5 minutes of a new hour or bar , I want to check for a condition: string check; Hr=Hour(); Min=Minute(); check = "n"; if(Hr == 0 && Min == 0 ) {check="y";} if(Hr==1 && Min==0) {check="y";} if(Hr==2 && Min==0) {check="y";}
Trying to make it print vertically a label on a button. Is this possible?       ObjectCreate(sObjectName,OBJ_BUTTON,0,0,0);   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_XDISTANCE,iPramXDISTANCE);   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_YDISTANCE,iPramYDISTANCE);//--- set button size...
hi friends, I faced with a problem that my written indicator works well when the metatrader is open and it works accurately. But when I close the metatrader and reopen it after a while, my indicator does not examine the newly added candles that are created when the metatrader was off, but as I reset
I have a question for the support team of the metaquotes.net I was actually trying to find a way to contact the support team of metaquotes.net but I don't know where. So I'll try my luck posting my question here. I hope this ain't an illegal move. So I would like to check the compatibility of the EA
[Deleted]
Hi I have seen chart scale shows up on the right hand corner. Same way is there any option to calculate metatrader 4 current chart scale?  Like how many pips per grid? I have seen on grid line are get plotted on same manner with different zoom in/out.  But i am pretty much confuse how to find...
Hello, How can I clear my MT4 from global variables automatically everytime MT4 starts or every hour? thanks Ricardo.
hi there,   Recently I have an idea, which modify the MACD indicator and replace the indicator reserved by system, after that I can use the menu -> insert -> indicators function to add my new indicator to chart. And I deleted all directories including ex4/mq4 files and the old MACD indicator still...
[Deleted]
bonjour pouvez vous me dire si le multi terminal metatrader4 fonctionne toujours et un lien ou comment l'utiliser . merci
This is not a spam or ad. I am establishing a trading team where all the members will share the results of our production. No charge is required to join but no pay is given. Based on trust, we share our ideas and we build profitable mq4 together. Please inbox me if you are interested.
Hi Guys   I have an EA running but it is evaluating entry conditions every tick, and I simply want it to check only once per minute, preferably at the close of a 1 minute bar. On reading through the guides I guess this can be done by using OnTimer in place of OnTick, but I'm a little stuck now. Can...
if(iRSI5 <= 10)         {            //Up Arrow;            bool ObjectCreate(NULL,"Buy Arrow",OBJ_ARROW_BUY,0,Close[1],Low[1]);         } I'm having trouble getting this to work. I am very new to programming and would love some guidance in terms of understanding the ObjectCreate() function and its...
  Migrate from TS2  (1)
Hi Folks, I have used TS2 for many months but wish now to try MT4 - please where can I find instruction to "set up" the chart display - I simply require to show (e.g.) multiple Bollinger deviation levels in multiple time frames on a 5m chart... a comparatively simple task in TS2 but seemingly...
Hi,   Last time I was active coding robots (using MT4) (probably around 3 years ago or more), MT5 was starting to be used, and there were rumors that MT4 will soon or someday be pulled out or no longer be supported  (requiring upgrade of robots to MT5).   I wish to look into coding robots again.   I...
New article Graphical Interfaces I: Preparation of the Library Structure (Chapter 1) has been published on mql5.com: This article is the beginning of another series concerning development of graphical interfaces. Currently, there is not a single code library that would allow quick and easy creation...
Hi there Im not asking for code , just a point in the right direction: I need to define a changing variable, kinda hard to explain , so Ive sort've coded it:   extern int number= 'xxx';       // user input 1/2/3 . . etc . . . .       double value1 = OrdersTotal();    double value2 =OrdersTotal();...
Hello, whenever we open an order in metatrader it then is written to the log file. Whatever we do to that order it´ll be written in the log. So let´s imagine that my desktop mt4 is running, but for some reason I open an order with my phone, in the mobile mt4. Although the order shows in the desktop...
Hello, I have a computer running Windows 10, in which the code: string Terminal_Data_Path=TerminalInfoString(TERMINAL_DATA_PATH); always returns a NULL string. This code works fine in other machines I have, namely one other Windows 10, and other is running Windows 8. I really can't pinpoint the
  C# to C++ ?  (4)
writing automated trade strategies on other software platforms in C#, how would I import and use these in MT4? Either that or convert them to EA? Is there help/documentation/steps for this procedure? thanks
Hi there, I am considering developing an EA that will periodically publish certain information of interest to a separate application (probably via WebRequests), but I have a big question.. My question is this: 1. Rather than having to drag my EA on to multiple charts, can I drag it on to just one
Hi there, I want to print how much time is left remaining for a bar to close, so I can open an order just before the bar closes. Print("Time left: ",PeriodSeconds()-TimeSeconds(Time[0])); But on the M1 chart "60" prints out for every tick. On the D1 chart "86400" prints out for every tick.  It...
MetaTrader Support, What is the the latest FXT Version and where can I get the latest FXTHeader.mqh for MT4 and MT5 platforms? Thanks Faisal
New article Market Theory has been published on mql5.com: A logically complete market theory that would cover all types and varieties of markets for goods and services, micro and macro markets like Forex, hasn't been available until now. This article covers the essence of a new market theory based...
In the following code i always see error     'MqlDateTime' - struct or class already defined  I cant see why?  struct MqlDateTime{    int year;           // Year    int mon;            // Month    int day;            // Day    int hour;           // Hour    int min;            // Minutes    int...