Hello, Is there any way to reduce the amount of historical data in MT5? I don't actually need it for 10 years, but actually only for the last week or so... And where is the data stored in which directory? My problem is that the historical data is exceeding the storage capacity of my rented server
The HistoryDealGetString() has a DEAL_EXTERNAL_ID string property for HistoryDealGetString() , but the CDealInfo class does not have an equivalent DEAL_EXTERNAL_ID string function. Why not? If the CDealInfo class implementation incomplete or is the DEAL_EXTERNAL_ID now an obsolete property? Is
Hello everyone, I’ve been working very hard on developing several Expert Advisors and I would like to ask for advice from the community: what are the best options and strategies to promote my EAs here on MQL5? I know that the Market section is highly competitive, so I’m curious to hear from more
Hi there, I'd like to know any MQL4/5 function to get commission fee before open order. Thanks in advance.
Hi in mql5 in s possible intercept keyboard +mouse left, example: i want take alt+ right mouse button , if happen this i want draw in chart a line is possible ? thanks
I run an EA via VPS but I've lost the input settings for it and can't find/recover them as I deleted the tab that runs the EA manually. What can I do to recover those inputs? The magic number for that specific EA I still have and is still functioning via the VPS
I have a bot im done with, have good result with drawdown max -4% in consecutive loss over a year. Then i tested it on a demo and it came down to -8. everything looks good on visible mode and 0 errors. anyone got same problems like this before? thanks for answers
Hello everyone. I am new with programming Expert Advisors (EA), in my research I found that in Meta Editor there is a wizard function, which allow the user to create an EA with some predefined parameters, with this some questions came up to my mind. -Wizard's EA compile perfectly once the parameters
Hi fellow trader, I'm trying to export trading report after optimisation. But the data in the report are from enough; i only see order. Not the position, not the result of the trade, and it's quiet a headache to work with such thing. According to the the documentation, i should be able to find the
I wanted to add commission for the EURUSD custom symbol I had downloaded from tickdatasuite but it didn't let me click "OK" to save and close the window
Hello , I'm using [broker name redacted] mt5 plateform if account leverage is given by instruction : AccountInfoInteger ( ACCOUNT_LEVERAGE ) But each symbol has sometimes different retail leverage value. e.g. My plateform leverage is 30 But CFD Gold retail leverage is 5 And CFD Tesla retail leverage
Hey guys, have been working on a simple trade manager here. I got a few problems which I will appreciate getting help. The risk editable box fails to accept keyboard inputs instead its selected like an object. So I can't edit the risk amount. Also the dragging of the panel is sensitive, if I drag it
Hello everyone, I'm seeking help with an initialization issue with the MetaTrader5 Python library. My script is as follows: import os import MetaTrader5 as mt5 from dotenv import load_dotenv load_dotenv() print ( "Initializing..." ) # Initializes the MetaTrader5 connection if not mt5.initialize()
How can I test or use classes derived from CExpertSignal without using the StrategyTester? For example, I have CSignalMA (a child from CExpertSignal, located in Expert/Signal) . I want to have something like this: 1. go to the last 200 bars 2. show entry, exit signals derived by CSignalMA in
Is there a way to programmatically, or using Settings on MetaQuotes, to have an EA automatically selected and run on a chart? It would be nice if the account could be set up to automatically select a Chart currency, timeframe and an EA to run on the chart whenever the account is started. How is this
I have discovered that during MT5 backtesting, when a symbol's swap type is set to "in percentage terms," the swap fee is calculated as zero. This is likely because the value is too small and the program rounds it down to zero. Taking ******* US100 as an example: the current price per lot is
Hello, I’ve developed a custom EA that has a maximum memory footprint of 1.5GiB per agent/thread when running locally. With an average memory utilization of under 1GiB (~600-800MiB) Whenever I run the current year period, that is from January 2025 until August 2025, I get a critical error displayed
Hello All, I've seen this mentioned in various places, but I haven't been able to find a solution on any of the threads that have worked for me. When I run a optimisation session on my EA, the "backtest" results section matches up with the "run single test" perfectly everytime, whereas the forward
I have an EA that assigns a different magic number to a particular strategy or setup within the single EA. Is there a way to get MQ5's HistorySelect() to retrieves the history of deals and orders for only a specific Magic number? Does HistorySelect use a Magic number when it creates its lists of
Hi, I have a technical question regarding automated preset management for Expert Advisors in production environments. I wonder if it is possible to programmatically load .set preset files into already-running Expert Advisors using MQL5 code? or can MQL5 scripts automatically attach Expert Advisors
If i buy 12 months sub for the vps ; but also have 1k free minutes, what is used first? I have 22 charts, but in terms of the vps, can only have 16 charts migrated to the vps when on free minutes, so -- will my full 22 charts be migrated or just 16
Hay, I am new to programming and this is my first EA. I used PositionsTotal()<=0 to count all positions, now I want to use magic numbers to count positions. I would like to ask if there are any other solutions or methods. if (PriceInfo[ 1 ].open > Buffer_belowlin_FS[ 1 ] && PriceInfo[ 1 ].open >
I use CExpert and initialize the constructors in int OnInit() : int OnInit () { if (!myExpert.Init( Symbol (), Period (),ExpertEveryTick,ExpertMagicNumber)) { //--- failed printf ( __FUNCTION__ + ": error initializing expert" ); myExpert.Deinit(); return (- 1
I bought <EA name removed> and after installation I change the settings but when I open it next day the settings change to default, how to solve this problem thanks
Repost with photos... I am using a custom symbol with imported tick data and am testing the spread option where it lets you input your own desired spread number. But for me I have found that no matter what I input in that spread box, either 1 or 100, the results in the backtest do not change. I have...
In the following script, history_order.PriceOpen() returns value of 0.0. Why
Hi, I try to program a simple script. My question: How do I get the value of the ATR (average true range) indicator in a script? I've found the function "iATR" (https://www.mql5.com/en/docs/indicators/iatr) but it does not return the current ATR value. Any ideas? Thank you. Best, Chris
In MQL4, OrderSend() has a color parameter (see https://docs.mql4.com/trading/ordersend). Since I'm using MQL5 with the CExpert class, I added the standard CTrade class to the CExpert instance. CTrade has an OrderOpen() function, which unfortunately doesn't have a color property. However, it does
Hi MQL5 Community, I'm working on an EA specifically for XAUUSD and running into some interesting challenges that I'd like to discuss with fellow developers. The Technical Challenge: Gold's behavior differs significantly from major currency pairs. While EUR/USD responds predictably to technical
I have recently run some 1, 3 , 5, 10 and 15 year back tests with my EA. I came across something I have never noticed before and I am pretty concerned about it. I ran a backtest from Jan of 2015 to Current data and my maximal DD was at roughly 10% See picture one. But when I run from 2015 to 2020
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.