Expert Advisors and Automated Trading - page 14

Hi i would like to ask metaquest developers ideally metatrader 5 programers about this twing: I am downloading history and making some analyses, but when i downloading, i mean saving all live data, all ticks - it doesnt matter they are unique or when i get them all or filter them by any rule, i am
Recently, all the EA can be run on updated MT5 platform. It requires to reinstall the EA but this will use up one activation quota. This is unfair. It is not my problem. The EA "[edit] EA MT5" was no longer be found in the market place. I cannot reinstall it in the same MT5 platfrom
Hello everyone, I need to understand the source of the significant performance discrepancy I’m observing when testing an EA in backtesting versus live trading. I have extensively tested an EA (which I developed myself) using the MT5 platform provided by [edit] Markets. The backtesting results were
Hello all, MetaTrader 5 - Within my EA I have many inputs - Around 200. When running the Genetic Based Algorithm for Optimization as you would expect I reach the limit quite quickly, which is around 1^310. However due to the fact that i have a very powerful computer I am able to use this large
Hello everyone, does anyone here know if I need to have Python available to use ready-made ONNX models? Can I use an ONNX model without Python? Background: I use MT5 on Linux, but I don't want to run a win64 Python on wine. The models should be created directly on the Linux host using Python
Hi guys is possible when popup alert , to have it displayed in reverse order (with the newest one on top instead of the oldest)? Or can the alert be reset before the sound is played _ thanks
Hello everyone, I noticed that when a trade is opened by EA (with a specific Magic Number) in MT5 and then manually close it from the Trade tab, the final deal record in the History tab does not show the Magic Number. The Magic Number is retained if the EA itself closes the trade, but disappears on
I can easily run up to 7 MT4 terminals in my 1Gb of RAM VPS. And as I'm thinking on switching to MT5 I'm worried about how many VPSs should I need to run 7 different strategies.
double a = 0.3; double b = 0.1; Print(a/b); ----------------------------- 2.9999999999999996 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX double a = 0.0003; Print (a * 10000); ----------------------------- 2.9999999999999996
  Metatester  (9)
Hi, i tryed to search online a resault but i cant really found a viabile resource to use for set up the agent linked on my profile for the meta tester cpu "rent" i downloaded the sw, i used the MQID as id for link the agent (image 1) i set up my cpu core as agent (image 2) but on my profile i dont
import MetaTrader5 as mt5 

 # display data on the MetaTrader 5 package 
print( "MetaTrader5 package author: " , mt5.__author__)
 print( "MetaTrader5 package version: " , mt5.__version__)

 # establish connection to the MetaTrader 5 terminal 
 if not mt5.initialize(path= "C:\\Program Files\\FTMO
  dpi reading not updating  (39   1 2 3 4)
how come the dpi reading is not changing even if i change screen resolutions ? im getting 96 at 1280x1024 and 96 down to 800x600 thanks Client Terminal Properties - Environment State - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for
Can someone help me with this ? double bidPrice = 0.0 , askPrice = 0.0 , spread = 0.0 , point = 0.0 ; if (! SymbolInfoDouble ( _Symbol , SYMBOL_BID , bidPrice) || ! SymbolInfoDouble ( _Symbol , SYMBOL_ASK , askPrice) || ! SymbolInfoDouble ( _Symbol , SYMBOL_SPREAD , spread) || ! SymbolInfoDouble (
why MathAbs ( iOpen ( _Symbol , PERIOD_CURRENT , 0 ) - iClose ( _Symbol , PERIOD_CURRENT , 0 )) always 0 ?? how to fix it
Great! Now before you come after me because of the title, please hear me out first. I got into programming EAs and when I heard the words "magic number", I was intrigued and wanted to know what they represented. So I looked up some codes on codebase and the forum and my conclusion so far is that it
I get compilation errors in MQL5 when trying to use methods on pointers via the -> operator (e.g. ptr->SayHello()). Errors: '>' - operand expected, 'SayHello' - undeclared identifier and others. MetaEditor build 4873 (February 2025) is used, file .mq5, code is entered manually without typos. The
Hi, I would like know if is possible to close a position (or invert it) with a limit order ( TRADE_ACTION_PENDING ) in HEDGING system? Even when I set the order.position to the position id (ticket) that I would like to close, I'm getting the error 10013 " invalid request ". Since this error is
Hi, i'm trying to read a bitmap file using the ResourceCreate() function. The file exists in the MQL5\\Files folder so that calling FileIsExist(ImageFileName) returns TRUE. In contrast, the “ResourceCreate” function returns error 5019 which means that the file does not exist. I have tried
I got stuck trying to BUY/SELL STOP LIMIT orders. When I send this type of order, it always comes back with error 10015 (Invalid price). I've been looking at this for a few hours now and still can't figure out where the problem is. The problem is not in the "normalization" of the prices, because I
Hello, I am looking for a trade manager that can handle orders made from EA as well as manually placed order. So if i buy from phone say EURUSD, and it goes in a drawdown and i open another order it can treat both orders as a basket of orders. I can then set a stop loss/take profit applicable for
  Auto Bots  (4)
Sorry I am new to this and simply testing different options on a demo account to tryto understand it better. When I drag one of the free bots to a trading window, it shows under all timeframes. Does this mean the bot should work the same regardless of which time frame I dragged it to
Good day I need help please . I'm still new to coding and is learning by watching you tube videos and reading the MQL5 Language REFERENCE. i want to create a EA that can trade with trend lines and found this code in the reference on page 399, but after i moved the #property and input variable's to
  onnx  (3)
Ive tried everything to get onnx installed. note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for onnx Failed to build onnx ERROR: Failed to build installable wheels for some pyproject.toml based projects (onnx) This is boring me and
  Validation Error  (5)
Hi could someone explain what this means exactly? test on EURUSD,H1 (netting) strategy tester report 4 total trades test on XAUUSD,D1 (netting) 2022.04.26 01:05:00 position stop out triggered at -51.93% [#2 buy 0.4 XAUUSD 1929.475 sl: 1859.53 tp: 2139.04] stop out occurred on 39% of testing interval
Hi team, The current Currentime() function is getting the time but in seconds not in milliseconds, can anyone help me if I want to get the current time in milliseconds using EA. Thanks
Is it possible to connect multiple trading accounts (with automated trading robots) with one VPS subscription from MQL5 ? If so, please explain how to do it. Thanks
Hi Sometimes I save optimization cache files for further investigation. They are saved in a specific format name. For example something like this: myEa.US30.M10.20240501.20250123.40.ACCAA534B30928EDC6465EBA51FB7A69.opt myEa = expert advisor name, M10 = time frame, 20240501.20250123 = test date range
Hi, When I call SocketTlsRead() function it returns -1 and the error code is 5273 and it terminates the websocket connection. I would appreciate any ideas on how to solve this problem. int OnInit (){ socket = SocketCreate ( SOCKET_DEFAULT ); if (socket != INVALID_HANDLE ){ if (
Hi, I need to read the cache optimization file (.opt - path: TerminalInfoString(TERMINAL_PATH)+ "\\Tester\\cache\\", "XXXXXX.opt") in order to get information about the optimization parameters of EA. So, this is a binary file and I dont know how read it using mql5 file functions. Does someone can
Hello, I have MetaTrader 5 installed. While poking around and trying to learn about cloud network, I also installed a standalone instance of MetaTrader 5 Strategy Tester. So, now it seems that I have 2 instances of the Strategy tester available, and they show/are using different resources. The