Expert Advisors and Automated Trading - page 461

Dear. Is there a "trick" or something like this, to be able to use the Print() function IN the chart (in example creating text objects) in an expert advisor (not indicator), instead of regular printing in the expert/journal of toolbox window?  This can be useful for debugging. Thanks! 
Why can not save or export optimization graph and optimization results for further analysis.
Has anyone come across this issue? For some reasons MT5 tester is showing 838 trades (1,676 deals) compared to the real time trading of 437 trades during the same period. This was tested using "Every Tick" setting.
The term in my EA 'if(CopyBuffer(handle,1,0,10,zm)<0)' works as expected and returns valid array variables. When I attempt to shift the plot in my custom indicator using 'PlotIndexSetInteger(1,PLOT_SHIFT,10)' to show a future prediction, the term in my EA returns unitialised array values. Any...
If I call an indicator form an expect, the event OnTick of the expert and OnCalculate of the indicator , which be execute first? thanks hongbin.fei
I have a .dll which worked in MT4 but I get "Cannot import [function]" on Vista 64 bit, and "Cannot load [dll path]" on XP.  Are there any special steps that must be taken to make a C++ dll work with a MT5 EA?
When using code block with SymbolName() and SymbolSelect() functions, and subsequently calling for market data with the SymbolInfoDouble command, I get the error "No prices for symbol EURUSD." When I don't call the for() loop, I'm able to retrieve market info via SymbolInfoDouble() and...
From the help: "In this mode the OHLC prices of 1 minute bars are also generated...", which makes backtesting extremely slow. Is it possible to somehow disable this?  I can live with and deal with inaccuracies introduced by MT4 style open prices testing, but I cannot deal with slow backtesting...
[Deleted]
  Trade copy ea  (168   1 2 3 4 5 ... 16 17)
i have made a trade copy ea that id like to share, it copies over the internet or locally this ea also copies chart objects this is a hobby to me, its free, no catch, all source files are provided iv given this ea a complete overhaul goto post #43 for the new instructions here is a link to post #43...
like topic, I am waiting and waiting.....
Hi,  Sorry, I've put this suggestion in the general Forum instead of the EA one.   It would be nice to have a new backtest mode allowing to use OHLC with the current periodicity instead of 1 min "intra bar " model.  So if we select a backtest on 1H data, we only use the 1H bars to perform the...
Are there any solutions out there that are better than Virtual Order Manager to track orders within the position-centric MT5 environment https://www.mql5.com/en/articles/88 I would like to convert my current MT4 to MT5; however, MT5 does not allow simultaneous buy and sell trades. I have an...
Hey there, I don't believe my eyes but I cannot seem to find a visual mode in the mt5 strategy tester? Is my observation correct? This is a problem for me because now I cannot see what is happening, and I cannot see what is going on, and if the code is doing what it is supposed to do. Usually I...
Can you tell me were there is a matching advanced list of the events in the MT5 economic calendar? And can the "actual" feeds on the economic calendar be used as inputs to an EA?
When I run strategy tester,on my local agent, the agent cpu usage showed on "agents" tab increate quickly and the test is down with cpu usage up to 100% and status change to busy. even i run easy strategy like example moving average EA,like this: it went wrong agent status after cpu usage...
I downloaded MT5 and performed the installation. I was able to get the sample EA to work and display arrows. Every subsequent execution locks up and is not running. I did an uninstall and reinstall and it did the same thing again. The EA makes a connection then appears hung and not progressing,...
Can someone sled some light into the day light saving on the back testing data? With the data on metaquotes, is day light saving being applied? It is hard enough to develop an expert advisor, we all have to deal with all these extra factors like day light saving changes and etc. Currently, I have...
Does anyone know how to import or download data for MT5? It seems that I can not backtest beyond May 06, 2010. Under Tools, Options, Charts, I have set the max bars in chart to Unlimited. I still cannot get a Daily or 5 minutes chart to go pass May 06, 2010. I guess if I cannot&nbsp; look at the...
  Event Handling  (2)
Hello All, I'm working on a project that would allow me to take all of my clients data and put it to a web server (mySQL). Now Ironically enough, it was easier to figure out sending this to a mysql server than just trying to figure which event to use. I would have to say thanks for this article...
I'm new to metatrader/mql 5 and trying to build a basic expert advisor that trades the M5, but must monitor the daily high and low and also the H1 candlestick chart. The only way I can determine to monitor multiple timeframes/charts at once is by building an indicator for each timeframe other than
Under the new mql5 system for referencing indicator values, you must create a global array, indicator handles, copy the buffer, and set the array as series. If i'm trying to reference indicator values across 12 currency pairs, must I do this for each different currency? This seems rather resource...
We've made a last minute decision to enter the competition. We've been working over the weekend to port one of our MT4 EAs, and we've hit a problem. The EA Magic Number is not being applied to any of the closing deals, only to the opening deals. Here's an extract from a log: RO 0...
I want someone to help in trasfering this ea&nbsp; to work in MT4 Expert2EMATime.ex5
First, I am running only version eatrader.ex5 on this pc without mq5 source, how can the log show as Zero divide in 'eatrader.mq5' ?? Second my ea was working fine on previous build, and the backtest is ok too. but on this built when i run it in live mode..what is the problem here ? then expert is...
I have tried hard but have not found a solution. I am creating a multi-currency advisor and want to have a stand-alone class object for each pair instead of a mess of functions on global scale.
What's the best way to scale-out of position in Mql5? I prefer entering through 1 order and then scale-out through multiple targets For eg. Entry, Buy_Stop 2 lots at 1.2627 SL: 1.2584 TP1: 1.2647 - Exit 1st lot TP2: 1.2667 - Exit 2nd lot I also tried scaling-in by entering two orders with...
void OnTick() { //--- PrintFormat(TimeToString(TimeCurrent())); PrintFormat(Bars("EURUSD",PERIOD_H1)); } //+------------------------------------------------------------------+ Bars from 2010.08.12 05:00:00 to 2010.08.27 23:00:00 are missing. IJ 0 Core 1 22:03:10 2010.08.12 05...
After making a small change to an EA and recompiling, I get garbled output in the result window as well as incorrect trade opening/closing. The small change I made was a simple change to the variable names for MA indicators. I have defined several variables as the values of various MA indicators...