Download MetaTrader 5

MQL4 and MetaTrader 4 - page 645

To post a new topic, please log in or register
Hello, How to be alerted when my EA stop running ? There is someone already implemented something like this ? They are 2 PC. PC A PC running continuously a EA, and sending each 5 mins a signal to PC B. PC B PC awaits a signal from PC A, and if that does not append each 5 minutes, triggers an...
when i try to close or modify an order,a message appear like this " Encountered an improper argument" what does it mean ? i cannot close the order .
Hello, please can anyone tell me if there is any way I can create 6 minute bars in MetaTrader4? I need to create different periodicity charts to the default options in MT4 for a system I am trading. I am very grateful for any help. Best wishes, Ye Ling
Hi! Inspired by Bill Williams and what he calls "Point Zero", I have been several days thinking about a way to detect potential tops and bottoms using Fractals, Momentum, Moving averages and Market Facilitation Index. I thought it wasn't really possible and tops and bottoms were random, but I think...
hi i have the following EA,, it only trading on "instant execution " brokers and 4 digit brokers .. can any one chnage this to trade on market execution and 5 pip brokers? this is is instant execution broker, it can able to place tp and sl at the time of trade execution... since we have to place tp...
Hi, how can I change the time on my chart? My lokal time is 10:27 and the shown time is 8:27. Thank you
Hello, I got support in this forum for run custom indicators from the init() of EA I use . Now I need to close these same indicators in deinit() of the same EA. Thank you very much for your help. PS: I use the google translator, sorry for syntax errors.
Hello friends, I have aquation, and I nead your help: If I have 2 "FOR" - loop, and I want to stop them together, Can I break the together with using the operator BREAK one after one? Means at the following example: Is the GREEN BREAK breaks the the GREEN Loop, and the RED BREAK breaks the RED Loop?...
Hello all, My name is Godfrey and I have this EA that uses the LevelStop-Reverse indicator written by Bruce Hellstrom. I googled the EA that uses that indicator and found one. The problem is the EA has no Take profit, Stop Loss or Trailing stops functions. I really need help on coding as I am a...
Can anyone help? I think I am being particularly thick today..... On the first line of code, I am taking an average of the values of three lines for an indicator in "Line 4" and assigning it to a double variable of "x" In the second line of code, I want to take the value x and divide it by an...
Hy everybody, could you indicate me the web site that allow to share the trades placed on a certain account? I saw it somewhere but I don't find it anynore. Thank you
Dear Community, I try to write a function, that opens a new opposite Order when the last Order by the EA was closed by Stop Loss. The function should open only one new position. But my function opens endless number of new positions. I do not know why it happens? I tried to solve the problem with the...
Hi Im a novice trader, so sorry for my maybe "stupid question". But can anyone tell me the difference between a long vs short position? Maximum length for a short.? Minimum length for a long.? Thanks for the help =)
Hi there. I wonder if it is possible to find out if a object is in window 0 where the chart is or in 1,2,3... where the indys are. so I tried something with the PRICE1 coord but this doesn't work for all charts. Then I measure the distance of start and end which is also not valid for everything....
I want to code an EA for my two-correlated-currency arbitrage strategy that I am developing, I'm calling it my gap strategy. I think you can see what I'm doing from the attached chart. What I'm trying to wrap my ahead around is how to quantify the gap distance between the two currencies, and the...
1> How to make GetLastError return a string instead of a number ? I used to put the GetLastError() in Alert or Print command to see what is wrong. But I just saw the returned number ! Is there a way to let it present the string content of the error ? 2> Please...
Hello, Is it possible to draw parallels from Close, without using buffers? Thank you, Pierre8r Code with buffers : //+------------------------------------------------------------------+//|                                                  Parallel001.mq4 |//|...
Hi everyone Can you help me improve my strtegy ? it consist on EMA and Momentum and also on Bars sequency finishing by hammer(japanese candle formation) iT WORKS LIKE THAT: If ema is above ASK and momentum i s getting lower and lower and last four bars are black and moreover the last one is hammer...
  MACD cross MA (2)
Hi, i'm new in this forum. I hope you can help me for make an indicator. I need a indicator MACD(9,12,2) and an other MA simple with shift -1,so i don't know how can make this indiactor. It's important that when signal MACD cross the MA i listen a sound and i can view an alarm. I hope you can help...
Hi, All I want to send an email when my customer indicaror gives a signal. But when I load the indicator, it sends all the past signals and makes the email dispatcher stop send the email. It returns the error: "Mail: Not Enough Space For..." Does anyone know how to solve the problem? Tks...
I define x as a double, assign to x the value of 5 divided by 2, and then print x. See code below. double x = 5 / 2;Print ("five divided by two is ", x); The result, as printed in the journal tab, is: 2012.05.06 18:12:28 2012.04.26 12:34 Range Breakout EA (alpha 2a) EURUSD,M15: five divided by two...
I wrote the following code://--------------------------------------------------------int init()  {   return(0);  }int deinit()  {   return(0);  }      int start()  {    Alert("deinit() called ! EA terminated in few seconds"); sleep(5000);  deinit();...
Hello !! Is there any indicator that shows a regression line every n bars automatically? Thanks for your help.
Hi, anyone know how to write ea trade base after the 2 close bar higher than EMA line. pls help.
I attempted something new today which I am not sure how its is supposed to work. I have my PC connected to a demo MT4 accoubt and I logged into the same account with the iPhone app. No problem so far. Next I try to enter a manual trade from the iPhone. All I get is "busy" with no other message, log...
Hello I have some questions, requests, and issues I would like to be solved regarding the following articles on this article here: https://www.mql5.com/en/articles/1478 I'm trying to follow the instructions but I have the following problems: 1.) The file w2k3.img at http://fileshare.in.ua/20222...
Can anyone help me.. I need a template of martingale EA.. I found a template but when i backtest it.. the EA could not open a buy order if there is a sell order exist.. I only understand mql little bit.. Here the tempalte... I hope some one could help me to make this EA could open sell even there is...
I am getting an error 131 "Invalid Trade Volume" when I place an order using Lots rounded to two decimal places. However, MarketInfo (Symbol(),MODE_LOTSTEP) returns 0.01 indicating that I should be able to use two decimal places for Lot sizes. The EA works correctly when I use a Lot size rounded to...