I've been experiencing an unusual issue with my trading system related to position sizing. While the system generally operates smoothly, there's an intermittent occurrence, happening about once or twice a month, where it attempts to place an order with a 100-lot size. My position size is determined
I have a function I'm trying to convert to MQL5 from MQL4, it works perfectly in MQL4 but MQL5 for some reason breaks without finding the string. The complier shows no errors, I think something is wrong with one of the strings. I attached the file I'm trying to read as txt as well. Any help would be
I'm facing one weird problem. I notice the EA i wrote is way slower than EA generated using EA generator wizard. I'm trying to troubleshoot and eventually removed all codes and it is still slower than EA generated using the generator. does anyone have the same problem? the "Empty EA" literally does
Hello, I’m sure others have asked this question but I can’t seem to find them. Is there an existing EA that operates on the same principles as the Machine Learning Lorentzian Classification indicator on Trading View? Thanks
Since yesterday I can't debug my main EA because the debug button is disabled (grayed out). I am able to debug indicators, but not the EA. Any body knows the reason for that to happen
Hello everyone, hope everyone is keeping well. Just have an issue with the following functions code. All I am trying to do is get a load of data sent to a CSV file from a strategy test. I run the function in the OnTester() function once the strategy test has completed. I have managed to get
How to disable showing object name while hovering mouse over objs
Hello all, Should I backtest every EA I want to try with every tick or every tick based on real ticks for accuracy ? Is there any upside or scenario in which I would want to use every tick instead? If so what exactly? I'm currently optimizing the EA parameters using cloud agents with every tick
Hi, Please note I am not a core programmer/developer as my profession having not coded in decades so not too conversant with programming thus my code is of a beginner. I created a script to export some parameters of my horizontal lines into a csv file and sample data from csv is as below H1
My question is in the context of this discussion: https://stackoverflow.com/questions/2052017/ravioli-code-why-an-anti-pattern The code that I come across on MQL often lacks levels of abstraction and modularity. I would be interested to see an example of code with an excessive level of abstraction
Hi all! I scalp while watching 20-30 charts and when I get into positions on a few of them, I find myself needing to manually adjust the window sizing or minimising all others to then arrange windows (tiled). Is there a way to run a script which minimises all non-open-position charts & then arrange
Hi, Just got this error message in the validation report: test on EURUSD,H1 (netting) not synchronized with trade server tester process creation error [metatester64.exe][1455]; please check if it is blocked by antivirus software test agent start error I think there may be an issue on the MetaQuotes
hello world, can anyone teach me how to convert a trading indicator into a trading robot
Hello, I keep getting Invalid Request errors while trying to delete a pending order on the MT5 strategy tester. Running the EA on live has no issues. I've paused the EA on a breakpoint to show the issue: The journal shows this error: Code: #include <Trade/Trade.mqh> #include <MT4Orders.mqh> #include
Creating custom symbol , filling up its rates then navegante into it stays in waiting for update.
(2)
When creating custom symbol then adding its rates then using ChartSetSymbolPeriod to go to that new symbol , the chart stays in waiting for update mode until the user moves the chart. (the chart updates the rates constantly , but not shown until user moves)
this is my mt5 EA it has a recovery function.it trades one trade per day and i want to make is if it loses the first trade the recovery trade enters at the opposite direction with more lots so far i made it but i need the EA also to not taka a recover trade if the first trade is profitable but i
Hi, I have a mql5 code/program that creates horizontal lines (OBJ_HLINE).I am able to set other parameters of the horizontal line like name,font size,color among other parameters via code but cannot set the object description name through any function that I am aware of and I have to manually click
Hi there! I'm looking for a good source to start learning MQL5 to build my own EAs. I was spending a few hours, sampling different youtube channels, online courses, etc to get started but can t find a path which I can rely on on. Can you please suggest some good courses, books, videos, etc that can
void UpdateStopLoss() { if (!InpBEtrade) { return ;} double bid = SymbolInfoDouble ( _Symbol , SYMBOL_BID ); bid = NormalizeDouble (bid, _Digits ); double ask = SymbolInfoDouble ( _Symbol , SYMBOL_ASK ); ask = NormalizeDouble (ask, _Digits ); int total = PositionsTotal (); for (
hello.. please show me how i can get equity amount of previous time periods, like 5 mins intevals then store them in some kind of array. just for comparison purposes, something like double equity( int timeframe) { double result = accountinfodouble( ACCOUNT_EQUITY , timeframe); return result; }
Hi, i need to exports tickdatas from MT5 with Time format like : yyyy.MM.dd HH.mm.ss.fff Please, could you help me ? i tried with gettickcount but understand nothing. How is it possible to record seconds ans miliseconds for each tick ? my script
Since the latest version of MetaTrader 4 - Verion 4 - Build 1400 - 10 Nov 2023 was released I get the message that my product requires active MQL5 account in Tools->Options->Community. My user ID and password is entered on the Community screen. The same user ID and password I used to enter this
I've been using an specific broker for not that long, like 5 months. I've developed my own EA and until a few weeks ago I noticed every now and then, not always, during my backtesting I would see ticks starting at 13:00 hours but the Symbol Specification in MT always showed quotes and trading
Hello everyone, I hope you're well. Is there a quick shortcut system (hotkeys) for opening and closing orders? Are there any ready-made solutions or compatibilities with the Stream deck? Or maybe scalping links or tutorials where I could find things that look similar? Best Reguards, ZeroCafeine 🙂
Novice question for sure but... am i able to safely backtest on a live account? It strikes me the spread is different between account types from the same broker, and i want to test against actual historical data from the data stream yhat i would be using. I assume Id choose an historic time frame
As beginner I want to know, resumed but step by step that I need to do for a fully automated trading , without human intervention, and the price to get a complete system. to do the fully automated training with a broker selected
I am programming an EA which accesses data from previous bars, makes calculations and based on that determines the signal. It operates on D1 only. It firstly determines the max shift from the current day (one which tester is set up to start) to the last day in the database. In my case it is
Hi all, I'm trying to detect the last profit/loss in the transaction history (which I think I've got right), but something unexpected is happening, hopefully someone will have an idea. Here's the snippet: void OnTradeTransaction ( const MqlTradeTransaction & trans, const MqlTradeRequest &
I have pine connector EA set up connecting Trading View and MT5 on the 5%ers Prop Firm download of MT5. I have target type set to price, volume type as percentage calculated based on Loss (which is calculated based on risk). My EA should receive a signal with a risk %, a buy/sell command, the
Dear technical team I have an EA which is working on my local pc but when i migrate it to vps its not opening closing trades EA is very simple and small and not using or calling any DLL files. i checked vps journel and found these error lines showed in screen shot. please advise what to do thank you

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.