Hello everyone, I am encountering a problem with the backtests of several Expert Advisors (EA) on MetaTrader 5 using the Libertex broker. I have found that neither the EAs I have developed nor the ones I have downloaded (even those highly rated on the MQL5 market) execute backtest trades, while the
Hello everyone, before you tell me, I've already been searching the forum on the subject, but I can't find anything that works for me. Since I am only going to Having only one trade open at a time, I don't need to factor in margin or anything like that I need to know how the lot size is calculated
Hello, where can I download the library from #include <TradeConstants.mqh>,because it's not present in my include. Unfortunately, I can't find out where to find it. Please help
Microsoft Factory Class Warning: A pointer called "m_pMainWnd" was detected in a function called "Run()" of the class "CWinApp". CS 2 11:19:44.360 MFC Warning: m_pMainWnd is NULL in CWinApp::Run - quitting application. Something called debugger exist: Best Regards
Hi, I'm new to Forex, and I'm adapting my Day-trade EA to Swing trade on Forex (Exness Broker). What I know is that Forex closes during weekend, right? I don't really understand if I can't operate during weekends. If so, That would result on false results and reports while I'm doing backtests. As
Hi,
Is it typical that optimization gets very slow when using a custom made indicator? I made a simple indicator and use it in my EA and the optimization is soo slow :( I also made EA that uses two simple moving averages and optimizing it is much faster. My custom indicator is not complex and I've...
Hello, I have developed an EA that relies on price behavior around moving averages. I am however unable to test this on the strategy tester. With different timeframes and currency pairs, the outcome is the same. No trade is executed and the journal returns the details in the attached. Anyone please
Hi all. I just got my first EA up and running and I am finding that the indicator values lag about 5 minutes behind the values displayed on the chart. I see a bit of chatter about this. Is this a common thing? I saw one post that suggested coding a custom indicator. I managed to find the code for
Yet another quirk of MT5, with exactly the same conditions the visual tester does the job right while the non-visual tester opens a position when it shouldn't. I'm having a very deep look into this and there's no "randomness" in the code. - I tried all modeling methods (everytick, 1 min ohlc, etc..)
Hi. I am new to MQL5 so I apologise if I don't describe my issue well or use the correct terms. I am trying to get Indicator values using iCustom and CopyBuffer, but I am just getting zero values. I am working on an Expert Advisor that uses three Indicators: TEMA (9), Vwap bands (9), and CCI (9)
CopyTickRange not working for demo account but same timerange of ticks can be requested through symbols,view
Hi! Please see subject. I occasionally see scores in the 90s, and curious to know if 100 is the max, or it it's possible to break beyond 100. Thanks. 😊
All the testing parameter was same. except the modeling. I'm fully confused with these upside-down results. Can someone please tell me why is that? Results of Modeling - "Every Tick" Results of Modeling - Every Tick based on real ticks
Hello! OrderCalcMargin() cannot be used on indicators . How can I go around this? Thanks
hi, i'm new here creating a new topic, but i search a lot of things. In special this problem if can we help me void RangeBreakout::TotalProfit() { floatingPNL = 0 ; int total_positions = PositionsTotal (); for ( int i = total_positions - 1 ; i >= 0 ; i--) { ulong ticket =
Hi, I'm still using MT4 instead MT5. I have try many times to perform backtest and optimisation test. Once optimization test have done it will show tick graph and result finding on profit, drawdown, risk and etc. How to use/implement the result into real setting EA?
Hello everyone, I am working on an price EMA crossover expert advisor on metatrader 5 which should have the following conditions : 1. if price closes above ema ,an alert is triggered as well a buy stop pending order 2. if price closes below ema ,an alert is triggered as well a sell stop pending
I am looking for an EA for either MT4 or MT5, any of the 2 works for me that has these characteristics. 1- Be able to set that when the open operation has, for example, "50" pips in profits, that operation is modified and automatically set to breakeven. 2- Be able to set that when the open operation
Why is the panel of some EAs not displayed correctly in MetaTrader? Is there a solution for this problem
I use this code block to calculate the lot size. but when it comes to indices the calculation is very different. as an example, this code block calculates lot size for 10,000$ account with 1:500 leverage is around 3.0 lots. but when it comes to balance 6,000$ with 1:100 leverage , the code is
Hi Can anyone explain the code ordercloseby to me When I use it to close buy and dell orders it gives me error 3 Thanks
I must be really stupid because I can't figure out how to get the strategy tester to work. Every time I press "start" a second passes and then there is a toy beep. I don't understand this. As a newbie to algo trading I have also copied codes from YouTube videos but they also don't work for
Is there a way to connect to a calendar website to track high impact news and turn the EA on/off
(3)
I had a look and it seems it's possible but a lot of the ways I found connected to forex factory but because they have some kind of firewall in place it stopped most EA's that do this from working. Is there any other methods? I just want the EA to pull the news data and be able to turn on/off the
I am using metatrader 5 on a linux manjaro distribution through wine and I am having some coding problems. I am pretty sure the code is right but it keeps giving me compile errors on the OP_BUY and OP_SELL as undeclared identifiers and when I search in the Trade.mqh file I cant find them so
[Deleted]
I coded a Simple Trail Stop EA from a tutorial video that i found on the net. It compiled successfully with no errors. Here it is below. #include <Trade\Trade.mqh> //Create an instance of CTrade CTrade trade; void OnTick () { //We calculate the Ask price double Ask= NormalizeDouble (
hi, it seems that some times, in tester graphs get wierd and also the testing graphs don't clean one after the other (I don't have an image now) but if one ends in +20, the second drops 20 and the graph doesn't clean (I still see the last graph and the second one is a continuation) does any one know
THIS IS READY MADE FULL AUTOMATIC EA MAKE THIS EA SEMI-AUTOMATIC 1. FIRST ORDER OPEN MANUALY 2.THIS IS MARTINGLE EA CONVERT IT ANTI MARTINGLE
hello guys, i'm trying to get historical data on index to do a backtest of an EA. The historical data center doesn't work. It's not importing data, it's not downloading anything. I have tick data from dukascopy but the import doesn't work. I tried 2 different mt4, 2 different brokers and i have the
Hello, i am getting the below when publishing my EA, it fails validation, i tried with many lot sizes. can you help please test on EURUSD,H1 (netting) 2019.04.18 11:00:00 failed instant sell 0.1 EURUSD at 1.12706 sl: 1.15714 tp: 1.12514 [Invalid volume] 2019.04.18 11:00:00 failed instant sell 0.1

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.