Expert Advisors and Automated Trading - page 31

Do anyone know which broker's historical data is being used as everytick backtesting option. As I have built a EA based on everytick data but in real time it is making lots of losses and then I found out that it is becuase of difference between everytick and everytick based on real tick . So, if
Hello all, I just created this script to compare overnight and premarket activity over a certain number of days, and tell me the percentages when: 1. Premarket high breaks overnight high - does the US session break the premarket high and/or the overnight highs? if so, by how much %? - does the US
Ticks received: 263705 Display obtained ticks 'as is' (1740441600, 1.04664, 1.04693, 0.0, 0, 1740441600372, 134, 0.0)
I'm new to python and mql5, I'm teaching myself both currently. Can someone explain why this code always prints volume equal to 0? (blocked my user & pass for my mt5 import MetaTrader5 as mt5 from datetime import datetime mt5.initialize() if not mt5.initialize(): print(f"initialize() failed
Hello, I have a problem with the automatic verification. It has been in the processing phase for about an hour or more and it has not changed yet. What is the solution
  validation faild  (2)
hi friend i have been asking my self which stop loss or take profit should i use for points cause when im create EA personal use points for my EA but my points are not good with the validation may i put a stop loss of 1000 points and tp and with the take profit of maybe 3000 points i have try many
Hi! Please consider that I'm not an programmer only common user with some basics, I've looked on the forum and wider web, but didn't find solution. Is is possible to achive not having the input window? I'm dragging a script or a strategy onto the chart and always I get the window with Commom/Inputs
Hi, I'm using MT5 terminal build 1730 64-bit. I'm running EA in strategy tester (visual mode). This EA has panel with buttons BUY and SELL for manual trading. Why buttons aren't changing state (pressed or not) when I'm clicking it during testing as it works in MT4?
[Deleted]
UPDATE ... the issue is resolved, I was adding file extension in iCustom Indicator Name. Once removed it, it works well. Dear Forum Members It is never easy to use iCustom function in MQL5. Please help me to debug why I am getting error 4802. I have checked all the input variables of the indicator
I entered some commissions into the tester, and wanted to modify them. I couldn't do it. I exported this data to a text file. I modified this file, but when I import it, it concatenates to the existing one. Thinking it was due to the cache, I modified this file, turned off my PC, restarted it and
Hello everyone, I'm a beginner in MQL5, and I've developed an indicator that calculates Fair Value Gaps (FVG) and displays them for a certain number of bars, defined by the maxbar input. I’ve also created an EA that uses this indicator to take trades according to my strategy. However, my backtesting
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