Download MetaTrader 5
To post a new topic, please log in or register
New MetaTrader 4 Platform build 1045 The MetaTrader 4 platform update will be released on 3 February, 2017, which is connected with the release of Windows 10 Insider Preview build 15007. Due to security updates in the new Windows 10 system version, MetaTrader 4 client terminals could occasionally...
The latest MetaTrader 4 for iPhone/iPad features a completely new design of messages. MQL5.community messages and push notifications from the desktop platform are displayed as chats similar to those used in popular messaging apps. In addition, it is now possible to switch to any of...
  US vs UK Keyboard (16   1 2)
Does anyone know if there is a way to detect the keyboard or current language settings without using DLL calls ?
Hi, I am preparing my first "simple" strategy, but for me it wasn´t that simple... I created this code:    //Global Variables extern int slow =  9, fast = 3; // for subsequent optimization process ** extern int z= 150, w = 150;   int start() {...
  question (2)
can someone tell me what code i would use just to get a ea to buy 0.03 lots of the eur usd currency pair if it rises above a particular price , for example 1.0553  i tried to do it but the ea kept buying a additional 0.03 lots every tick  i tried to use the orderstotal function to ensure the ea...
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,...
  miscellaneous questions (62   1 2 3 4 5 6 7)
Hi, #Broker Time   I spent few hours for reading some comments, but I did not figure out how can I set my Broker Time to my indicators / how can I set my indicators to my Broker Time. (maybe I confused) My Broker Time starts from 01:00, but all my indicators works from 00:00. So how can I solve my...
// + ----------------------------------------------- ------------------- + // | 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"...
I receive this message in journal running testing: 2006.04.18 23:25:51 2006.03.23 16:11 MarcosMacedo stopped because of Stop Out What does it means ?
//+------------------------------------------------------------------+ //|                                                                  | //+------------------------------------------------------------------+ void StopLoss_Management()   {...
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...
Hi All,   Working on a Multi Time frame stochastic oscillator tool that works well for me as a manual trading strategy ive integrated into part of my EA and it works fine forward testing it but I cant back test it using strategy tester.   Ive done a lot of modding of the code lately to really strip...
Hi all, I am new to MQL5 and MT4, I am a little surprised by the simple layout, for example at the order window why aren't the current orders with a profit green? I tried to change this but couldnt find the right place. Could someone help me out, if it is possible at all. I really hope so because I...
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 Coders, I have issues with this compile error,   'if' - expressions are not allowed on a global scope   see attachment added    can any one help?
Hello, One of the indicators I am using in my EA is printing text on the chart, is it possible to automatically remove such text ? I do not have the mq4 file for that indicator.   Any help is appreciated!  regards, salexes 
  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...
Hello Unfortunately, I decided to migrate to a different laptop with a new windows 10 installed  The manufacturing are becoming fans of 64 bit operating system. Therefore, they sell their new product with one option ( 64 bit ) operating system and backup. Means you don't have a choice to choose...
I tested my code last week, bellow first picture.    And today I tested same timeframe, same period, but result has changed. I didn't change my source code. Why this happen?   
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'm trying to manipulate an indicator value, For example: if (a=(iRSI(NULL,0,14,PRICE_CLOSE,0)>75)) {    int b=a-3 }   The problem is that a returns true and not the value of the indicator (75). how to get the value of the indicator ? I know I can try:  if (a=(iRSI(NULL,0,14,PRICE_CLOSE,0)>75-3))...
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...
/ 12345678...1198