Two different charts open on two seperate tabs. If i dont want EA to run on one tab/chart I disbale "live trading" in the common tab, but this disables the EA in **both** tabs. Is it not possible to have the EA running in just the charts I choose
Hello again. I'm building my strategy and it's becoming big, and I need a better way to manage how the objects interact with each other. I'm new to OOP. Can I generate signals—events like—instead of manually checking for conditions on every signal object from the trading class? Then, the trade class
Hi, i have a product for sale that i have updated a few times. Had some errors on update. volume and not enough money errors. Which i fixed. I have the latest version ready to update. I added EnableTimeframeTrendFilter = true; // Enable trend filter on H1 and H4 and Trading modes. Trading modes is
I created a working script, but when I load it to the chart I don't get Input Window like I get loading an EA, It loads automatically with its defaults. What should I do with it? I remember, I started learning mql5 , and back then it always asked for submission with an input window
Hello, Any expert advisor or script out there that when I open a trade it automatically places stop loss based on Previous X Number of candles high/low (Buy order the stop loss will be on previous X number of candles low and vise versa) . And not tied to any pair (open for all pairs and markets) on
Hi all, I have a question regarding the following issue: The second-generation i5 CPU delivers roughly three times the performance of a Xeon, yet their Single Thread Ratings (Xeon is 1117 vs. 1492 for the i5) don’t indicate such a large gap. What could be causing this significant performance
Hi All, I am having this error when calling OrderSend function . I hope someone can help me. This is error log : 2021.11 . 11 04 : 10 : 45.254 TEST (EURUSD,M5) Alert : Open market order: Error 10013 - Invalid request 2021.11 . 11 04 : 10 : 45.254 TEST (EURUSD,M5) MqlTradeRequest - action: 1
Hi, I have run 10 genetic optimisations across various markets and backtest / forward test periods. All the tests consisted of the same inputs. Now that I have run these tests I wanted to view all the forward and back test results, but only 4 of the 10 had the forward results saved and the forward
Hello there! :) At start ill say that im beginner writing EA's but im trying my best to improve each day. I have just managed to put all function together, at least what i thought, no error, compiling no problem. But when i put it into test, indicators load, but it doesnt take a trade, if anybody
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

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.