MQL4 and MetaTrader 4 - page 533

I'm having trouble enforcing FIFO closing of positions in a fast moving market in MQL4. Based on other forum questions I keep a class array of my open orders sorted by OrderOpenTime. I use Limit Orders exclusively to open these positions. The order in which these limit orders can be triggered cannot
Hello, I want to place a button with mt4gui lib on the right side. And with this lib is not possible to choose the "CORNER _RIGHT_UPPER". So I have to recalculate the Chart size, but I don´t wanna do this every tick but if the chart window is resized only. I want to know if there is a trigger that...
Hi All, Just today , i got this error message which failed to copy the signal from my EA. Any1 know how to solve this issue? Thank You
Hello guys, I'm new to this forum. I was wondering, is it possible to develop extensions to the GUI? I have some experience working on a CAD tool and it would be nice to put it to good use in MT4.  Have a nice day, Andrei 
Hello I love to open trade in 00:00 time every odd days  but When it comes to holiday , order start in first week day that odd or non odd !!?  How can I fix it ? #define  DAY 2*86400 // day is 86400 seconds times to 2 and start from odd day #define  HOUR 3600 // hour is 3600 seconds #define  MINUTE...
Hi guys, I've been searching the forum and trying to pull apart scripts on the web. Documentation has only gotten me so far. I'm trying to get the current and previous position of M15, then zooming out to see what bar it resides inside of H1 and H4. Live trading I believe this will either be 0 or 1
Hello, I need to have a link functionality in MT4. How can I make an object, button or text on my chart which I can click and a website is opened in Browser? Thank you
// + ----------------------------------------------- ------------------- + // | CC.mq4 | // | CC | // | | // + ----------------------------------------------- ------------------- + #property copyright“CC” #property link“CC” #property version“1.00” #property strict #property script_show_inputs //
Hi, can someone help ? Can someone check if this code is correct? Description CCI A cross above 100 CCI B below 0 An alert should pop out when this 2 condition happen. #define UPPER_LEVEL 100 #define MIDDLE_LEVEL 0 #define LOWER_LEVEL -100 #define INDICATOR_NAME "iCCIAlert" if( cci1[0]
Hello How can i shift chart from the end more than of default state ? (shift end of the chart from right border!) Thanks so much
Hi All,   working on optimizing some indicators and an EA that ive been working on for some time. In strategy tester it is so slow its quicker to forward test it at times lol   I think the main problem is with the fib scale indicator it re-draws on every tick and really it only needs to re-draw when...
  OrderSend error #138  (11   1 2)
Hello, in backtest i get this order error 138.   This is my code.   RefreshRates();       MqlTick tick;       if(SymbolInfoTick(_Symbol,tick) == true)       {          double xbid = tick.bid;          double xask = tick.ask;          double point=SymbolInfoDouble(_Symbol,SYMBOL_POINT);...
Hey, I'm trying my hand at creating a simple alert indicator. I keep getting what look like simple syntax errors, but can't figure out what's wrong.    #property copyright "Me" #property link      "" #property version   "1.00" #property strict #property indicator_chart_window...
  Bid and Ask in backtest  (13   1 2)
Seems to be the same. Is this generally the case ? Also MqlRates spread == 0.   Is this normal ? Thank you 
Hello, am i alone with the problem that my expert gets not updated for backtest when changing the code, compiling without errors ? This happens sometimes. Deleting .ex4, running backest throws an error "tester cannot load..." So the correct EA is adressed. After compiling without error, so new .ex4...
Does anyone know if there is a way to change the default lot size values in the pull down list of the Order window of MT4. I know I can change the default lot size in options and I know I can type in what ever value I want in the order window but I would like to just use the pull down list to speed...
  EA stops to run.  (3)
Hi, I have noticed that I have an old EA that sometimes stops to run. I mean I have to click compile button again so EA refreshes and restarts to run. After days it will kinda freeze again for sure. What can I do? Should I replace void_Start() by void OnTick() ??? Please help.
Hi, I have 1 variable times created this way: (picture attached) I need to calculated the time between now and the last time a news time came out. when I do this way... it works nicely: Print((TimeGMT() - GV_FxCal_News1)/60); => I got the time in minutes. This is working from the EA which creates...
Hi  All, Now it was 3 times (every night) that my MQL VPS was turned off...from beginning without any notification but today with notification #91328 MT4 201354*** (Tickmill) stopped, 3.6 Gb RAM. I already sent a message to service desk but without any response... I use only 9 charts so there...
So i have an array, with values equal 0 or equal closing price. I need to get all values with their indexes from this array, that are not equal to zero and do math equations with them.   For eaxample: I have Buffer named Array[], and I need to sum every array member, that is not equal to zero with...
  Binary Option  (3)
Which is the most trusted Binary option trading platform in for U.A.E
I'm somewhat frustrated but I'm getting the a. m. error but I can't find the souce. Proboblyblind to from staring so long. Here is the code that is causing it: //+   Select long positions     +    for ( i=OrdersTotal()-1;i>=0;i--)       {       if (OrderSelect(i,SELECT_BY_POS,MODE_TRADES))...
Hi, I've received the same issue as one year ago; both of my desktop & mobile MT4 apps stop receiving any news update since 18th February 2017. Can somebody please assist on how to solve this?   Thanks and regards,  bubble.tppg 
Hello, I am bringing some of my indicators over from NinjaTrader which are C# written and have a couple of questions regarding array management I am hoping someone can shed some light on.   1.) In c# I use "foreach" to search a double arrray to count how many times a particular double exists in the...
Приветствую всех участников лучший ресурс на планете, с лучшими профессионалами, которые бесплатно помогают в нашем не легком деле!!!!! :) Я хочу видеть, кого не жалко, конечно, хотя бы один работающий советник с настройками , индикаторы и шаблон для коллег по работе...
Dear friends,   I am trying to adding bollinger bands on inchimoku rather than simple MA yet the graphs created by my code is just so stupid.  the last lines of my codes (that I have altered) is   //--- main cycle    for(i=pos; i<rates_total && !IsStopped(); i++)      {       //--- middle line...
Hello MQL5,   I hope you can provide assistance.  I cannot see why the signal keeps getting terminated.    I am on XM UK MT4 - Version 4.00 Build 1045 (3 Feb 2017) I have attached a screenshot.  If there is anything further required, please let me know Ama     
hi im learning to code and for that im checking EA codes so i have this with a EA based in envelopes Env_upper = iEnvelopes(Symbol(), PERIOD_M1, Z_period_328, MODE_LWMA, 0, PRICE_OPEN, EnvelopesDeviation, MODE_UPPER, 0); Env_lower = iEnvelopes(Symbol(), PERIOD_M1, Z_period_328, MODE_LWMA, 0
Hi guys I have tried several times now to install MT4 on my Mac, having first installed Wine and PlayonMac.  I can get the platform installed, but am unable to access all currency pairs in the 'New Order' function.  When right clicking on a chart, no trade/new order option is available.  Please help...
Hi, Can anyone suggest what is the best way to keep MQ (Metaquotes) and Broker data separate and really do keep them both? I don´t want one overwriting the other and vice versa. Thanks a ton for suggestions..