Expert Advisors and Automated Trading - page 16

Can anyone help? Im getting this error but tell me if im wrong. This means im not allowed a hedging function. My ea doesnt hedge byt it does open to orders either side of the market how can i fix this
  Tick data MT5  (13   1 2)
Hi, i downloaded tick data from dukascopy, to get 100% quality, but it doesnt match real trades, while the mt5 symbold does. So i assume dukascopy doesnt match my brokers quotes or something? How can i know what source my broker uses so that i can download it? Thanks
Hello there, I am following the instructions for WebRequest in the documentation of MQL5. I am using the example implementation for testing, but I get the "error 4014". According to my understanding, it means that you are not allowed to make the web request. However, I have maintained the web
Hi I was wondering if Dukascopy historical data works for mt5 and is it for every tick based on real ticks? Also if so what are the steps to download these bars and ticks? I tried tickstory but it was missing custom timeframes To download the ticks do I download "Candlestick: 1 Tick" ? and to
I was modifying a couple of EA's today, but after copying/pasting some lines of code I suddendly got a compilation error regarding the Event Handler not found, I confirmed all the code was correct and decided to restart the both MetaTrader 5 and MetaEditor applications. After doing this it's not
Please help me understand: I am running the tester strategy with an expert of the MT5 market on gold with four different brokers Dukascopy, Swissquote, FP-Market and Ava-Trade and I get completely different results. In particular with Swissquote and Dukascopy the result from 01.01.24 to today is
Hi, I encounter this error when I execute my code: ')' - open parenthesis expected , I am unable to solve this error, I don't know what the problem is, would please help me to solve this error if possible? Here is my code: //+------------------------------------------------------------------+ //|
I have written an EA to product training data for a Python forecasting model. Most seems OK but the output from the Bollinger Bands is the same for HI, MID & LO. The folloing is the Terminal LOG 2025.08 .04 15 : 27 : 53.368 Create_Training_DataV2_For_LSTM_v2 (XAUUSD,M5)
the profiler of my mt5 is extremely slow. with any EA (even the simple ones included with MT5). not sure what's going on. Even after I stop the backtest and then have to stop the profiler, I don't always get results in the Profiler tab . what should be my troubleshooting steps? I can't find anything
Hello, I'm having an issue where compiling a .mq5 file from the command line (MetaEditor64.exe /compile:<path> /log:compile.log) silently fails without generating an .ex5, no errors and no logged issues. I stumbled upon this issue whilst using Visual Studio Code in combination with the MQLTools
So I am working with an EA that gets info from Ichimoku, here is my code: int i_def = iIchimoku ( _Symbol , _Period , 9 , 26 , 52 ); double tenkan[],kijun[],senkouA[],senkouB[],chikou[]; ArraySetAsSeries (tenkan, true ); ArraySetAsSeries (kijun, true ); ArraySetAsSeries (senkouA, true );
Hello everyone, and thanks for reading. I'm making commits and pushing to the Forge repository linked to my MQL5 account. The process seems to go through, and I can see everything updated on the Forge website, including the latest changes. However, locally I still see an icon that I believe means
[Deleted]
Good day, I am experiencing an issue with the stability of my EA/ EA's. It appears to become Unresponsive after X amount of time being attached to the chart. By unresponsive I mean that the EA has been left to run on its own, without interference, and after X amount of hours I am still connected to
Greetings why is closing price higher than the stop loss? As soon as it hits my stop loss, stop loss price and closing price are not the same. When my pending orders (buy stop & sell stop) are placed everything is perfect. Once it turns into a position, price changes and stop loss changes. I tried
I sometimes see that the optimization graph does not show all results. As can be seen in the attached image, the columns in the 1-dimensional graph have no points for SellTP 120, 220, and 240. However, in the listing of the optimization results there are entries for these configurations. In fact
[Deleted]
This looks like a very interesting EA. Does anyone know how I can view the text of the reviews for any particular EA in the codebase? https://www.mql5.com/en/code/61921 I can only see the ratings, why can't I see the review text? Thanks
I noticed most ea in the market often display from -3 to -10 z-score. I new ea I'm working on obtained this result: Honestly, I read different and contrasting opinions about the meaning of z-score. I'd be happy if someone could explain in a schematic way like: big negative/small negative/around
Greetings, Have picked up MQL programming after a few years and started with a very simple script. Nothing more then getting the tiem of the server. BUT despite the simplicity of this small piece of code this method returns a datetime in the near past which is: "2025.08.01 23:59" . When I execute
Hi, I wrote a function to get the highest obv value for the last 1000 bars. However, I got an incorrect return. (It's returning 0) Can anyone see the issue? Please help : void OnStart () { //--- // string symbol = "EURUSD" ; ENUM_TIMEFRAMES timeframe =
What is wrong: ouble GetStochasicValue( string cPair, int nPeriod, ENUM_MA_METHOD , ENUM_STO_PRICE price, int bar) { double sto[ 1 ]; int stoHandle = iStochastic (cPair,nTimeFrame1,nPeriod,price); if (stoHandle!= INVALID_HANDLE ) { CopyBuffer (stoHandle, 0 ,bar, 1 ,sto); }
hi guys, see screenshot, i am looking for something like this if anyone knows where i can obtain it i'll appreciate it. basically its all about scalping.. usually we have individual scripts where we close all open orders close all in profit trades close all in loss trades hedge all reverse all lock
Has anybody got a solution to "No Object Drawing Tools" in MT5 Backtester? Does anyone know if there will be an update which will include these Object Drawing Tools in MT5 Backtester
hi guys i have this code for create memory mapped file i use this library https://www.mql5.com/en/code/download/818.zip #include <MemMapLib.mqh> CMemMapFile memFile; string nomeFile = "Local\\MySharedMemory" ; int dimensioneMemoria = 1024 ; // Dichiaro l'oggetto mMap come globale CMemMapFile mMap;
Hey, everyone could anyone help me and explain the difference between 1 minute OHLC and the every thick backtest, because I have a great and fantastic results in the 1 OHLC modeling even if is a long term backtest, and in the opposite on the other modeling a weak results and negative results? How it
  EA migration to VPS  (11   1 2)
Hi, I have just rented a VPS and migrated the EA. how do I know if I did everything correctly? I dont see any trades running.
I am not a coder but I have a question about coding. Is it possible that a broker blocks the possibility to use an EA on a Demo account , and that must be implemented a turnaround in the code itself to be able to use the EA on that Demo account
Hello fellow developers and traders, I am trying to upload a newer version of my ea with some ui display but I'm getting the following errors. This happens when I upload my indicator too. Anyone experiencing the same issue? Is there a fix for this or it's an internal issue on mql? I would really
Hello, I'm working on a simple Expert Advisor (EA) in MQL5 that uses the MACD indicator on the M5 timeframe. The code relies on iMACD() and CopyBuffer() to retrieve the histogram values (buffer index 2 ). Even though the code compiles correctly and the handle is successfully created, during strategy
[Deleted]
Hi all, I'm running a test that should only take a few minutes and its taking hours to complete. The cloud only uses 58 agents out of more than 10k which are available! Any idea why this is happening and how to solve the issue? Thanks. See screenshot below
Can somebody make script or indicator to buy and sell at market price with a user-defined key of the keyboard