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. Приглашаю всех желающих, у кого есть какая-либо интересная и редкая инфа излагать её в
Folks, anyone know if it's possible to tile charts horizontally by an MQL5 api call or something ? alternatively, is there a way to set a hotkey for that ? thx
Struggling to have a variable value assigned and remain assigned. If(delta>=x){ Sigma=y;} But when the IF statement becomes false my sigma value loses its previously assigned valve. Anyone know the coding required
Hi. I have my robot, which I compiled without any problems. As well as the custom TDI (Trader Dynamic Index) indicator, which works fine. When the person who wrote the code sent me the .ex5 file, it worked fine. But once he provided me the .mq5 file, which I converted to .ex5 (because I needed to
Hello everyone, I hope this message finds you well. I am currently using the "MetaTrader5" Python library to obtain historical price data in a 1-minute timeframe. However, I'm facing an issue where I can only access data from the past three months. When I use the "copy_rates_range" function and
I created an EA based on the Ichimoku cloud strategy without Optimizing it, it works good on the EURUSD pair however if I used the USDCAD pair the performance is directly opposite to that of the EURUSD. is it fine to reverse my logic for the USDCAD pair , such that I enter long when I get a short
Came across this earlier and think it's pretty useful for Multi Symbol Portfolio Analysis. I've converted the code provided in this video: https://www.youtube.com/watch?v=3FV8PTikKc0 So that it dynamically measures the Value at Risk of the open trades on the Account. Note: the issue that I'm having
Hello, I have a question regarding backtesting with imported tick data in MT5. I read that with MT4, the last 2048 bars are always overwritten. If I create a custom symbol in MT5 and import my exported tick data (tick and M1) for it, and then want to view the chart, will the data be replaced with
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
As the title says the results of my EA are significantly different in the strategy tester when the visual mode is disabled. I know this doesn't make any sense, but look at the results check the attached images to see the results. Anyone knows why this happens?? Much appreciated
Hi! I wanted to ask if someone can 'spot' me and double check if my logic is correct with regards to using a RSI to spot a market reversal by means of a using a 1minute RSI with a 14 period value. Is there any room for improvement for better accuracy? int OnInit () { RSIOneMinute = iRSI (
Hi, WHat is the replaced function of WindowExpertName() in MQL5 ? How can i get expert name in MQL5? Thanks
Hi guys anyone know why if i try to read a file ib folder file return me always zero ? #property strict input string TemplateName = "LINE" ; // Nome template (senza .tpl) input int ReadIntervalSeconds = 10 ; // Intervallo di lettura file (in secondi) string current_symbol = "" ; // Simbolo
hello everybody. I tried to create my first, simple, expert advisor to be use for XAUUSD. but when i put it into MT5 grafic, nothing happen.. it is not working. is there here someone more expert than me that can check the code and let me understand what is wrong ? thanks a lot in advance regards
  Multi instrument robot  (24   1 2 3)
Hi every body, I used to trade manually since many years. But today I want to automatise some of my algorithmics systems. Is it possible to create a robot who can manage 20 or 22 instruments on a single account, with the possibility to calculate the quantities according to previous results ? Thanks
  Multi Currency EA  (31   1 2 3 4)
Hello I'm trying to build a multi currency ea that works in the mt5 strategy tester. i'm not a professional programmer but i tried i've read the articles on this website about that and tried but with no luck i couldn't understand the method because they use about 3-5 include files linking to each
  Buying or Selling all 7 pairs  (37   1 2 3 4)
Dear All i was trying a trading strategy to buy or sell all the USD Currency pairs together, i only check the daily strength of the USD, then i take decision to buy or sell (open 7 positions), then i check after so many hours, sometimes waiting for days looking  for total positive profit after that...
  problem with NormalizeDouble  (13   1 2)
Hi I have this code double result = NormalizeDouble (Current_Balance/ 20000 , _Digits ); When the balance is 200 $, the result is really 0.016 but the output is 0.02 !! I know that MT5 doesn't accept 0.016 as a certain volume so I'd like to set the "result" to 0.01 not 0.02. Please help me with
Is there another way to receive indicator alerts using a VPS? Is there a difference between EA alerts and indicator alerts
Folks, anyone know if it's possible to tile charts horizontally by an MQL5 api call or something ? alternatively, is there a way to set a hotkey for that ? thx
I'm getting this in weekdays and have put my codes inside if(IsTradeAllowed()) but my EA is still trying to open/close a trade I've seen some post mentioning that the broker will close their service to do something for 5 mins or so.
Folks, anyone know if it's possible to tile charts horizontally by an MQL5 api call or something ? alternatively, is there a way to set a hotkey for that ? thx
Ive been trading since 2009 and since Chat GPT 4 release last year I've been trying everything i can to automate the dozens of strategies I have In my head. EVERY SINGLE ONE OF THEM DOES NOT WORK AS INTENDED. I've spent hundreds on ChatGPT Plus, Grok Plus, Claude Max and even Google and others. Most
Hi all, I’m automating forward tests in MT5 portable using .ini files. MT5 launches with /config correctly, but Strategy Tester does not auto-run. No HTML report is created. All paths, .set, ExecutionMode=4, dates, etc. are set. Is there any way to force MT5 to auto-start the test when launched via
MetaTrader 5 produces different backtest results when you use exactly the same settings for the Visual Backtester and Non-Visual Backtester. When I use the Visual mode everything is normal and goes as expected, when I uncheck the visual mode hoping to get the same results but faster, this is what I
Good morning, I have an EA code that is giving me problems. I would like to replicate in code when I apply a 7-period SMA moving average on the 14-period RSI indicator and I tell it “first indicator data.” I thought it would be enough to take the RSI values and calculate a moving average on those
For some reason during optimization i only have access to 16 cores....How can i get access to the rest of my cores locally? I dont want to use the local network farm, as i remember i wasnt using more than 16
My EA has the following function: int GetHistories( ENUM_TIMEFRAMES timeframe) { MqlRates Rates[]; int copied = 0 ; ResetLastError (); string symbx= Symbol (); for ( int x= 0 ; x<mc.arrsymbx && ! IsStopped (); x++) { symbx=mc.DIRI[x]; string InpFileName = symbx + ".csv" ;