Expert Advisors and Automated Trading - page 9

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
I've set up a computer with 2 x e5 2683 v4 processors. Each CPU has 18 cores and 36 threads. When I installed Metatrader Tester 5, it detected that it had 32 agents. Can I add up to a total of 36 agents on the computer? Are there any limitations? In the agent list, it appears as "Intel Xeon." It
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
I am getting a Unknown Critical error on line 14 while single stepping through XmlParserScript.mq5 in MetaEditor. why? How to fix? string res=xmldoc.SetXml(xml);
I'm just starting to program with MQL5 and I'm looking for a simple program to learn about trendline breakouts with price lines
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...
Dear, I am facing the following problem when using Expert Advisors (EAS) in Metatrader 5: Although automatic negotiation is globally activated ("Autotrading" button in green) and the EA is correctly configured to allow live negotiation, I get messages like this in the terminal log: CTRADE
  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" ;
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