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. Приглашаю всех желающих, у кого есть какая-либо интересная и редкая инфа излагать её в
  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...
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 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
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 (
  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
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
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
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
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" ;
The uchar buffer array contents in MT5 is shown below: Message from DLL (len=19) in C++ reads: std::wstring myString = L "Hello from C++ DLL!\0\0" ; The uchar array contents is correct for the Unicoded text with '0' as part of each UTF-16 character. But MQL5 code string receivedString =
  Call Stack  (3)
While debugging in MetaEditor, is there a way to view the current Call Stack at a breakpoint
I would like to use an array of arrays as in the following code double data[ 2 ][ 1 ]; int indicatorIndex; int OnInit () { int index = indicatorIndex++; SetIndexBuffer (index,data[ 0 ], INDICATOR_DATA ); index = indicatorIndex++; SetIndexBuffer (index, data[ 1 ], INDICATOR_DATA ); } ... But
void OnStart () { Comment ( AccountInfoDouble ( ACCOUNT_PROFIT )); } It always returns 0.0
I'm a little rusty on my coding, but used to code C++ in Qt and KDE. The Medtaeditor reminds me very much of C++. I was coding the Ichimoku editor, and decided I liked the idea of using object oriented programming with CiIchimoku. Right off the bat I noticed that the Chikou data was retrieved by
Hello friends I want to know how can I get LocalTime() Or TimeCurrent() while using strategy tester. As Default during testing in the Strategy Tester , TimeCurrent() is simulated according to historical data. I need the time that are not refers to historical data. is there any DLL to get current
double var_dbl[ 5 ]; long var_long[ 5 ]; void OnStart () { ArrayInitialize (var_dbl, 123 ); ArrayInitialize (var_long, 123 ); ArrayPrint (var_dbl); ArrayPrint (var_long); //Result //var_dbl[123, 123, 123, 123, 123] //var_long[0, 0, 0, 0, 0] } Everyone can test it. Fix it please. Thank you
Is it possible to make the Strategy Tester to Optimize EA running it automatically multiple times over a range of time windows? So, instead of picking a static Start and End dates, I want to make the End date = Today, but the Start date to start from 2024.01.01 run my EA backtest and then re-run the