Expert Advisors and Automated Trading - page 17

Hi, I got "Internal Compiler Error" message when trying build a large EA containing millions of lines of code (for testing purpose, I get tired of having to read files every test). Total data is about 4-500mb. But when I reduced the data size to ~50mb it built successfully. Is there a maximum size
test on EURUSD,H1 (netting) 2019.04.09 01:00:00 failed cancel order #21 buy limit 0.2 EURUSD at 1.12594 sl: 1.11994 tp: 1.12626 [Invalid stops] 2019.04.09 01:00:01 failed cancel order #21 buy limit 0.2 EURUSD at 1.12594 sl: 1.11994 tp: 1.12626 [Invalid stops] 2019.04.09 01:00:02 failed cancel order
#property copyright "Copyright 2024, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" #include <Trade/Trade.mqh> CTrade trade; CPositionInfo pos; COrderInfo ord; input group "=== Trading inputs ===" input double RiskPercent =
Let's say you like the performance of an EA over a certain period, but you are unwilling to use it because of the fact that it lacks any risk management features. In this case you could code another EA which applies the desired risk management and have both running on separate charts. But you are
I want to test some code I just wrote but I can't because automated trading has been disabled. Thoughts
I try send EA for validate. its Validation completed with errors test on EURUSD,H1 (netting) 2021.02 . 04 20 : 00 : 00 position stop out triggered at 45.98 % [ # 2 buy 5 EURUSD 1.2104456 tp: 1.22345 ] stop out occurred on 2 % of testing interval strategy tester report 1 total trades I try fix its
I want to enter the trade when current candle crosses high of previous candle. But issue there's something wrong that `high` is always less than previous candle high. In attached screenshot you can see it's printing high less than previous high even bullish candles are forming. void OnTick () { if
Hello, I find an Error during backtesting as shown in this pic While: void ModifyBuy ( string Symboll , double StopLoss, double TakeProfit ) { for ( int posIndex= PositionsTotal ()- 1 ; posIndex>= 0 ; posIndex-- )
I wanna calculate spread values of given currencies how can i calculate it , It would be great if there is a form or blog explaining how to calculate this
  Scalping robot  (1)
Which robot is the best for scalping
One of my MT5 installations is downloaded directly from Metaquotes, and the latest updated Build is 4866 from 15 Feb 2025 I noticed that after this latest update, the Strategy Tester now shows "Indicator" instead of "Expert" at the top in the Settings tab. Is this a bug in this Build of MT5? If
Hello. I uploaded my EA for verification but even though I coded it properly and incorporated the necessary checks it still failed the verification with "no trading operations " error. Any guidance is much appreciated
  VPS Question  (2)
I've been running an MT5 at home and at work using the same account I thought that getting a VPS and loading the charts and EAs on there would be a central spot - so i could update settings on say USDCAD EA - change the lot size or take or entry point or what ever and life would be grand i could
Hi guys like tittle i find a pluguin or similar to have a market replay for test my startegy i want know if exist somthing i try fx blue replay but i cant change my time frame anyone have somthing to suggest? thanks
Hi everyone, I'm on my first EA (with mql5) and I have some trouble. My goal: Get new datas from Calendar event after maximum 5sec. Unforthunetly I get new data sometimes after 1 minutes, sometimes 4 minutes.. It's too long ! I don't understand why, I use EventTimer() to launch the trigger who check
Hello Community, when you attach a dialog to the chart, for instance, the Contorls Dialog located in folder Expert Advisor / Examples and Chart on foreground is s witched off, the dialog is in z order "on surface", so that the trade lines (of order history) are behind the dialog. So the dialog is in
I've written code that captures the signals of an indicator for different inputs and at various timeframes. In version 4, this was straightforward, and obtaining the indicator's output was possible with a single command. in MQL4 I also draw a table for 10 symbols and 8 TF and 5 indicator for each of
Hi There, Can anyone please advise why i have this message when i start my MT5 software? Tester: "cloud servers switched off". I cannot use the strategy tester because of this issue. Thanks
Hello guys, I'm using CopyTicksRange function in my EA to get MqlTick data for some calculations, but CopyTicksRange doesn't work when back-testing. Any solutions
I had it working a moment ago but then it stopped working there isnt even the buttons to stop or play the algo trade its just a fast forward button and I tried the expert advisors that are downloaded and nothing. also, why is metatrader so horribly optimized for anything? I added a picture of what
Hi, I'm trying to copy an indicator from Trading View and part of the indicator has the follow line of code rr = ta.rma(ta.tr, 35 ) ta.tr = True range. It is max(high - low, abs(high - close[1]), abs(low - close[1])) ta.rma = Moving average used in RSI. It is the exponentially weighted moving
Hi, i am really new to MQL coding. Can anyone help me on my problem? Just an example: I open multiple positions on the same entryprice. Lets say 5 positions. Every position has its own TP. All the positions have the same SL. When the first TP hits the SL of all the positions should change to BE
Hi, How are you? I am now coding with my own logic and have faced some problems. I tried several times, but I am new to this language. So if someone can help me, I would be really thank you. // Moving Average Crossover EA for MT5 (MQL5) // Executes trades based on crossover of 10-period and
hello mql5 team, why so high temperature when running only one MT5, GPU reaching above 80 degree always, I already disabled Opencl. if run two instances of mt5, it reaches 90. no indicator added, only one chart with EA running
test on EURUSD,H1 (netting) JI 0 11:13:40.378 Core 1 2021.02.01 00:00:00 🔄 Initializing EA... strategy tester report 108 total trades Hello, I have never encountered such error before kindly guide . My Ea on MT 5 is working perfectly but when I validate this comes up. I will appreciate the help
I created a Multi-frame EA and I'm backtesting it. But the profit I get if I try it on M1 is different from the the profit on M2, M3, M4 etc.. So the question is: should I add all these profits to make an only profit or should I do something else? 'Cause I want to define only one profit for every
Hey all! im trying to build some nice EA for news trading. i did some test and i works fine but it turns out the data of the mql5 calendar is very delayed. i use the ID of the event to let the EA look at the prev , forecast and actual data. With the delayed my trade start to late and the biggest
Keeps getting exactly ZERO tasks to process, after the upgrade of the server to 2025. Of course I checked the logs, everything is fine, only that it does NOT get anything to work on. It only autoupdates as soon as new client versions come out, and nothing else. After each server reboot, all of my
Hello everyone, I'm having trouble retrieving the magic number and the comment when the order is closed. It places the sell or buy limit order containing the magic number and the comment. If the order is pending, I can check it, and if the order was executed and is in progress, I can retrieve it
Hello, I have a trading system which I want to automate. If it's possible, I want to automate my trading system while it's "working together" with other forex pairs. The system is the same for all pairs. Only I want them to watch each other. What do I mean with this? For Example: I have 3 pairs