Download MetaTrader 5

MQL4 and MetaTrader 4

To post a new topic, please log in or register
New MetaTrader 4 Platform build 1065 The MetaTrader 4 Platform build 1065 will be released on 23 March, 2017. In the new version, an error has been fixed connected with the restart of Expert Advisors on charts after switching timeframes. Now, Expert Advisors do not stop, and are correctly...
I have this type of error (Array out range error) when I backtesting this EA. How can I identify the point of issue? Thanks Giovanni // Variabili globalibool check = true;extern string ParametriValori = "Inserimento volume degli ordini";extern double volume =   1;extern string ParametriCandele =...
Good day all, I would like to encourage you if you could please kindly read entire post as I also put effort to describe my problem in best possible way. Inquiry regarding the Swap value - referring to the actual Swap column located below in MT platform where the list of currently opened trading...
Hello world :) EDIT: I added the complete loop (should have done that right away, apologies) I have a few MT4-coding miles on my counter but I bumped into an error that I simply cannot seem to correct. I have an EA that opens orders with a loop bool SendSingleTrade(string symbol, int type, string...
Hi, My problem is the following code snip below: if ( (ReferencePrice - 10*Point) < Bid < (ReferencePrice - 10*Point)) ;   OrderSend (...............) My order executes at any point above (ReferencePrice - 10*Point) and vice versa. Is there any way of creating a range, so that when the Bid is...
  Elite indicators :) (14934   1 2 3 4 5 ... 1493 1494)
Hello, Does anyone know where I can find an indicator that takes in price values, which when reached or surpassed will cause the indicator to send a sound alert?
is it possible somebody to make this Blank.mq4 able to recieve drawings and objects? thanks
Hallo fellow community members, I initially wrote this message in a genera section and was advised  to write it here. I also gave my code in sections that could not compile. So here my message again.  I am trying to put up my very first EA but am kind of stuck with a certain part of the code. I want...
Hi, is it possible to draw the line of a buffer over the spark plug 0? I tried it like this but it does not work! for(int I=-10;I<N;I++){      if(Linee==true){ExtMapBuffer1[I] = Up;ExtMapBuffer2[I] = Dw;}}
Since upgrading to MetaTrader 4.00 Build 1031 (17 Dec 2016) I face connectivity issues on my virtual server. I have 4 clients running on a virtual server (Windows Server 2012 R2). It now happened two times, that after about a week one of the terminals showed "No connection" in the status bar. I...
Dear all, where can I find a complete historical data to test my EA? I need as much data is possible....to have a quality model test close to 99.99% Thanks francesco
how to change this indicator to EA any help? this is trend line break indicator. when candle cross trend line or horizontal line it will send alert. thanks in advance.     #property copyright "" #property link      "http://" #property version   "1.00" #property description "Audible alert when...
I've been searching for a solution for a couple of days now, but still not 100% sure if at all this is possible... what I want is broken up in 2 pieces: 1. Say I want EURUSD "chart" -> this will open without showing a chart, but only info - i.e. window that spans across the screen, but is only x...
Hallo good people, I am trying to put up my very first EA but am kind of stuck with a certain part of the code. I want to have eight price levels at which I will place trades, more or less like a grid. Normally this would be done using pending orders but this option will complicate the code for a...
Hello, is it possible to make a EA work same way in a live chart like he do in the backtest with control points mode? How are the candelsticks calculated in control points mode, is it possible to calculate them before the candel is finish or does this only work when the candel is already finished?
  Usefull links/threads/tools (35   1 2 3 4)
The thread about threads: what's going around the forum everywhere  ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread  After Requests & Ideas (MQL5 only!) - the thread ============ General rules and best pratices of the Forum thread ============ Traders joking...
Hi,  I try to use 'else {}' code when market closed just it could play. But two sounds mixed, where is a problem, please? // SELL if( sparam == "SELL GROUP" ) {     ObjectSetInteger ( 0, "SELL GROUP", OBJPROP_STATE, false );     _ticket = Order  (    "SELL GROUP"                       );...
Hey guys. So i have this ma cross arrow indicator that works really great. I think mladen created it. The MA CROSS indicator doesn't repaint or lag but only when conditions are met during the life of the candle, the arrow appears. Saying that, i also have this "Price MA cross indicator" but unlike...
Please help, I'm trying to code an indicator which will involve a MA. The coding I have come up with for the MA itself is the following: double ONEHRMA=iMA(Symbol(),PERIOD_H1,200,0,MODE_EMA,PRICE_CLOSE,i); I then want it set a bearish indication on the screen if the price on close is less than...
Ive been trying to send an EA for automatic validation but keep getting Please recompile your product with new compiler the moderator tells me I need the latest version build 1066 (21 Apr 2017). But I cant see where I download it from? Can someone please help.
Hello all As per the subject header, I would like to include some code in my EA which implements a position size as a percentage of account balance, using the fixed SL that I input for the asset as well as the maximum risk per trade = 6% of account balance. E.g.  Account balance = $10k , my manually...
  Long Trade on Active Bar (11   1 2)
Hello, I was experimenting around with building an EA and had a couple of coding questions. With the following code, if(Low[0]>Low[1] && Low[1]>Low[2] && low[2]>Low[3].... Seeing that this would be trading on the movement of the active bar, what code would I use so that it would only take one trade...
hi, I am on FXCM MT4 platform. I am wondering how can i import my own historical data into FXCM MT4 platform and conduct backtest based on these datas. I tried historical center / import, but when i hit "import", nothing happened and how can I check the data has been successfully imported? where is...
Hi there, I have an EA that I've been trying to back test with inconsistent results using the Optimizer. If I use the settings that come back from the Optimizer and just run a single pass I get different results. I decided to add some logging to a file in order to try and figure it out.  The first...
  help me (4)
Ciao a tutti ho creato il mio primo EA partendo da un indicatore molto valido ma non apre posizioni, mi potete aiutare?? grazie Hi boy, i have created my first EX, copy the strategy of a good indicator, but the EA doesn't open ordes, can you help me???
Hi I have a problem. (M1, USDJPY) My metatrader uses only 27-03-2017 to 24-04-2017 range with strategy testing, even if I want eg. 01-02-2017 - 24-04-2017.  I looked into "history center" and there I have a history for USDJPY since 02-03-2017. But still, how can I MAKE my strategy tester to use this...
I'm using iCustom ichimoku  double tenKansen =iIchimoku(NULL,0,9,26,52,MODE_TENKANSEN,1);double kinjusen =iIchimoku(NULL,0,9,26,52,MODE_KIJUNSEN,1); I want to tell the programme to buy when the lines cross. I've tried to use something like  buy when  tenkansen = Kinjunsen but this doesn't seem to...
This has nothing to do with the popular Grid trading methods. Rather it is a replacement for the default chart grid. This indicator let's you set up a grid to what suits your trading, not what metatrader makes up. You can set the horizontal lines every X pips and it stays fixed at that even if...
I’m a newbie in mql programming so I will face with manytroubles during learning. I decided to create a new topic for all futuretroubles going toward me or other newbies instead of creating new topics for each problem. I beg other experienced and inexperienced programmers forhelp. Thanks.
I would like to draw a trendline which has its first anchor point shifted from the current bar. Look at the picture below:
12345678...1225