Expert Advisors and Automated Trading - page 235

To post a new topic, please log in or register
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  look at the...
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...
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  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...
In MT4, I used to be able to generate several GBs of log data (with the Print command), in order to check the values of variables and make sure my rules are correct using the "every tick" method. In MT5, the backtester generates incomplete truncated logs, even when using the "open prices only"...
Hi guys! Is it possible to automatically  raise event every x milliseconds? I want my EA to run every x milliseconds and not every tick, therefore i thought maybe i can raise event every x milliseconds .  
One more issue with pending orders and backtester... I put 2 pending orders and then OrdersTotal() = 0 when 1 of the pending orders is opened OrdersTotal() = 1. According to the MQL5 reference OrdersTotal() should give the number of all orders including pending orders not only the open positions,...
MT4 EAs shows markers when opening/closing positions take place. MT5 does not show them. Am I missing something? Shouldn't this be automatic? The markers are shown in backtesting but not in live trades I do not want to create an object for this... please help.
I make the following code for a pending order but then it seems that the order doesn't expire after 1 hour in the backtester Any idea why? request.action=TRADE_ACTION_PENDING; request.magic=1234; request.symbol=_Symbol; request.volume=Lots; request...
First of all I know that in the journal a lot of info is missing and I have to check the agent logs. I am talking about the agent logs here. When I have my code without CopyLow or CopyHigh I see all ticks called If I do ArraySetAsSeries(Low,true); if (CopyLow(_Symbol,PERIOD_M1,1,60*2...
Hello: I have an "MT-4" Expert Advisor that I am thinking about converting to MT-5. The EA uses correlations (multiple pair correlations for the pair being traded) and because of this, I have never been able to strategy test it. Can the MT-5 Strategy Tester test such an EA? Can it handle...
I think it is so useful for me thanks
We are proud to announce that Expert Advisor Visual Wizard Pro will be released soon. Create expert advisors in MQL5 for MetaTrader 5 in minutes. No coding is required. No MQL5 programming is needed. Presale Promotion: Buy Expert Advisor Visual Wizard Pro for MetaTrader 5 between August 26 and...
Hello, Is there a function that counts the number of bars that is being shown on the current chart? Thank you.