MQL4 and MetaTrader 4 - page 810

how easy count difference (seconds) between two datetime types?
  Heeeelp! heeeelp!  (41   1 2 3 4 5)
Hi still on the lot issue, ive tried a script here that i thought of but strategy testing it gives an error wrong lot size. I dont know wether history data doesnt support some functions or what. The script is for EURUSD only. What am i doing wrong or is it a strategy tester problem? extern int
[Deleted]
Value1 =1.3224 ; Value2 = 1.3424 ; IF MarketPosition == 0 and L > Value1 Then buy("매수",atlimit, Value1); if MarketPosition == 1 Then exitlong("청산",atlimit,Value2); metatrader 4 conversion
Hello, I have some EA's that work fine at other brokers but not at Oanda. Oanda uses bridging software to communicate with MT4. If I get stopped out the EA is supposed to place a new order. What happens, is that after being stopped out on Oanda's platform, the EA loses track of my position and...
Hi, I am using a money manager EA that automatically adds the stop loss and take profit lines onto my chart once I place an order. I should be able to drag the lines on the chart if I want to change the stop loss or take profit. However, a few seconds after I drag the lines to a new price, they move...
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...
[Deleted]
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?
Привет, при открытие отложенных ордеров в 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...
[Deleted]
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...
[Deleted]
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...
  sunday candles  (1)
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...
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...