Expert Advisors and Automated Trading - page 4

I already turned off Algo Trading and ensured the EA is disabled on every timeframe, but it continued opening trades and significantly affected my deposit. Could you explain the correct way to fully stop or uninstall an EA so it cannot place any further trades
I am developng EA, I want to set max slippage in mql5, do anyone know how to set max slippage
[Deleted]
Buy Signal: Entry Condition : The first candle is below the EMA-5, with its high point not touching the EMA line. This candle becomes the alert candle. The second candle breaks the alert candle, signaling the buy entry. Sell Signal: Entry Condition : The first candle is above the EMA-5, with its
I am experiencing a critical issue where AutoTrading turns OFF immediately after enabling it. Environment: - MetaTrader 5 on Windows 10 - Also reproduced on Mac (Wine environment) - Broker: XM (TradeFin Limited) Issue: - When I click "Algo Trading", it turns ON briefly and then immediately turns OFF
Hi, I am running MT5 on Ubuntu/Wine. I have 28 charts open with a EA attached (on a demo account). I noticed that my EA was missing good entry points, and I found that starting a single chart with EA on my Windows box would open the trade as expected. Further investigation seems to indicate that the...
#define func(arg1, arg2) Print (arg1); arg2; func( "Hello" , ExpertRemove ()) // fine func( "Hello" ,) // Warning Makes no sense for me. There are many cases, when I explicitly do not want to have the second argument, but I also dont wanna mess up my code with even more macros with different names
Hi all. I am migrating my EAs from MT4 to MT5. Yesterday I ran some back testing and worked fine. Today I get this error. and MT5 won't let me run optimizations. Says: - debug version of "Advisors\EA.ex5" detected - optimization cannot be started Thank you in advance for your time
Happy and successfull new year, fellow Traders! Did anyone yet have the problem of the Strategy Tester giving you zero trades / zero results in the overall optimization window? When I start the optimization (as seen in the screenshot below) it does some optimization step and instantly finished with...
Can you tell me if this is a realistic tester figure? And is this a good or bad result for a year with a deposit of $3,000
[Deleted]
Hi guys, I was interested if anyone have some EA that is working stable on prop firms like FTMO and similar. All of them I was trying, free and paid were not good at all. I also tried freelance with job offer, here I was not successful as well with anything stable and performing for long term
Use the CODE button (Alt-S) when inserting code. A moderator corrected the formatting this time. Please format code properly in future; posts with improperly formatted code may be removed. The paths are correct both in the Python file that creates the signal and in the expert advisor , but the
After this mornings update on 24th July '25. Every EA I try to compile, even ones that have previously had no issues, are now showing fast 'Fatal Compiling Error : Unknown Error' Im going to assume this isn't just myself having the issue. Is there something I can do to counter this issues, Or just
I'm looking for Expert Advisor for MT5 that can help me: 1. to set tp, sl automatically (which my tp and sl are always fixed, like when I set limit, tp & sl will always be 100pips) 2. change my sl to entry point (breakeven) when some conditions triggered (when order running between utc 1400 to 1600
Hi guys i want read my ini file created inside of File folder of metatrader5 , is possible to do that exist a ini command for doing
Hello my name is Bruce , I'm trying to build a portfolio EA that trades one order at a time, open to close, in SQX 141. I used Market pos. count = 0 and ended up with two open trades , hoping someone has the answer, I'm using MT5 hedging. Thank You
Hi everyone, I have a strange problem with an Expert Advisor in MetaTrader 5. The EA is a purchased EA from the MQL5 Market . On PC 1 , everything works normally and the EA places pending orders immediately . On PC 2 , the EA loads and initializes successfully , but it never places any pending
I have an EA which makes decisions based on several diferent symbols. The primary symbol the EA is attached to is EURUSD, but it uses tick data from EURCHF. USDJPY, XAUUSD,... I use CopyTicksRange() to get data from other symbols. And this works fine when trading live. However when I attempt to use
I think, since after I have imported Dukacopy tick and bar to severals custom symbols, my local network farm agents became "not used". Is there a way to use the remote agents for non customised symbols? I have tried to use local symbols, ochl in local terminal and yet connect to agents are still
I've recently seen quite a few updates to Integration with Python, including various functions. Does it can be used in back testing? According MQL5 Reference, I found that there is no such function. At the same time, Socket functions can not be used from the Strategy Tester. Is there a way to
I just discovered an error when decoding base64 code after updating the terminal (in previous versions this error was not encountered) string Base64Encode( string text) { uchar src[], dst[], key[] = {}; StringToCharArray (text, src, 0 , - 1 , CP_UTF8 ); ArrayResize (src, ArraySize (src) - 1 );
  Gold BOT on MT5  (1)
Subject: Gold BOT on MT5 Hi everyone in the MQL5 community, I’m currently developing an Expert Advisor (EA) called ConvexCap GoldBot for MetaTrader 5 (MT5), specifically tailored for trading XAUUSD (gold). The goal is to create an automated scalping strategy that capitalizes on gold’s high
  EAs wont place trades  (11   1 2)
Hi I am new to MT4/MT5 and I'm trying to backtest some EAs. There are a couple EAs I've tested that will place trades like the <Deleted> bot but I tried 4-5 others and they all fail to place any trades. I noticed in the journal that the bots do not initiate any buy trades but has many sell trades
I've looked for any documentation on what's under the hood of this function with no luck so far. I'm trying to calculate required margin for upcoming positions, and OrderCalcMargin() gives me a different value than the standard calcuation that I'm digging up everwhere else on the web. I'm currently
[Deleted]
Assuming there is a stable and verified live trading record, what is the typical price range for high-end Expert Advisors? Would it be advisable to start with a lower price to gain user reviews and credibility, and then gradually increase the price over time
I want to get the position ID of a trade right after opening it, but it always returns 0 . Here is the code I’m using: if (trade.Sell(volume, symbol, 0 , sl, tp)) { ulong order_ticket = trade.ResultOrder(); // Trying to get the position ID ulong pos_id = HistoryDealGetInteger (order_ticket
MT5 Backtest is not working it stuck after backtest and don't print the report.( after backtest i waited for 1 hrs but it is not printing report) mt5 backtest is not working it is not printing the report, it stuck at last and not print report, pls resolve this issue as you can asee backtest is
Hello, can you help me write this EA for MT5? If the previous candle is a BUY candle, then open a BUY. If the previous candle is a SELL candle, then open a SELL. If there is an existing position that matches the logic => keep it, do not open a new one. If there is no position that matches the logic
I want to create a robot (expert in MetaEditor) but I have a question: Does my laptop need to be on when the expert is working? For example if a robot wants to work for 5 hours, should the computer be turn on for 5 hours
Hello. I have simulate in my EA situation when program place pending order and when price going to hit it, in account no money for execution order, so I get information from server : 2026.02.28 17:12:44.096 2024.10.23 19:31:28 current account state: Balance: 1000.00, Credit: 0.00, Commission: 0.00