Expert Advisors and Automated Trading - page 19

ChartGetInteger ( 0 , CHART_BRING_TO_TOP ); It should return a value of 1 (or true) in visual testing, but it returns 0 (or false). Meanwhile, in MT4 testing visual mode, it returns 1 (or true). It should be the same. Could you please check this? Thank you
Dear community, when publishing my expert I get an error message that external DLLs are not allowed. I do not explicitly use external DLLs, but it could be, that this means user32.dll and/or shell32.dll. The DLL shell32.dll is used to open a browser from the Expert. I would like to use it to open
ChartSetInteger ( 0 , CHART_SHOW_TRADE_LEVELS , false ); It does not work in MT5 Strategy Tester (visual mode). You can try it yourself. This is important for me because it obstructs my trading bot’s display. Please check and fix it in the next build version. Thank you
I have a problem, I'm running MetaTrader 5 Strategy tester with 8 agents (my computer has 16 cores). He hasn't worked for me for a month. There is no collision with the anti-virus program. Reinstalling didn't help either. All 8 testers are marked as "not connected" in AgentsManager. I have Win 11
Hello, I have been having issues with the Meta Trader 5 strategy tester since i logged in to my [redacted] account on there. When trying to backtest on EUR.USD tick data from 2022 - 2025, it has a quality of analyzed history of 9%, and fails to load anything before the end of 2023. I have attached
Hi, I have some experience in pinescript and other languages but new to mql5. I want to save a number in US session open. But I have some problems. double test = 0 ; if (time.hour == usOpenHour && time. min == usOpenMin){ test = 1 ; } Comment( "\n session max : " + test); The problem is at
Hello everyone. Is there a way to change account balance programmatically(in tester mode)
The MQL5 documentation -> ONNX section -> " Creating Model " article offers the "ONNX.Price.Prediction" shared project for an example on how to use Machine Learning in MetaTrader5. I tried running the project, but faced some problems: - I noticed the code doesn't run with the library versions
Good day i'm new to mql5 and have been struggling for a week now to get it right but still no luck. i'm willing to pay someone to just edit my EA so it has a trailing stop loss and a Tp if anyone is willing to help me please send me a massage or a email nielotto5@gmail.com Here is the EA code
Hi! We obviously know the strategy back tester uses historical data to test scripts. Is there a software that uses machine learning ie pattern recognition from past historical prices to 'project' artificially future prices and allow the script to be tested 'forward' in this regard
I'm getting error: there are no trading operations from automatic validation.But it's not true 'cos I'm using this EA on my live account as you can see from picture
I deployed an EA in MQL5 VPS since October 2024 and it worked fine until Jan 15 2025.. I presume Metatrader migrated the EA to a different sever and in that process the EA was removed. Fortunately, all the positions open were at profit and this issue was not negative but it could have been. MQL5
I have an EA that places limit orders according to the price level. So sometimes it is necessary modify them to adjust to the current price. Is there any difference between using the order modify or just cancelling the orders and replacing them again? I know in the end both will do the same thing
Hello, wondering if anyone could help out, im trying to code my EA in Mql5 but i get this error, Any help on how to resolve this. Thank you in Advance Note: The starthour and endhour are already defined Part of the Code concerning time... void OnTick () { datetime currentTime = TimeCurrent ();
Could you please explain how you conduct backtesting for trading strategies and how you determine when it's the right time to start live trading
To all users that seem to want to ask questions in private instead of the forum, please don't. Ask your questions in the forum, not in private. Reserve the private messages for truly private interactions only, not generalised questions about MetaTrader , MQL or other generalised queries. Anyway, I
Hello Does SELECTION _BY_POS exist in MQL5
Hi all, is there any way to access the built-in economic calendar during backtest? I tried CalendarValueHistory and while it does give proper results when executing the code on a live chart, it returns no results during backtest. Thank you in advance
  Bug in strategy tester  (67   1 2 3 4 5 6 7)
Hi there. I searched the forums but could not find an answer or similar existing topic. The issue I have for a while with MT5 is freezing after selecting "Run single test" from optimization results window. The version I have is latest version from my broker (version 5.00 build 4153 dated 22 Jan
hi, i would like to use the MT5 strategy tester with an Expert Advisor running these variables: leverage 1:1000 account size USD$100, $300, $500, 1000 is it possible? i have been searching for articles on this (forum, google, etc.), but to no avail. thank you
I am using MT5, and when I use a yen account, ea using Opencl, I get "cannot get Opencl platforms please install opencl drivers" and "opencl dll not found please install I get the error message "Opencl drivers". Dollar accounts can be traded without problems. I have the same situation with several
I have been reading that news filters based on the MQL5 calendar do not work in the backtesting mode, and that a likely reason for this is that historical news data are rarely available and/or reliable. Yet, when I look over the data available in the calendar, I see news back a few years. So could
Hi Guys, Thanks for your time to help! I wrote my EA to have ALLOT of optimization parameters and tried my best to us the initialization codes to return error codes if the optimization parameters doesn't make sense, thus trying to reduce the time spent in optimization for scenarios that just doesn't
  Too many positions  (10)
Hi everyone, i have a problem on my EA, which works with a grid system. The system should open a new buy position when bid price is 180 points lower than last opened position price. This level is called "nexyBuy". The problem occurs only on certain moments, for example backtesting with usdcad on 10
  backtest mt5  (7)
hello!! in my robot i see big results but in demo account no....where is problem?? look and the foto an dplease help me what need to do,thanks a lot!! lot/
im trying a basic stochastic EA which works great until it doesn't. I've put just a stop loss in the input variables clicked Ok but the stop loss doesn't show when back testing. anything silly I've missed?
folks, how do i detect if a trade transaction was a stoploss hit and that it had closed the position? some code i tried : void OnTradeTransaction ( const MqlTradeTransaction & trans, // trade transaction structure const MqlTradeRequest & request, // request structure const
MT5/Any Trade platform question - As an example, Imagine, Your Account Balance - $10,000, you risk 1% per trade ($100) You want to place a trade and your - Entry Pirce - $100 - SL - $50 - Target is $150 - Question 1 - Is it possible to split your profit in to 3 ? ( I want do this automatically for
Code compiled, with out error. but alert not generating. Is there is any method to verify and correct the problem // Global variables to store spread data double openSpread = 0 ; double highSpread = 0 ; double lowSpread = 0 ; datetime openTime; datetime highTime; datetime lowTime; double lastSpread
I tested not only my bot but famous [redacted] through [redacted] broker and i had this issue while doing so, but the code is ok, no fobidden functions, etc... No 2025 backtesting is being possible to be done. What can i do