Expert Advisors and Automated Trading - page 7

I am new to using MT5, after using Ninjatrader, and I can't believe that a trade's SP or TP can be reached and the trade ends and there is no alert noise to inform me. To me this is a basic requirement for a platform and I can't believe it is not on MT5. I can't find a solution. Do MT5 traders
According to https://www.mql5.com/en/docs/basis/operators/return, we should enclose the value or expression to be returned in parentheses, for example: int CalcSum( int x, int y) { return (x+y); } But the following does also work: int CalcSum( int x, int y) { return x+y; } Is there a
I want to create a custom symbol that supports negative prices, starting from a JSON file. I’ve noticed that if I set the PricesAllowNegative property to 1 in the JSON file, this value is ignored, and negative prices are still not allowed in the custom symbol properties. If I manually enable this
Hello, I am running this ExpertMAMA and it is showing small but generally consistent profits.  It is a quite complex code but has been around at least since 2011.  The issue I am having is that every now and then it shows a large loss and when I review the code I could not figure out how to...
Hi - what I want to do is in the below search: https://gemini.google.com/share/2473aceac1e9 I want an expert advisor which trades different accounts with the same strategy. Same risk for all of them. If someone codes such an EA, how can I backtest hundreds of different periods automatically without
  Magic Number  (3)
I Install my EA on 4 Charts i.e. BTCUSD 15MiN, BTCUSD 30 MIN, XAUUSD 15MIN, XAUUSD 30 MIN. I want to know that I require One Magic Number for All or 4 Magic Number
  CIATR  (3)
Hello, I tried to use for the ATR calculation the include files, but I always get Empty Value out here the script #include <Indicators\Indicator.mqh> CIndicator _indi; #include <Indicators\Oscilators.mqh> CiATR atr; void OnStart () { atr.Create( _Symbol , PERIOD_CURRENT , 14 ); Print
Hello, I'm not sure if that is the right title or the right place but here it goes: I have written a system using a couple of standard indicators and a couple of other custom ones. The other two are just to visualize the numbers the EA is using to make decisions on chart. The indicator needs almost
Hello, I've built a framework to train models and export them to ONNX files. However, I'm running into a resource limit error during compilation. It seems that the limit is set to 128 MB, which is quite low for a medium sized model. Has anyone found a way to get around this limitation? Thanks a lot
Hi, I am getting random responses for the same WebRequest() on the same server? The curl response works absolutley fine. Anyone else seeing these issues? Output from the curl statement on the server which is correct and works fine. C:\Users\Administrator>curl -vk
Hello, I would like to bring to your attention what, in my opinion, is a relevant issue that occurs during optimization tests. The optimizer always reports, in the Drawdown % column the value of the Equity ABSOLUTE DD (in %). I hope we can all agree that, when evaluating the risk of a setup among
Is there some kind of setting to allow short trades with an Algo? I can manually place a short trade, but when my algo should place a short trade, it doesn't
I am trying to install MT5 EA's by : File > open data folder > MLQ5 > Experts. I am trying to paste my copied EA's in this folder but nothing happens. In MT4 I didn't have this problem. I am sure to use the correct MT5 Ea's. What's wrong
Anyone ever build a basket trader that leaves cash on table like this? how did you deal with it? It trades 10+ pairs and often has 20 trades open ( the RR is high so i understand why the gap is huge) Im guessing by design it must do this? I tried adding profit grab, failed ! DD always higher
Hey Guys! After a back/forward optimization, and choosing a set of inputs, when I "Run a Single Test", the "Backtest" result matches the optimization result , while the "Forward" result messes up! Does anyone have an explanation or a fix for that? Thanks
[Deleted]
I need to change background color of my Panel derived from CAppDialog, but since m_background is a private member of CDialog, I can't access it and change the color with the function ColorBackground().I appritiate any help.
math_down.png is Math.h came with QML5 download when I ,first time, installed MQL5. mql5 mathabs.png is the screen short of QML5 Reference->Math function. Those two function don't have the same return signature. Math.h return a boolean status while the reference return results. All of the mathematic
Hello I am here with a new question. In fast genetic optimization on MT5, what is the limit on the number of combinations? Where can I find documentation about how this type of optimization works ? Many thanks to everyone who replies to my message ! MM
  EA Error code  (1)
can anyone let me know what is the error with this command I cannot resolve it and what should be the correct format datetime currentTime = TimeCurrent(); int hh = TimeHour(currentTime);
Hello. Can someone please help with this error? input group "---- RSI ----" input int RSIPeriod = 14 ; //Period input ENUM_APPLIED_PRICE RSIPrice = PRICE_CLOSE ; //Applied price //--- input group "---- CCI ----" input int
Hi everyone, I’d like to know how to properly configure a Custom max criterion for the fast genetic-based optimization in MT5. My goal is to optimize my EA according to the gains and the number of trades, in order to achieve more reliable and consistent results. When I use the standard “Maximum
Hello, I am new to trading and to Forex. I am currently reviewing EAs and trying to back test these. I have found some free historical data which I believe I loaded into MT5 correctly. The issue I am having is when I have a Demo EA and want to back test it further, e.g. Gold it returns an error
Here is a step by step guide for buying, installing, testing and using a Metatrader 5 Expert Advisor (Robot, Bot are whatever): 1. First make sure that you have the necessary funds required for your purchase in your MQL5 account, its always easier to pay with your MQL5 balance, than using a credit
  Self learning expert  (53   1 2 3 4 5 6)
Found this on Poul Trade Forum at www.kbpauk.ru the first backtest profit factor .99 2nd,3rd, and fourth backtest better this one attached is the 5th backtest with a profit factor 4.00+ and less than 3%drawdown for this year.Tried fwd. testing this week with no trades. Seems it doesn't work on fwd....
Im didnt really have any mentor in coding field or ever really take computer science in highschool... Ive been coding by having Chatgpt explain to me stuff. Yeah not great. But hey I did have few bots that work. It just... doesnt run well. not in signal sense but in EA system management. Sooooo
I have looked throughout the forum, but cannot find what I am looking for. Can anyone direct me to an EA that, once I enter a trade, it automatically sets up my preferred SL; TP; "Close all" button, and maybe even a "Reverse" button. Thank you in advance
[Deleted]
Hello, OnTick, the EA starts executing its code, but before it completes executing the full code, the next tick occurs. In this case, what will happen? Will the new tick be ignored until the EA completes the full code execution, or will the EA’s operation be interrupted in the middle by every new
I am currently generating very low profit on MetaTrader 5 Strategy Tester Agent despite having a high-end setup. I have eight computers equipped with powerful specs including i9 13th Gen, i7 13th Gen, and i5 13th Gen processors, each featuring 16 GB graphics and 64 GB RAM. All systems run 24x7 with
  CopyRates - BUG  (27   1 2 3)
CopyRates freezes when switching timeframe, in this case from H1 to M15 for 60 seconds. As far as I see, it happens mainly when an indicator in the same chart with the EA accesses the same bars data. Its surely not a coincidence, that the DST changed today in Europe, while the servers DST did not
Comments that do not relate to the " _rdb_The Best Free EA ", have been moved into this topic