Hello everybody, I tried to upload new version of my EA to MQL5 market but this time code was written in object oriented style. I can't pass validation tests and there is a message that some checks I didn't pass. Specifically that checks are considering lot size. I have mechanisms that prevent that
Hi All, I have run into this weird problem from 24th October, the pending orders when placed show a magic number associated with them but when the orders get filled the open position does not show a magic number. The position is showing itself as "placed manually" when I hover the cursor over the
Hi, when I open strategy tester, there needs to select expert advisor or indicator. Is there a way I could backtest using neither EA nor indicator? Can I backtest without EA and indicator
My EA is operating with Buy/Sell Limit orders on hedge accounts. When the buy and sell positions are equals, the EA uses CTrade.PositionCloseBy() to close a buy position with a sell position with the same volume. This strategy works very well in the demo account, but it does not work on the real...
Hello I have written an expert adviser and I'm using C-Trade to execute buy and sell commands. Unfortunately the program stops after executing the buy or sell command. Would someone please help me and explain what is wrong with my code? I have uninstalled MT5 completely and deleted Metaquote data
I have an issue with some IF statements which are shown in my code below (I have taken out a lot of code that does not relate to the topic). All code highlighted in purple works perfectly, both lastSignal & thisSignal strings are updated when required. My problem is after my // Set SAR swap
For my trading strategy I use levels from high timeframes like the Daily and H4, but my trigger to enter is found on much smaller timeframes like m1 and m5. My levels are drawn on the daily with a custom indicator. I'm trying to figure out whether I can create an EA to leave running on my trigger
I'm new to programming and i wrote a code for my ea but the journal shows failed narket buy 0.2 BTCUSDm sl: 105348.0200 tp: 105349.5200 [invalid request] and i do not know what to do. this is my OpenTrade Function. void OpenTrade( int orderType) { MqlTradeRequest request; MqlTradeResult
Hi all, I have two questions regarding the Strategy Tester in MT5. Maybe someone knows the answer: Are function calls to Print() and PrintFormat() automatically disabled during optimization, or should I rather check for MQLInfoInteger (MQL_OPTIMIZATION) before using them? My EA is quite verbose
I’ve developed an EA in MQL5 for Gold , where I’m using a 5000-pip SL and TP. However, I’m encountering an issue: initially, the order fails to be placed due to an ' Invalid Request ' error, but after several attempts, it eventually goes through. I’m trying to upload this EA to the MQL5 site, but
Hi, i am new to bots and have a question... Is there a bot available to perform the following, otherwise would it be possible to create this? To place a buy stop and sell stop order x pips/points above and below the opening price of a particular candle? For example lets say i want to buy dax germany
When trading indices and cryptocurrencies, the EA robot reports an error that the margin is invalid. The contract volume in the specification is 1. Does anyone know why
I am trying to debug my deinitialization with the visualizer, but I don't see any evidence of deinitialization in the visualizer's Journal. Is there a way to get normal deinitialization in the Visualizer Tool? Here is the basic EA I wrote to check to see if I could get any reactionary print in the
Hi there, I noticed, that on some mashines the Metatester consumes a lot harddisk... in the windows ressource monitor the harddisk is used with 100% ( running 10 tasks f.e.), therefore the process is more or less stalled ... this only happens on some mashines.. the RAM is not used at all , so there
hi, can anyone explane me why i can't find the method CheckVolume in the MQL5's guide?? please help me thanks
Hello champs! So I'm trying to test and optimize my strategy using two Parabolic SAR indicators with different inputs. //... signalPSARHandle = iSAR (symbol, timeframe, signalStep, signalMax); if (signalPSARHandle == INVALID_HANDLE ) Print ( "Error creating Signal PSAR handle" );
Hi I am new to mql5. I want to write the code to connect the close prices of candles to each other in an expert advisor file. In Pine script, it is: plot(close) In mql5 I can use something like this, but it creates numerous parallel lines. int numberOfCandles = Bars ( _Symbol , PERIOD_CURRENT );
Hello! I keep receiving this notification on my terminal send request failed(invalid certificate). This notification starts once I open the first trade on terminal. I closed the trade, notification keeps coming. If I restart the terminal, notifiation stops until I open again one trade. Kindly
Hello! I'm creating an EA primarily using OnTick() and to confirm it's working properly I was using CopyTicksRange() to double check the results. The issue was that they were diverging and upon further investigation I noticed that the Ticks from one are completely different from the other, even from
Hello i need some info if it is possible, i have made a demo account for mt5 and i copy the main mt5 folder to have 2 terminals on the same computer . It is working i have the demo and the live account on 2 terminals but when i copy the EA's in the data folder of the demo terminal , the terminal
Hi, I have trying to put a panel around some labels that are just getting certain information, to make it look better i have colour schemes. The colour schemes have background colours. //+------------------------------------------------------------------+ // Enhanced Panel Functions
Hello, I am running 1 EA on 28 different pairs, using 28 different charts. At present, I attach the EA to each chart one by one, which is quite time consuming. What is the quickest way to attach this bot to all the charts at once? Is this something possible? Are there any alternatives? Thank you in
After adding multi line comment to my EA i noticed huge spike in CPU usage while Backtesting in Visual mode on every tick string comment = "First Line\n" ; comment += "Second Line\n" ; comment += "Third Line\n" ; Comment (comment); So i decided to crate my own Comment function and it turned out to
today is saw a great tutorial about a newsfilter. The filter calls the events and check if there important for the pair im trading to. nice way to escape voilent moments... but i really like to try to work with the calender. i want to call the actual value of the last event. So i can check if the
Hello, I am reaching out regarding the integration of Python with MetaTrader 5 (MT5). I have encountered difficulties when trying to integrate Python with MT5 for automated trading and analysis. Currently, I am unable to utilize Python in conjunction with MetaTrader 5 despite following the python
[Deleted]
How is it that the POSITION_COMMISSION property is not indicated in the documentation on the properties of positions, nor proposed in the code completion in MetaEditor? https://www.mql5.com/en/docs/constants/tradingconstants/positionproperties#enum_position_property_double However, we find the
Hello everyone. Compiling this code I am getting the following error: "function 'Test::test' already defined and has different return type" template<typename any > struct Optional { any value; }; class Test { public: template<typename any > Optional < any > test(); };
double CalculatePoint() { if (Digits == 3 || Digits == 5 ) { return 0.0001 ; } else if (Digits == 2 ) || Digits == 4 ) { return 0.01 ; } return 1.0 ; } Improperly formatted code edited by moderator. Please always use the CODE button (Alt-S) when inserting code
For example, if my model has 200 factors and I've exported an ONNX file using Python, but MQL5 needs to handle the data for all 200 factors, it can be quite cumbersome. Is there a good way to handle this

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.