Expert Advisors and Automated Trading

Let's look at the results of the tests on one and a few characters. The tests will be conducted in All ticks mode. You can use your own multisymbol EA schemes to reproduce the problem and share your results. Let us denote the problem. For example, if you test one symbol, the test time takes 1
  Python in algorithmic trading  (234   1 2 3 4 5 ... 23 24)
MQL5 is a programming language that is specifically designed for creating high-performance trading applications in financial markets. It offers faster speed and superior performance compared to other specialized programming languages used in algorithmic trading, and its syntax is similar to that of
I thought, why not make a good reference thread . In it I would like to cover the most important questions about the work of markets, liquidity providers, MT5 platform, which are asked not only by beginners. Приглашаю всех желающих, у кого есть какая-либо интересная и редкая инфа излагать её в
What is MQL5 Wizard : The MetaTrader 5 Trading Platform includes the MQL5 Wizard , which allows to quickly generate code of an Expert Advisor (Expert Advisor builder). With MQL5 Wizard, knowledge of programming languages is no longer a prerequisite for creating trading robots . In the past, it
Hi everyone, I coded an EA that uses an ORB strategy. You're also a trading expert, so you're familiar with this OPEN RANGE BREAKOUT strategy. My EA is supposed to plot high and low lines for the first 15 minutes at the London and NYC openings. I've set a lot of parameters to customize this MT5
I found a solution for the many charts that the strategy tester opens automatically in MT5. Till now I closed them one by one with Ctrl F4 and than clicking on the next chart tab. But this goes faster: On your keyboard: Alt W ... this opens the Windows List. Now select the first of the charts you
Hello traders, I wanted to build a simple code that shows my name on a Rectangle Label. So, I wrote it as follows: //+------------------------------------------------------------------+ //| Object test v1.0.mq5 | //|
Greetings why is closing price higher than the stop loss? As soon as it hits my stop loss, stop loss price and closing price are not the same. When my pending orders (buy stop & sell stop) are placed everything is perfect. Once it turns into a position, price changes and stop loss changes. I tried
I have this EA code that seems syntactically correct, but it always fails to compile with an "unexpected token" error. The error appears on different lines each time (like line 75 in the attached screenshot), even though the lines look correct. I have already tried cleaning the code by pasting it
Hello, I am testing on an old account with thousands of closed orders on MT5, that is more than 4 years old. When using functions like HistorySelectByPosition, the entire terminal freezes. I use this function to track the profit of the closed trades when they close. I have also profiled the EA, and
Hello, dear traders! I have noticed the optimization with Cloud Network using only 32 agents but in past (in start of the 2025) was about 440 agents in start of the optimization. Does anyone knows why using so few count of agents
Why, in Debug does it always take 2 Run commands to execute a breakpoint on the following line: ulong orderID_result=result.order; I must hit Run twice to execute a breakpoint placed on the line above. Why? Is this a Bug? It doesn't seem right
In MQL5, can you pass function parameters in any order as named parameters? Google Search says that you can, but it doesn't compile. Google Search sample code. This doesn't compile. void OnStart () { MyFunction(param3 = "new value" , param1 = 10 ); //param2 uses the default value
Please, if this function or the complete code is available, I would be grateful to you
Hey all, is this a system error or an issue with my product ? Any way to resolve this ? Thanks in advance
Could some review my code which I've attached below and let me know why do I occasionally get Error Code 10016 indicating it's an Invalid stops ? For reference here is one of the many log messages I receive in the MetaTrader 5's Journal 2023.06.02 00:23:36.885 Trades '5013799956': failed modify
Hi, I'm trying to calculate lot size in a such way so that it will fit in account balance and satisfy broker's margin requirement. The complexity is added by the fact, that my account is in AUD and XAUUSD is in USD. Here is my current calculation: double marginInitial; double marginMaintenance;
Why cloud network services show disconnected? how to fix it and make it connected
I'm writing an EA using mql5. It works fine when I use MetaQuotes Demo Account but when I switch to my brockers' demo account. It throws an error message in the journal when it opens positions: 13:00:12.294 Trades '45767': failed market buy 10 EURUSD sl: 0.99529 [AutoTrading disabled by server]
Ive come across a warning when writing an expert advisor that I don't understand. I have some ideas on why I'm getting it but was hoping someone could clarify. I'm getting the warning possible loss of data due to type conversion warning when compiling the code attached. I know this error is normally
Hi all, After completing the optimisation of an algorithm, I'm unsure how to choose the best result. I often notice a discrepancy between the forward optimisation and the general optimisation results—so which one should I rely on more? Additionally, I've come across a few inconsistencies in the
I have a python script, which I rented a MT5 VPS and run it on its Python Editor. The code does backtesting, based on this it calculated how long should live trading run. But live trading tends to terminates around the 2-3 hour mark. I have print statements on the code for show if termination is due
Everything has been running completely fine the last couple of months on an EA that I have been using. I noticed that the last few days, none of the orders my EA executes is actually going through. It tries to open a trade however it says "unsupported filling mode" and it's not able to enter. All
I need to add otc chart into mt5 or mt4 . How can i do this. I need source code
Hey guys, i am struggling to get run strategy tester on mt5. I want to be offline no connection to a Broker.(is it possible) I created a custom symbol and import ticks(it shows me when open the chart) Now i want to start to test but i get this error. 2024.07 . 01 19 : 33 : 12.612 Tester tester not
My Bot can't take any trades on XAUUSD even the script likes correct. What correction should I bring please. // global variables input string POINT = "====== Numbers are in Points, not Pips ======" ; //===================== input int Magic_Number = 241106 ;
is there anyone who experienced Trading Assistant with ChatGPT API? I would like to start coding a trading Assistant following Stocks and creating alerts with ChatGPT API. My plan is to create a self learning Assitant which improve the performance in time
I have a variable tradeList that is declared as: CHashMap < ulong , TicketData*> *tradeList = new CHashMap < ulong ,TicketData*> (); I have only 1 line that does a .Add to the list. The code looks like
  Trading Bot  (6)
Good morning, I am looking for an experienced, serious, honest developer to discuss a bot, Urgent
Hi all, In this week, when I running backtest in Meta Trader 5. I notice the history data of USDJPY missing form 2010 to before 2025. Anyone same issue with me. Thanks