I was hoping someone knew this answer. How many bars (candles) of historical data can MT5 do back-testing on? For instance on TradingView the limit is 20,000 bars. Thank you in advance for your knowledge
MQL5 seems to be having some issues with calling functions, despite correctly not only including the the file with which the function is situated in #include <RunDiagnostics.mqh> but I have also correctly instanted the required variables, or in this case, no variable needs to be passed. Having been
Can anyone tell me how to report the profit as a sum of multiple orders that have the same stop loss and/or take profit on the chart as text? I'll give you the program I developed, but it doesn't work for me. On the contrary, it works in the tester, I didn't understand anything void
Hello fellow traders, I'm working on the HLINE alert trigger function of my EA, and I've stored as a ressource WAV sound files for a few symbols, and wanted to use the Alert() function for when the audi file is not found. But I realized that when you use Playsound with a resource file, it will
I will show the part of my code that im having trouble with any tips would be much appreciated. Have a nice day. void OnTick () { if (handleIndicator == INVALID_HANDLE ) { handleIndicator = iCustom ( _Symbol , SuperSignalTimeframe, "IndicatorName", SuperSignalPeriod1
I started coding the EA in MQL4 but decided it was time to switch to MQL5. I want to write an EA which will take trades off support and resistance levels , but will also use protective hedges to guard against loss in case the trade doesn't go the direction it is supposed to. The protective hedge
Bitcoin market is open ! But I'm launching on History and ctrade say - Market closed . 2024.09.28 11:47:39.054 2024.09.01 00:00:00 failed market buy 0.01 BTCUSD [Market closed] 2024.09.28 11:47:39.054 2024.09.01 00:00:00 CTrade::OrderSend: market buy 0.01 BTCUSD [market closed]
Hey all, I wonder if anyone can help me. I am trying to launch MetaTrader 5 using a batch file and then loading a custom ini file that I have created using the information on the https://www.metatrader5.com/en/terminal/help/start_advanced/start#command_line page. This is the current information
hello I have a bug when I want to create a robot I tried everything with 10 of code or account settings but on several accounts or brokers the problem persists wrong parameters acount function used is rsi ima ect can you help me
Dear I want to optimize my trading robot in MT5, I need a computer, and I need to suggestion a configuration to build a PC that is best for MT5 optimization
I have this MQL4 code: Which I generated using ChatGPT and then read resources and help groups online and fixed the errors Now It's giving 0 errors and 0 warnings, but still not working as expected Here is MQL4 code: //+------------------------------------------------------------------+ //|
#define EXPERT_MAGIC 123456 // MagicNumber of the expert //+------------------------------------------------------------------+ //| Closing all positions | //+------------------------------------------------------------------+ void OnStart () { //---
Trying to write code in python to download MT5 historical tick data into a CVS file
Hi All, I need help in fixing errors and warnings on an AI EA. The AI EA is based on Bollinger bands BB_NONE, // no BB strategy BB_SQUEEZE, // BB squeeze strategy BB_BREAKOUT, // BB breakout strategy BB_TREND, // BB trend strategy BB_REVERSAL, // BB reversal strategy
Hello all, I want to sell an EA in the Market. Can I use this code below, or is this not allowed by the rules? thanks #include <WinAPI\winapi.mqh> #define MT_WMCMD_EXPERTS 32851 #define WM_COMMAND 0x0111 #define GA_ROOT 2 //+------------------------------------------------------------------+ //|
Hi, I am seeking your help, I am trying to upload an EA that trades news to MQL5, I am having the following error: test on EURUSD,H1 (netting) tester_file 'Calendar.bin' is not exist tester_file 'Calendar.bin' is not exist strategy tester report 6 total trades I am using the following library to
Hello! i personally need an urgent help on how and what can be done in a situation where my robot files and name is not enlisting just underneath the navigator/experts Advisors section. Just to generally put, my EA is not installing, i help any best expert advice. is there any best way out. i am
https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradeorderdelete Why OrderDelete() is doesnt work? please help me bool DeletePendingOrders(CLOSE_PENDING_TYPE pDeleteType) { bool error = false ; // Loop through open orders from latest to oldest for ( int order = OrdersTotal
I have been working on an update on one of my programs, The code to validate lot size seems fine mostly as I have used it in several programs in the market. Error: test on EURUSD,H1 (netting) 2021.02 . 05 00 : 00 : 00 failed instant buy 0.05 EURUSD at 1.19628 , close # 2 sell 0.05 EURUSD 1.21301
My EA isn't taking trades on demo. I works in Strategy Tester. I've checked the three more obvious culprits, live trading, auto trading, allow automated trading. I've tried three different accounts on three different brokers. It should look like this pic from tester. The closes you see there are
Hello, why this error ? kindly have a look at the screenshot attached. I have no clue why this error ? And what's disconnected in that error ? What step I need to solve this error ? Someone please help! In case you need specific code to check, let me know I can post here. Since 2 days but this error
Hi there! Dear friends, I like automated gold trading using a bot, and very often I reach through technical analysis to the conclusion that the gold price will move intraday inside a price span that includes an upper and lower price. These points (prices) are most likely where the trend will
I don't have any confidence in MT5 testing and always go back to MT4 testing. Is anybody else of the same view or am I'm doing something wrong? My preferred platform is MT5. regards G
I would like to ask if there is any chance to use my own historic data in MT5.
Is it true that I must have a broker and try then to get the historic data from him?
thanks
Hey everyone, I'm facing an issue that’s been driving me a bit mad, and I’m hoping someone here can shed some light. I have a simple Expert Advisor (EA) where I'm using the MACD indicator. When I run the MACD inside my core module , everything works as expected. The MACD values are retrieved
// Khai báo toàn cục về rủi ro và số tiền thua lỗi double Risk_amount = 10.0 ; // Khởi tạo với giá trị mặc định gấp đôi Last_loss_amount = 0 ; // Biến lưu số tiền bị lỗi void Tính toán Rủi ro () { // Choose toàn bộ lịch sử giao dịch if ( HistorySelect ( 0 , TimeCurrent ())) { int
I am creating a trading EA based on the martingale method. However, the following order is not being calculated according to martingale to offset the loss from the previous order. I would greatly appreciate your help, as there seems to be an error in my EA. Thanks
Hi I am building a custom EA for MT5 When it is attached to a chart, the Socket Connection is made in OnInit() function & the connection is closed in OnDeinit() function while detaching the EA. My code is: int socket = - 2 ; // Socket Variable bool soc= false ; int OnInit () { if (socket == -
Hi, I'm a TradingView user and thinking of switching to Meta Trader. Quick question - is it possible in Meta Trader to create automated trading systems using chart drawing tools? For example, say I drew a trend channel over the price and wanted to create a program to buy at the bottom of the channel
Good day Trust that you are all well. I have tested numerous EA's i would like to know why some EA's take hours to do a 6months back test and some others do the same test in minutes even if they have more setting options. The same goes for optimization I only optimize 1 or 2 parameter at a time. I

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.