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. Приглашаю всех желающих, у кого есть какая-либо интересная и редкая инфа излагать её в
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
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 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
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
  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
I'm encountering unexpected behavior with the order_send function from the MetaTrader5 Python library. I believe this might be a bug. Issue Description: Python order_send function returns an OrderSendResult object analogous to the MQL5 MqlTradeResult structure, which includes the attributes: retcode
Hi guys, please can someone help me and write me a complete divergence function with positive and negative RSI by default and hidden? but the trade should be opened as shown in the image. Only the divergence function, with these conditions. thank you Positive divergence Negative divergence Hidden
Hello I created my own EA for my personal use When I back test on one broker the result is profit for example $250 test balance with 0.01 lot end with profit like 10 or 20 percent profit, but when test the same EA on another broker data the result is loss What makes the backtest results differ? and
My goal is get the Position history of my account into excel spreadsheet automatically. No export to CSV or stuff like that. I found a lot of examples to get real time price, open and close trades, bid, ask and etc... nothing about retrieve the trading history. The same way you get the automatic
Anyone use or know of a utility tool that will move the take profit to break even when the position moves against you a certain number of determined pips? Thanks in advance
Greetins, I'm facing trouble starting my recent aquired robot. I can test it with no problem on MQL5, but when I try to add to my real account, I keep getting the anexed image error. I'ts in portuguese, but it says: "Activate automatic trading for xxxxxx". Algotrading is already enabled. The logs I
Hi! I was backtesting my code it was working kinda perfectly but suddenly from yesterday it didnt work...The thing is it was working around 9 pm...but after that at 9.05 IST the same export advisor didn't give me any backtesting results...no issues with the code...where as other codes were running
So I have been reading through https://www.mql5.com/en/forum/451498 and https://www.mql5.com/ru/forum/442814/page2 and from what I understand the iClose/iOpen and things like CopyTime can return wrong values if not synced up and is therefore unreliable? But with both don't you still just check and
Hi guys, I have an EA compiled without any errors but in backtesting it wont do anything, just stucked. There is also no errors in journal. What I'm missing here: #property copyright "Copyright 2023, MetaQuotes Ltd." #property link " https://www.mql5.com " #property version "1.00" #include
Hey, I have been trying to write one function that would calculate LotSize regardless of the instrument, but it seems that despite all my efforts the program seems to throw weird lot sizes anytime I use it for index - ES or NQ. It's working good for forex, gold and crude. I am yet to try it fully on
Greetings All, If I may, Id like to start a discussion on how and why you choose which optimized setting to use after results. In particular, Profit v Drawdown. Or do you use Profit factor? I have attached two results as an example. Which of the two would you choose and why? * If there is already a
Hi , I am writing a code in OnTradeTransaction() event handler ,that whenever order hit stoploss i am taking it's position id of deal type DEAL_ENTRY_OUT and iterating HistoryDealTotal() to find DEAL_ENTRY_In for that position_id but problem is HistoryDealTotal() is holding only latest deal for
if more than one tickets are opened at any time (not opened at the same time), MQL5 wasn't able to close all of the tickets (see enclosed figure). Enclosed: Call to close long and short Code of closing functions Figure show not all are closing void closeLong(){ int total = PositionsTotal ();
Hello great people. Kindly help me fix the error in my EA. It fails to pick trades. //+------------------------------------------------------------------+ //| BB_Ichimoku_AD_RSI_ATR.mq5 | //| Stricter Confirmation Logic v2.6 |
  Best AI for MQL5  (6)
Good morning everyone, I was wondering if anyone has experience with any AI that can really help you with writing MQL5 code and, above all, that understands the difference between MQL5 and MQL4. From personal experience, I have tried several AIs, I can say that my experience with them is rather
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
...please help...I updated my expert...what are the next steps and what should I do with the data...how do I adjust the expert to the update so that I can test it for better results...what should I do with the data from the update