Why did you post your coding question in the MT 5 General section (a miscellaneous catch-all category) instead of the MT 5 EA section (non-indicator coding)? General rules and best pratices of the Forum. - General - MQL5 programming forum ? (20 17 ) Next time, post in the correct place. I
[Deleted]
Hello, Using #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> CPositionInfo m_position; // trade position object CTrade m_trade; // trading object Will make my EA slow? or should i use purely for example CTrade m_trade; or directly
Hi. Is there anybody here who has ever written an expert adviser which being able to read news feeds, and then distinguish between bullish and bearish ones? (Ex. Reuters, New York Times, Bloomberg, etc) If you know how does it work or if you already have that script inside your computer then would
When I enable cloud network for optimization in the strategy tester, it looks like i am limited to a certain number of tasks. How can I make sure that all networks are used and there is no limit to the tasks
Does anyone know if there is a way of sending a user a message on MT5 mobile without the MT5 terminal and EA being switched on? Thanks in advance
In general, my performance with backtesting and optimizing got worse and worse since I started with MQL5, but for some reason, since 2 days, some cores have just been disabled out of nowhere and get auto-disabled when I enable them again. Today, when I tried to optimize something, all my cores got
[Deleted]
Strategy // ===== Indicators ===== bool GreenCandle = true ; bool RedCandle = true ; double RSIValue = fRSI(rSymbol, SelectedTimeFrame, RSI_Period, RSI_AppliedPrice, SignalStrengthValue); if (RSIValue == 0 ) continue ; double
I want to count history deals from down to up. But my code not work perfectly. Please help me anyone. HistorySelect(TimeCurrent(),0); if(HistoryDealsTotal()>0) { for(uint i = uint(HistoryDealsTotal()-1); i >= 0; i--) { if(Deal.SelectByIndex(i)==true)...
Hello everyone, I have an Expert Advisor that operates based on trend conditions; it opens trades when the market starts to move in a clear direction (based on indicators). However, during sideways or ranging periods, it tends to accumulate losses or end up in break-even situations according to my
I'm using CustomRatesUpdate() function . It costs up to 2-3GB of disk space on real time running interval 1 sec in 24 hours (version A) but while I copy M1 timeframe data from server then CustomRatesUpdate() from 8/2024 just in 7MB (version B) . CustomRatesReplace() also has the same effect Version
Dear Forum Members Wish all Marry Christmas & Happy New Year. I have got above error while running Strategy Tester. Any clue what is this could be? Regards
I am trying to find a way to calculate the appropriate volume for longs and shorts dependent on a fixed percentage of risk. I stumbled across the CMoneyFixedRisk money management class and set it up in my EA. Every time it is called it seems to always return the value 0.0. Below is an example of how
#property copyright "Lucas Mariano Vieira" #property link "https://www.mql5.com" #property version "1.00" input int MAPeriodShort= 9 ; input int MAPeriodLong= 21 ; input int MAShift= 0 ; input ENUM_MA_METHOD MAMethodS= MODE_SMA ; input ENUM_MA_METHOD MAMethodL= MODE_SMA ; input
Hello I am trying to integrate an economic calendar into my MT5 EA so that the robot temporarily blocks trading before important news events. I am using the stub function EconomicNewsGetNext(), but I keep getting compilation errors like: - Undeclared identifier - Implicit conversion from unknown to
Context: This post is intended to be useful to those looking for ideas on how to set up an optimisation/setfile discovery process for themselves. Much more selfishly, I am also looking for advice from the more experienced on my optimisation process (which I will lay out below). I have been trading
Currently I am Using the Below Code In MQL4, //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ bool openURL( string url){ int APPEND
As you can see I already open the window to access those feature. But the window is nowhere to be found. I'm using MacOS M1 Tahoe 26.2. And Exness Demo Account for this experiment. Based from ChatGPT I still can access signal tab with Demo account, but why it's greyed out
Hello, I bought an Expert Advisor. Suddenly it's gone. The corresponding signal is also gone. In this case, it's the "Gold vs. Bitcoin Arbitrage" EA. Why aren't buyers informed about this ? It's not just strange, it's downright outrageous
Hello, While demo testing an algoritmic strategy on the US500, I get the message 'US500 history data load error.' Does anyone know how I can solve this
I am having an issue where I go to my VPS where I have MT5 running around 50 EAs, each on their own chart, and find that 30 or so will have removed themselves from the charts. What could be causing this? Thanks
Hello, using MT5 Strategy Tester with EA that is placing trades on multiple symbols the tester is not stable! It is suddenly stopping with the error: "disconnected. connection closed." Strategy tester is running on the local core. With this settings: Please fix this bug. Best Regards, Dmitry
I'm not sure I should have created this topic, but it's never too late to delete it😁
Hello there. I am trying to use the MT5 strategy tester since last year but it does not work. I noticed this after MT5 update at the end of 2023/ early 2024. Since then I have tried different machines, diferrent OS (Win 11/ Win10), different broker. It just does not work. The Core 01 disconnected as
While attempting to test my EA, this message keeps popping up and my test doesn't run. Ive attached an image of the errors, and spent time trying many things to fix it, but nothing seems to work. Thanks for the help
Hi everyone, I am struggling with a persistent issue where local agents in the MT5 Strategy Tester are completely non-functional , despite several troubleshooting attempts. System Specs: CPU: Intel Core i9-13900H (20 threads) OS: Windows 11 The Problem: Service Failure: The Windows Event Viewer
Hello All, I am new to Forex and MT5. Yesterday I was doing backtesting without any problems, and this morning I was able to do one. But the rest of the day after I click 'Start', the test goes real fast and displays no data. I have tried the backtesting on different devices, tried different EA's
I'm having trouble with an EA I'm making, all works fine until at some point it stops working and the following text is outputted to the Journal tab (not to the Experts tab): "Open charts limit reached"
No other error or warning is given whatsoever, and I have no idea what part of the code is...
I have a problem with the strategy tester in MT5. Why, with the same EA parameters and settings, does it show me great results once and then wipe my account in the next test? Let's say I test the EA on a 5-minute timeframe and I get great results, I change it to a 15-minute timeframe and I get great
Hello, I am using MT5 Web Terminal with [ edit ] After installing the EA, it does not automatically set Take Profit and Stop Loss when trades are opened. Please confirm if: 1. This EA supports MT5 Web Terminal 2. Any extra settings are required for TP/SL to work 3. MT5 desktop is required instead of
hi, want to run my EA on MT4 on vps hosting how to proceed
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.