Download MetaTrader 5

MQL4 and MetaTrader 4 - page 371

To post a new topic, please log in or register
I would like to include the carry charge in my estimated profit/loss calculations. How can my EA get that information ? Is it available through a MarketInfo() call ? Any help would be greatly appreciated. Thanks in advance. ~
Hello forum, I put this indicator together to allow me to mark some local times on my charts that I have interest in. Seems to work fine except for the labelling. The lines draw where they should, but only 3 of the 6 labels work the way I hoped and I can't see the error or difference between working...
I use a grid strategy and since closing and reopening to the new build 600 my EAs have seemd to forget the number of grids I am in. Also it is placing the incorrect exposure. Is anyone else having the same problem?
Am I the only one having an issue with launching the mt4 build 600 terminal? I have installed multiple instances on my VPS yesterday and launched with no problems but trying to add a few more today and after install the terminal does not launch... Any ideas?
Can anyone tell me how to correct datetime for this update? This is a snippet that had been working for over a year. It's purpose is to detect when a new bar has drawn. Was bullet proof. Not now. Doesn't work following the upgrade. int checkTime(){ int thisBarOpened=datetime Time[0];...
  OnTimer (8)
How can you force an EA to run only OnTimer in mql4 and ignore any incoming broker ticks?
is there a difference between DoubleToStr and DoubleToString?
Привет, при открытие отложенных ордеров в MetaTrader 4, нужно держать его всегда открытым для исполнения ордеров или нет? Спасибо!
I did not want or ask for the mql4 update because I did not want to destabilize what I've had running. But when I restarted, there was the update and now some things that have been working for months/years, are now broken. Q1: Does anyone know how to fix datetime under this update? Q2: Is there new...
I see that this version does not comply with the above Experts and indicators and that most of them had stopped as well that there is nothing in the executable file for the new version rejected by the BitDefender So please .. please .. please .. let us choose or make you part as a prof and when you...
The for loop below v3[i] Is there any reason to create a conditional comparison instead of directly assigning v3[i] = val3; ? IE one vs the other below: for(int i=Bars-1; i>=0; i--) { val3=iMA(NULL,0,40,0,MODE_EMA,PRICE_CLOSE,i); v3[i] = val3; // vs conditional below if...
Hi What function is used to move the custom indicator further away from the candle on the charts. For example: SetIndexArrow(0, 241); SetIndexStyle(0,DRAW_ARROW,STYLE_DOT,1,Blue); SetIndexBuffer(0, v1); SetIndexLabel(0,"Resistance"); This produces and up arrow for a fractal, but the...
Hi, I am surprised that I do not come to a simple algorithm to obtain the net price of a hedge position. e.g. 2 diffrent EAs, one for long-trades and one for short-trades: [EURUSD] Open positions: Buy 3.0 lots@1.3515 1.0 lot@1.3525 Sell -6.5 lots@1.3540 -1.0 lot@1...
  Price Spikes (2)
When price spikes within a single M1 bar and crosses the level of a stop loss, is it possible for a stop loss to work? I have an EA with a stop and reverse that fails until the end of an M1 bar resulting in a great loss far beyond the stop.
My broker did not update to builld 600, can some one send me a link to it Thank Tou
Hi Forum, I created a small indicator printing the spread as a label-object. It works fine. I just have a technical question: The label-object is printed with every tick. Is it a problem when the object is printed and printed again? Is is "better" to delete it before creating it new? I do it this...
I get the error 1 parameter for ArraySize function must be an array with a particular broker. How could this be explained? double _V[],_value; if(ArraySize(_V)>0) { Print(" V value:.. ",_value," V first:.. ",_V[0]," V last:..",_V[ArraySize(_V)-1], " V max:..",_V[ArrayMaximum(_V,WHOLE_ARRAY...
Hi, I am wanting to know if there is an EA for the following scenario I have an open BUY position that is currently running at a loss. Im bullish on the position in the long term but the loss at the moment is getting bigger each day. I want to open a sell position of the same lot size once it falls...
I noticed that on my daily charts that I am getting 6 daily candles per week (mon - fri & sunday). Since the market is only open for 2 hours on Sunday, I feel that is skewing my indicators such as the stochastics & macd. Is there a way to merge the Sunday & Monday candle?
Hi, does the new build allow to use external DLLs - http, mysql requests? My scripts completelly stopped working after the latest update.... Thanks. JN
Hello everybody, I'm working on an EA which using MqlTick and SymbolInfoTick function to get tick data but I don't know how do back test to get reliable result so please share with me your knowledge in this topic Thank you
Hello again What is your best formula for finding fibonacci highs and lows. I have this one that works for me but It draws from windowsfirstVisible bar.. What is the best formula you have found for these highs and lows? int fibHigh = iHighest(Symbol(),Period(),MODE_HIGH,WindowFirstVisibleBar()-1...
  Unique groups of numbers (21   1 2 3)
Say for example I have a range of numbers I can use from 1 - 10 ok. What I actually want is unique sequences of that range, ie. 10,9,7,8,4,6,5,1,3,2 2,1,4,3,5,6,7,8,9,10 I know you can shuffle arrays but how do get uniques shuffles with maybe a seed number like srand to create random groups of...
Who is the best coder to look at with the most profitable expert advisor that trades with time instead of price. So I mean you trade now and you exit in a few minutes calculated by a formula. What is the best formula for this and who is the best guy with the most profitable expert advisor to look...
Hi say for example I have file with these signals. Open Date,Close Date,Symbol,Action,Lots,SL,TP,Open Price,Close Price,Commission,Swap,Pips,Profit,Magic Number 01/28/2014 15:00,01/28/2014 15:28,USDJPY,Buy,0.18,101.80900,103.65900,103.00900,103.07500,0.0000,0.0000,6.6,11.53,469222 01/28/2014 11:29...
For some reason my EA's files are no longer being read in the new editor. No error messages, but it doesn't get done. I presume it's a location issue. I started looking for information, can't find any. Does MT handle this now or do I have to specify where the folders are, till now I haven't had to...
Hi, Recently i have integrated the use of MYSQL Database to an EA and it is working fine. Yesterday, the MetaEditor updates to build 600 and when i compiled the EA and run it on a terminal, suddenly error comes up on accessing MYSQL Database... Does the build 600 not compatible on MYSQL? I hope the...
https://www.mql5.com/en/charts/1405842/usdjpyf-m1-one-vector-group?bind=1
I use a broker in Europe whose MT4 server is based on GMT. Hence when I move the cursor, the GMT date/time is displayed at the bottom of my MT4 screens. Is it possible to have my local (Australian time) displayed as well as the GMT server time either on the bottom of my screen or better still in a...