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
Hi, my understanding of logic regarding this event is, that it is sent when the chart changes. But it does not in many circumstances in MT5: 1. User changes the scale from normal to fixed scale 2. When bars are growing and exceed the current price scale 3. When the scaling (zoom) is changed These
Is there a way to find out how many open trades i am allowed on my brokers account without having to contact them
Hello everyone 😊 , I am developing my first EA, which is built for myself. My background is an architect, so I designed it using my experience as an architect + trader + my requirements to create this EA. However, I have no background as a developer and still have a lot to learn. I am here to
Metatrader 5 build 5833 Webrequest is used to send requests to LM studio. I have no problems on Windows 11. But the client on Windows 10 reports such a problem: I did a few more timing tests and can now say that the problem with the HTTP/HTTPs POSTs is that HTTPS is used if a job is after 2 minutes
Hi, Does anyone have any experience running EAs on the same MT5 platform but using multiple accounts? I saw in the options menu that you can disable expert advisors when switching the accounts... so if that option is there it means that you can set it up to allow EAs to trade
Hi all, Looking for a sanity check on Strategy Tester behavior — specifically how the HTM report's "Equity Drawdown Maximal" and "Equity Drawdown Relative" are sampled. In a deterministic deal-replay EA I'm running, the per-tick ACCOUNT_EQUITY values read from OnTick() show drawdowns substantially
[Deleted]
I purchased a EA. it is based on ATR but when i reviewed the code, there is no iATR function. it have double fATR( string sy, ENUM_TIMEFRAMES tf, int ATRper, int shift) { double atrBuf[]; ArrayResize (atrBuf,ATRper+shift+ 1 ); int i=ATRper+shift; while (i>= 0 ) { double high=
input int Magic = 113 CTrade trade; int OnInit () { trade.SetExpertMagicNumber(Magic); return ( INIT_SUCCEEDED ); }
Hi everyone, I am developing an EA for XAUUSD and I would like some advice about trailing stop management. Current setup: Symbol: XAUUSD Mainly H1 timeframe Trend/momentum strategy Trades often run into profit, but many positions close too early because of trailing settings. At the moment I am
I am doing a big optimisation for one of my EAs. Turns out my local machine and local network agents won't cut it, so I opted into the MQL5 cloud network . Anytime I enable MQL5 cloud agents I get the above error. It's still deducting money from my MQL5 account though. What's up with that error? I
Hi everyone, beginner question here. I’ve just purchased a new EA, but I already have another EA running on MetaTrader 5 using the built-in MetaTrader VPS. I’d like to keep each EA fully separate (ideally one EA per account and VPS), and I’m unsure about the best way to structure this. What would
Hi, I’ve designed a neural network featuring two agents that decide whether to enter a "buy" or "sell" position, or to "skip." The entire codebase is in Python, which outputs a CSV file; this CSV is then read by an MQ5 Expert Advisor (EA) that manages the actual trades. I’m now looking for advice
Hi, Is it possible to add more than one EA to a single chart ? When I try, MT5 always remove the already installed EA... why this limitation ? Thanks! Erwann
Is matching the EA time with the broker’s time one of the biggest challenges
EAs do not seem to be running in parallel when put on different workspaces in same MT5 terminal. Switching workspace seems to be reloading and initializing the EAs losing current state. I was expecting to be able to spread my EAs across multiple workspaces and switch to observe status and control as
void OnTick () { auto.s5 = 0; for ( int k = total0 - 1 ; k >= 0 ; k--) { if (position.SelectByIndex(k)) { tk = position.Ticket(); if (tk <= 0 || tk != position.Ticket()) break ; int otyp = position.Type(); if (otyp != POSITION_TYPE_SELL
Hi, I’m currently facing a challenge with the MT5 Strategy Tester during heavy optimization runs, and I’m looking for a more efficient way to handle "invalid" parameter combinations. To avoid wasting time on useless optimization passes, I’ve been using INIT_PARAMETERS_INCORRECT (or INIT_FAILED)
BOTH backtest and forward testing in the strategy tester of mt5 are profitable. Does it means it will be profitable in real market as well? What I need to know before I purchase is: What tick data is being used in the forward testing? Is it the data from the past or from other symbol
Hay, I am new to programming and this is my first EA. I used PositionsTotal()<=0 to count all positions, now I want to use magic numbers to count positions. I would like to ask if there are any other solutions or methods. if (PriceInfo[ 1 ].open > Buffer_belowlin_FS[ 1 ] && PriceInfo[ 1 ].open >
As long as the Return Code is not 10009, I can safely assume its an error but looking up on the list of return code here: https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes I couldn't find anything for 0. Here's a sample of the order check result
It's possible to have a good entry system, but we have to think about the hard part which is knowing when a trade should close. - Fixed take profit is a random number of points. If it is large, the market might go up and go down again causing you to lose the profit. If it is small, you might miss a
Observation / research note While backtesting a multi-symbol portfolio EA on EURUSD M15 , I noticed that entries for GBPUSD, USDCHF, USDCAD, and GBPJPY were systematically about 15 minutes late . EURUSD, EURJPY, and EURAUD entered on time. This happened in Open Prices Only mode. When I ran each
Can someone tell me which ea is the best in MQL5 market ? There are so many EAs in MQL5. It is difficult to find good EA
Hi all, I came across a youtube video someone (Can not find the video i searched history on every browser and phone) was making code changes to position sizer from earnforex to have an indent on breakeven of specified value and also for the trailing stop to start once tp1 is achieved instead of
Hi, I am working on Partial Closing Positions (MQL5). On A Netting account, I simply open an opposite order with the right volume,and can (of course) set the trade comment (Name of the EA) like with any other trade. On a hedging account I use PostionTradePartial to partially close a position
My mother language is Arabic, I will try to make this article as simple as possible, away from technical jargons. This article is about using two Python scripts (master_client001.py and slave_server.py) to copy trades locally (at the same PC or Laptop) between two MT5 platforms (Master and Slave
Hi! I'm looking for a very simple, free control panel. I just want the Second Life to automatically populate with given points. One click buy/sell. That's all. Does anyone know of a utility like that? Thanks
Hello, Please help me figure out what the issue is — both I and my client, for whom I am developing a trading robot, are experiencing a notification sending error: send request failed (raw - read failed, 0 wsa error, 1 bytes needed). Sometimes this error occurs, and sometimes it does not, and the
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.