Hi everybody, I downloaded the demo of an expert advisor. But when I do the backtesting, then changing leverage or candle-times has no effect at all. The results are always the same in the backtest. Is there a general advice, how this can be explained? How do I know, which leverage was simulated in
I’m developing a private MT5 Expert Advisor and I do not want to share the source code. I’m looking only for architectural feedback, not strategy optimization. The EA uses a hybrid approach: SARSA/QTable plus rule-based guards, position protection with BE / trailing / StepLock / GBP profit
Hi all, Working on a directional filter for a systematic XAUUSD strategy. Need feedback from devs who've built trend-filter logic, not on my system architecture. Setup of the filter : I want to refuse entries when the price is in a clearly opposite trend context — but not be so strict that I miss
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 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
my code below just prints best/worst equity when these are breached. And when equity hits X then closes all trades. This worked fine for oever 3 months til my lateest update 5833. i dont know if this is a bug or is my amateur coding. Here's my coding below. If you see anything that is wrong or can
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
gidday. i want my script to work on forex pairs, all trades, from all forec symbols. My script below is working on both usd and aud deposit accounts, but only on BUY TRADES. help! I want all my trades have an sl that is equivalent of $350
this script converts the chart's ticks into any Second(s)timeframes !!! the Script works only for XAUUSD, you can modify it to work with other pairs or other names of Gold pair. Example custom periods: S5 S10 S15 S20 S30 S45 S50 Once the Second(s) chart is generated, you can apply almost everything
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
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
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
Hi guys, I used to experience intermitent issues with the Tester Visualization hanging on "Waiting for Update" but usually if I forced close it and retried a few times or changed the symbol it would start working again. However, now I am completely stuck. No matter what symbol I try, how many times
[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 >
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.