Hi, How to define the return value as an array? I wrote like this, but it was compiled wrong, string[] A();
[Deleted]
I`m a newbie, tried to make my own EA. Backtesting used history data from februari 2013, TF 15M. When Backtesting, my EA seems just worked for 2 days, here the picture
I have recompiled my old EA in new build 600, and cannot run it anymore. On bactest, getting this: 2014.03.18 16:52:25.224 2014.02.03 00:00 breakout_ea_rev1 EURUSDnc,H1: Invalid license If i try to put it on a chart, it is instantly removed . It recompiles fine, just the usual warnings, no errors
Hello! I would like to know if it is possible to open order immediately and not waiting for new tick? Thank you!
Hi, the Styler break the brace from my "style" to a new line: my Style: int OnInit() { to int OnInit() { Can I change the Styler-Standard? Regards Burkhard
[Deleted]
Hello, I had a Script from previous versions of metatrader working perfectly, but when the exact same code is compiled with the new updated version it don´t work anymore. The Script is 1H_arb.mq4 and its 1H_arb.ex4 (both attached) It used to save the bid and ask of some symbols to a file in a folder...
[Deleted]
Hi Guys, I'm trading on false breakouts and I'm looking for a good tool to help me get notified when a false break out occur. I'd tried some MQ4 code generators from a list I found: http://mqlautocoder.com/forumdisplay.php?fid=10 but none of them are doing notifications. Do you know any good tool...
Hi guys, Maybe such errors on build 610 have already been reported somewhere else, but as my patience is becoming really scarce (due in large part to the problems arising from build 610...), I have no other choice but to report them here (again). When loading a certain EA on a chart I get the...
Hello, can anyone help me to change the position where the window be show after start, please. I want it at the right corner Horizontal 3390 Pixels from left Vertical 140 Pixels from top #property copyright "Copyright © 2011, sangmane."#property link "[email="sangmane@forexfactory...
OBJPROP_ZORDER and hand drawn chart objects have a bug. No need to post code for one to see it, although it affects coded indicators, EA - anything that draws chart objects. You can use trendlines, horizontal lines, text, etc and see it happen with all. To see it yourself try this. 1. Place two...
Hey, You have probably heard about the EA closeatprofit. You can find it on the internet. However, the current EA closses all the trades only when the basket profit is reached. I would like to have EA that when each trade reach the TP or SL say for example 1 pip (if it is too hard, some profit)...
Can you help me? The arrow of a real time indicator does not appear, only when I close and open the mt4. Thank you.
The mt4 just updated to b617 from b616. Does anybody know where (Link) I can find what has changed from built to build?
//FIRST PROGRAM extern int K=80;extern int D=10;extern int S=15;extern double A,B,C;int start(){double stoccurrM=iStochastic(Symbol(),0,K,D,S,0,0,MODE_MAIN,0);double stocprevM=iStochastic(Symbol(),0,K,D,S,0,0,MODE_MAIN,1);double stocprevprevM=iStochastic(Symbol(),0,K,D,S,0,0,MODE_MAIN,2);double...
I'm not sure how to take part of my profits at a price before Take Profit line of an order. I place an order with code that looks something like this... OrderSend(Symbol(),OP_BUY,0.10,Ask,3,stopLoss,takeProfit,"",Magic,0,clrGreen); And then when the price reaches 10 pips I would like to...
I have write a function in a library module in this mode with array that must be returned as reference template<typename T>void getDataSeries( T &array[], string symbol, int dataType, int timeFrame, int numberData, datetime time ) but when I import function in my indicator or expert in this mode...
Pls someone guide me. thanks?
I have a quick question that I would appreciate some assistance with from an expert!! Is there an on and off switch contained within the EA of MT4 so customers/traders can have complete discretion over the flow of automated strategies in their trading accounts?? Thank you. Tech 1.
Hi, I try to make a EA, but I stuck . I want to add the formula: (Open+Close+High+Low)/4 It's like the Heiken Ashi bar but the value of it is different. I attach my tradingsystem (PDF). The profit is good. But when I calculate the formula by my self I lost every time my entry point. Thanks in...
Hi Guys, I try to create Alert when Bid price cross the trend line. First I would like to position the trend line and then get only one time alert after cross: 1) When the price cross from above to below; 2) When the price cross from below to above; But I get error message /warning/ during...
Is it no longer acceptable to assume arrays are initialized to zero when they are declared ? If so what is the proper method ? Using ArrayInitialize() locally will cause array to be reset on every tick there doesnt seem to be a sensible alternative ? Always declare them globaly and use OnInit() ?
Hi! I´m looking for a indicator that will draw multiple lines on a chart based on prices put in a external file. If the external file is called " EURUSD .cvs" and have this content: ------------------ Orange lines: 1.3870 1.3736 1.3743 1.4046 1.3867 Red lines: 1.4118 1.4078 1.4068 Green lines
[Deleted]
I'm checking a very simple EA which should trail the stop using OrderModify(). At the beginning, I used "Ask manual confirmation" to check if everything o.k. Now, after UNselecting "Ask manual confirmation" and even restarting the terminal, EA still prompts for confirmation in a pop-up dialog window...
I have read the previous posts about problems but cannot find a similar situation than mine. When I save a template it does not appear on the list of templates that I can load. It is also not to be found anywhere on my disk - and I know where to look under my Win7 virtual store or the normal...
Hi there - when I execute: double LotSize = MarketInfo(Symbol(), MODE_LOTSIZE); on symbol .BrentCrud I get LotSize back as 1.0 - I would expect 1000, because 1 Lot of Brent Crude is 1,000 barrels? Am I misunderstanding the definition of a term? Thanks
HI, How can I find out (at init() e.g.) that trade is allowed (terminal-options are set) even if the server is busy (or market closed ?)? IsTradeAllowed (); Returns true if the Expert Advisor is allowed to trade and trading context is not busy , otherwise returns false

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.