My agents working time is not going forward... I noticed this since the last update (few days ago) They have many jobs... This job for example (One hour x 28 Threads). CS 0 02 : 15 : 57.181 Tester job 7345665837451199872 received from Cloud Server CS 0 02 : 15 : 57.181
When running CopyTicks ( Symbol (), ticks_array, COPY_TICKS_ALL , 0 , 2000 ); from the OnTick() function of a EA the return value is 0 and no ticks are returned even when the function is retried 3 times when no data is returned. The symbol is EURUSD. ticks_array is a dynamic array but it is
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
Hi there, i'm copying a signal here on MQL5, running on a VPS. Its been running nice over 1month but on Thursday i lost 40% of my account and i want to understand why, as the source made a nice profit on that day. What was different than normally, is that alot of trades happened, but no new symbols
Hi, I have a hard time opening a optimization graph, I looked at this documentation and it says about " Open Optimization graph" but I cannot find where the optimization graph is. How can I find this "optimization graph" option
Why is it i get the "cannot convert enum" error in mql5? but not mql4? In the following i get the error int tf= 0 ; iLow ( _Symbol ,tf, 0 ); But if i type it directly into the parameter there is no error? iLow ( _Symbol , 0 , 0 ); Or even the enumeration directly there is no error? iLow ( _Symbol
hello, I am really struggling with my EA after migrating to VPS, for context my EA worked perfectly when running from my MT4 client. I trade from the UK, XAUUSD spread betting so the symbol on my MT4 chart appears like this XAUUSD(£) and my EA runs and makes trades exactly when it should from my
Is it possible to create an EA that can scan images of patterns that appear in the market? for example, I have an image of pattern A, if that pattern appears in the market, the EA will scan it to test how high the level of similarity is to the image and then make a buy or sell decision. thanks for
No, even if the custom indicator is called into an EA by means of OOP it will still produce a handle through iCustom and get the values with Copybuffer, Maybe if you get the indicator buffer pointer but you have to use dll for that, Yes, MQL OOP can do more than MQL functions can. You don't
Hi, I've spent a couple days redownloading mt5, downloading mt4, making new demo accounts, switching computers etc. trying to get copy trading to work. At this point I feel like its some sort of problem with my mql5 account. Below I've linked a video showing the problem. I would really appreciate
Im trying to get access to the dynamic array's elements as timeseries but I have no Idea what is wrong with my method, it just doesn't work and no amount of searching helped me. After I store values into the array for each bar that EA process, I want to read the last added element using index 0 . so
My first MQL5 programming article ever :-() I found this piece of code in a MQL5 forum that animates a primitive clock face in the chart. I am not sure who created it, if you know tell me so I can give due credit. This represents an example of how to render graphical objects on the trading chart. In
Greets, I'd like to check the margin level percentage before placing a trade, but AccountInfoDouble(ACCOUNT_MARGIN_LEVEL) always returns 0.0. I've read the article here https://www.mql5.com/en/forum/228052 but it doesn't solve my problem. As a test, whether I'm calling in OnInit() or OnTick()
I have a problem with installing EAs from the Marketplace. When I click to install the EA (any EA) I get the window with the buttons "Yes I have MT4 installed" and "No, I don't have MT4 installed", I click "Yes", it asks me to open "MQL4 Buy Protocol" but nothing happens. The EA does not appear
Hey everyone, I've been testing a strategy coded in an expert advisor and I've had positive results. I have the EA trading only in the intersection of NY and LDN sessions and I have to manually turn it off if during any important news throughout the day. Idk if it's relevant but I'm using a 0 spread
Apologies for any confusion beforehand, I'm pretty new to EA's and Mql5. That being said I made an EA that was seemingly working fine, then after editing a few things, went to test it again, only to find my Sell function not working because of ' Invalid Stops '. I've had this issue before and was
This is my try to solve the problem of broker timezone differences. I'm trying to find the Hour of Day, based on the real forex market timings , independent of any time settings (Client, Broker, or anything related to time zones and DST). So hour Zero is exactly when the forex market gets open
//Returns true if last two closed trades ended up in a loss or 0(breakeven) bool LastTwoTradesLost(){ double profitLossArray[]; int totalCount = 0 ; HistorySelect ( 0 , TimeCurrent ()); if ( HistoryDealsTotal ()> 0 ){ for ( int i= HistoryDealsTotal ()- 1 ; i>= 0 ; i--){ ulong
Hi, It suddenly appear that on my MT5 with a new adviser, after fast test, I got a list of optimization results, when I double click one of it, the result on backtest and graph doesn't match the profit result on optimization results. Here is the backtest result when double click above Pass:4 504
//+------------------------------------------------------------------+ //| Moving Averages.mq5 | //| Copyright 2000-2024, MetaQuotes Ltd. | //| https://www.mql5.com |
0 I am trying to create a communication interface between a python socket server and a Metatrader 5 Expert Advisor. I've tried multiple approaches and tutorial's I found online for both sockets and websockets. All of these approaches yield the same problem. Whenever I start a debug on
As per the title, i have had a weird issue for the past week and nothing seems to fix it. Essentially, when starting a MT5 tester connecting to a remote xeon server. Instead of it connecting and loading up the server it ramps up the cpu usage on the host pc and never connects, its as if instead of
Hi I'm learning how to use OnTradeTransaction on partial close and trailing stop. I'm encounter a problem with how OnTradeTransaction handling a position that is closed due to price hit TP or SL level. I notice that when position is closed due to price hit SL or TP level OnTradeTransaction called
I have an EA in MT5 which is designed to convert messages into a trade. The connection works, but I have encountered an issue I don't know how to fix. In telegram, I made a bot which recieves webhooks from tradingview. These messages are correctly recieved and displayed on the chat. However the
I get the above code at compile time and all I have is this line (the zero's are line and column i.e. no help) EX5 write error 0 0 This is an EA I have compiled several times with small changes and no problem previously. Have tried twice and still occurs. Tried to close the IDE and
This Validator is a pain... I already did set account type to hedged, but no success
Hello, I am stuck right now on my script. I can open an order (see first picture attached) but i can not define a Take profit. I tried with a number (like 2000 for exemple), I tried with a variable etc. Everytime my order is opened but the TP is 0.0 So, I tried to open my trade and to modify the TP
Hi, I'm trying a strategy that increases a lot the results when I use shorter stop losses. Since I use OHLC 1 minute, I understand that short stop losses can lead to misleaded results. Is it posssible to consider in the backtests that any trade that open and reach the stop loss in the same candle is
Hello, Could anyone tell me how to limit the profit and loss of this robot (ExpertMAPSarSizeOptimized) mt5 Like make it automatically closed when it reach the limitations of profit or loss. //+------------------------------------------------------------------+ //| ExpertMAPSARSizeOptimized.mq5 | //|
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.