I am trying to login to Metatrader account and I have been receiving this error code. Please see code below; I first import necessary libraries and initialize which works fine from datetime import datetime import MetaTrader5 as mt5 mt5.initialize() But when I try to log in using the below code, I
Hi all, I’m working on a non-trading EA whose only purpose is to log trades for journaling and statistics, and I’d like to ask for some feedback / best practices from more experienced MQL4/MQL5 developers. The EA idea: It never opens or manages trades – it only listens for account activity It logs
I call this in tester. ChartScreenShot( 0 , "test.bmp" , 800 , 600 ,ALIGN_LEFT); It's not work. I searched all over the my pc and couldn't find any file named "test.bmp." Everyone can try it with your self. It used to work, I don't know why it has changed now
How to use forex expert correlation . Is there an expert
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
hi, some years back, like 5yeaars or so, i hired a freelancer whom i coudnt reach to now, and he made an ea for me, after these years, i tried to compile the file n its showing me error, is that normal perhaps mql5 upgrade or something? thank you
Here is a new indicator I threw together this weekend. This is the beginning, I'm going to add more indicators to this one as I go along. Basically, this indicator gives buy and sell signals on multiple timeframes based upon stochastics and RSI. I was going to wait until I posted this one but even...
I had created a simple function to draw a horizontal line in my EA and attached to a chart. The line is displayed on my desktop but when i migrate my ea to mt5 vps, the lines are not shown on mt5 running in my android phone. I check the object list in the chart in my android phone and it does not
I rented a new VPS for my account from MQL5, I do this all the time, but this specific VPS seems to be faulty. When trying to migrate I get these errors: 1. Not enough handles to start the platform 2. Authorization failed 3. Initialization failed (10053) Eventually it does appear in "Started"
Hi, I have two MT5 EAs that works on different symbols and i dont have access to the source code. I know that MT5 strategy tester can test one EA at a time. Is there a work around to backtest the two EAs simultaneously on one account? Thanks
I'm getting complete opposite result when testing on every tick or 1min OHLC. the EA and input parameters are exactly the same but in the case of 1min ohlc I get 50000 profit while in every tick I get -7000 losses. this happens on many pairs testing on a period of 2 years 0811-0813 someone have had
So I'm making a system that automatically select Moving averages for further analysis. So far I can load up a bunch of 10 MAs that visually looked good for the recent data I visually tested. But I need this concept to work independent of MAs I choose. Bacause market regimes change and different
I'm running an "All Market Watch symbols" optimization in MetaTrader 5 using a .ini file via the command line. The .ini specifies a single symbol (e.g., symbol=EURUSD ) and runs without error. However, the XML report that should be generated after the optimization is completely empty — it contains
A must ! Before using it or asking any question : please read the Online Help (Also accessible by F1 on your MT5 platform) Strategy Tester For Traders General overview of the possibilities. Overview of results : Visualize a Strategy in the MetaTrader 5 Tester The general information about
I set myself a task: to demonstrate the capabilities of custom graphics via CCanvas class in a short code. Here's what came out of it. This script works in both MQL5 and MQL4. But it is much faster on MT5. Each frame is unique and does not repeat, i.e. the script is not cyclic. #include
I want to share this. https://youtu.be/_FuuYSM7yOo?si=JiKiHDWCozLYXHK3 Maybe we can build a function for this
I was scouring the internet for inspiration for my next project, then I came across several claims that they can provide indicators that work on mobile. I was curious because the best bet to get signals on mobile is setting up the indicator on a pc terminal somewhere with the signal account, then
STOP LOSS - TARGET PRICE Values are not showing in USD & Points on MT5 Desktop Terminal. PLEASE HELP
(3)
Hello Guys When I place a trade on MT5 Mobile App then Stoploss and Target Price values are showing with USD and Points but when i trade on MT5 Desktop Terminal, the values are not showing in USD and Points. I have Posted this Topic 1 week back but nobody guided me properly. for more details of the
problem about the EA A problem was found when I back test the EA, the pictures show that the program can not be run and i can not found the reason, someone who can help me
Hi all, Moderately experienced VBA Coder just getting into Forex and MQL5 coding here. Novice level MT5 user and coder, I can mostly follow the code done intuitively but there are some structures I struggle with (compounded by the usual issues of reading someone elses code). The guy I followed in
Hello, I'm trying to create an Expert Advisor (EA) that can generate random BUY or SELL orders, and I'm using the following for this: // Generate random number (0 or 1) MathSrand (( int ) TimeLocal ()); int randomChoice = MathRand () % 2 ; So far, the EA has only placed 15 consecutive BUY
Hello I am trying to integrate an economic calendar into my MT5 EA so that the robot temporarily blocks trading before important news events. I am using the stub function EconomicNewsGetNext(), but I keep getting compilation errors like: - Undeclared identifier - Implicit conversion from unknown to
Hello, does anyone know what the lparam values mean after a CHARTEVENT_CHART_CHANGE event
I have an indicator running on M15 timeframe. I am selecting a 15minute bar [i] and getting the time of the bar. I am tring to use the time of the bar (rounded down to the nearest full hour) to identify the corresponding bar on the H1 timeframe. Its not working.... ANy help please. //Search bar by
Hi, I'm a little confused about what exactly these functions return. If I understand correctly: - iTickVolume returns the count of ticks used to build a bar. It is also passed by onCalculate with the "tick_volume" array. It's also shown in the data window as "Tick volume". Right? - IRealVolume
Hi, since I dont know when, I try to figure out how the z-order works with MQL chart objects and my conclusion is so far that nothing works, no matter which value I give a chart object and its always random. For example: The picture shows a pattern and vertical lines, this comes from a BitmapLabel
How to only use the first decimal place in a calculation without rounding up For example 0.9864693728 = 0.9
I am totally new here and trying to code something like a simple open and close. However the EA is hitting the TP it is not continuing with anything else in the code. The part of the code to check and close is not even triggered as I don't see the print messages in the journal. Can someone explain
"My EA works only on Gold symbols. On EURUSD it shows demonstration mode with no trading. how to mql5 test on XAUUSD or GOLD symbols to see actual trading performance."
[Deleted]
Hello, I noticed that MT4 and my Windows VPS get slower over time, and sometimes MT4/MT5 freezes. I suspect this happens because MT4/MT5 might be leaving large amounts of chart data, cache, or other files that keep loading, causing it to become slower and slower. I know it’s not a VPS problem
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.