Expert Advisors and Automated Trading - page 2

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 all, I couldn't find a dedicated bug-reporting channel, so I'm posting here. I'd appreciate any confirmation from the community on this issue, and ideally, someone could escalate it to the development team if confirmed as a bug. When using the Python API’s order_send() function in MT5, the
Hello everybody, First, thanks to all contributors, you've been helping me for years! I'm migrating my bots from MT4 to MT5, and all have been fine until now. But I have a question, and I'm sure the answer is simple, but I can't get it... Here is the problem : - On MT4, to know all the open
I have an error in the WebRequest section. Can anyone help me edit it // Define your Telegram bot token and chat ID input string BotToken = "YOUR_BOT_TOKEN" ; input string ChatID = "YOUR_CHAT_ID" ; //+------------------------------------------------------------------+ //| Expert initialization
hello, i want to check if account run ea must match with code then EA can run for example code input ID 11111, i write code as below. and then ID account if 12345 still run as normal. then I know below code is wrong. please help me correct it long FixedAccountID = 11111; int OnInit() {if
Making backtests suddenly the result changed a lot from one test to the other. Looking for the reason why, it shows that it shows suddenly Market closed at a time when in tests before trades were made: 2024.10.27 15:52:01.560 2020.01.03 22:48:40 failed market buy 4 .USTECHCash, close #7 sell 4
I want to disable trading for a .ex5 file on a specified condition using EA. Can Someone please help Me in disabling Algo-Trading via Code? Help Will be really really appreciated and By helping me you will help many other peoples too because there is no previous forum of any detail about doing it on
Hi everyone, I've been struggling a bit with understanding the Forex trading times and spread variations, and I'm hoping some of you experts can help me out. My broker's website states that "server time and charts are GMT + 2 or GMT + 3 (when daylight savings is in effect)." The broker also
I am not able to download any EA for backtesting , see screenshot attached. When I click on Yes or No, nothing happens, no download starts. Is this an error? Thanks
Is there a way to upload old EA backtests and their settings on MT5? If I leave my computer on standby at night, will the EA work? Thanks in advance for any suggestion
Hello everyone, I am trying to code a function to return the accumulated daily Profit/Loss, but I cant make the code work. Can any guru here be so kind to help me? I Appreciate! double ProfitAll( datetime & XHoraPrimeiroCandle, double & XProfit) { int err= 0 ; if (IsFirstBar()) {
Hi All, I want to to know if there some easy way to partial close automatically on the bases of total TP. For example Trade buy XAUUSD 1 lot @1800 with TP 1900. Then automatically partial close 50% 1850 ----> partial close 25 % more on 1875 and Then full close 1900 . I FOUND some EA does that but i
I have my EA which I have split into some files for readability. So I have one main .mq5 file and 2 secondary mqh files that I import into the main .mq5 file. While this is OK, in order to make this work, I need to have my main .mq5 file in the MQL5\Experts\Advisors folder, and the imported .mqh
I am working in a grid system where 1st position will open with current price of a pair, 2nd position will open if it gets down a certain pips and 3rd position will open again after a certain price.1st and 2nd position opens correctly but 3rd position opens but with the same value as the 2nd one
Hello, I have just noticed a discrepancy in the Strategy Tester when examining the spread for EURUSD on the M1 timeframe. In the chart, I have both the Bid and Ask lines displayed. I also have the Market Watch window and the Data Window open. Here’s the
I selected NZDUSD, AUDUSD and they cannot be backtested? I selected the date range from 2018 to 2024, but the results are showing only from 2024
you know the market will not go on that level soon, bollinger bands nature falls into this, what you guys do to prevent, filter or something related to this? i mean the top strategy logic that i could implement to make this aspect better
What is MQL5 Wizard : The MetaTrader 5 Trading Platform includes the MQL5 Wizard , which allows to quickly generate code of an Expert Advisor (Expert Advisor builder). With MQL5 Wizard, knowledge of programming languages is no longer a prerequisite for creating trading robots . In the past, it
Have I made my point? how can I do this and how does the 1 minute ohlc work? should I make it wait till second 59 or something like that? has any one have this solution? Thanks
I'm experiencing problems with WebSocket closure and EA deinitialization in my MetaTrader 5 Expert Advisor. The main issues are: When removing the EA from the chart or closing the chart: MT5 hangs briefly The Expert tab still shows the EA as connected The server-side still sees the EA as registered
Hi guys i am in MT5 i try to open inthe same time one order in NZDJPY in buy and one order SELL in NZDUSD i have create an expert i place over NZDJPY and push the button , the button call some function and open only a BUY NZDJPY and not openNZDUSD this is my part of code string _Apri_Correlato(
Hey all :) i'm an absolute newbie and barely grasping the basics, can anyone assist in recommending when building a bot for trading what 5 signals are recommended, free if possible due to having little capital to set up at this stage.. the struggle is real :'? any assistance is appreciated :) thank
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
First greetings to all fellow traders. I am interested in which robots from the market you recommend for long-term stable trading with funding capital (NextFunds or similar). I would like to diversify the portfolio with 5.6 quality low risk robots and aim for returns around 3,4% stable and go to a
Hello, I have this issue when i want to upload my EA for selling : Invalid version name format I don't understand why because my EA is on .ex5 Thank for your help
Example MA_Array[i]= iMA(Symbol(),0,5... ...i); crosses over MA_Array[a]=iMA(Symbol (),0,21....a); I receive 'MA_Array' - invalid array access 'MA_Array' - invalid array access
I have defined a few macros for constant values. Some macros are dependent to another for example #define x 14 #define y x+ 7 #define z y* 5 So I wonder these values are going to be calculated at the run time? or they are going to be calculated when compiling and the final values will be put to the
I am trying to create a code that will delete my orders as well as pending orders. Unfortunately I cannot get any results but only error like "UNKNOWN RETCODE 0" and "ERROR 4014". The code is : void ClosePendingOrders() { int total_orders = OrdersTotal (); // Ottieni il numero totale di ordini
Below in the coded section, I have a CGraphicalPanel class representing my Panel . But I see when minimized the panel in X dimension, bit too narrow. How would I change the the size of the panel when minimized? Would like the panel to be large in X dimension when minimized. All I know that
My EA measurng the max DD every tick, and saving the highest drawdown. But it is usually a bit higher than what the backtest reports claims. I am testing with Every Tick Real Ticks. The MT5 backtest report claimed the Max DD is 969.58 USD, while my EA claimed that it was a bit above thousand. To