Expert Advisors and Automated Trading - page 53

Hello there, I am trying to work with the economic calendar, but even a simple query does not bring values. I am sure I am overlooking some basic thing? here my program for reference: MqlCalendarValue values[]; datetime date_from = D'28.10.2024' ; // take all events from 28. Oct 2024 datetime
I'm having issues validating an update to an EA, and I can't figure out what I'm doing wrong. The problem is with the trailing stop, and even though I validate the SYMBOL_TRADE_FREEZE_LEVEL and SYMBOL_TRADE_STOPS_LEVEL, I still get the error "[Modification failed due to order or position being close
[Deleted]
Please anyone to Help my Mt5 is displaying unsupported filling Mode...What is the proble
Hello everyone, I'm experiencing a strange issue with the MT5 Strategy Tester. Every time I try to load or run a backtest, I hear a sound that resembles a 'rubber duck' or squeaking noise. Alongside this, the tester either freezes or doesn't load data correctly, and I'm unable to complete any
Hello, i am a complete newby in this game. I would like to download an expert advisor , but i just cannot find out how to download the bot. I have read all the instructions, but theyŕe not really helping at all. Any ideas, anyone
Hi guys would you please guide me that How to get total open positions with a magic number in mql5 ? thanks in advance for you help
I tested this code without errors when closing each position one at a time. But when performing Close All Positions Bulk Operation, it does not recognize enough events. You can watch the video for more information. int OnInit () { //--- return ( INIT_SUCCEEDED ); } void OnDeinit ( const int
How can I drop a trailing zero from a text string (in mql5) that will be written to a csv file. For example: "0.10" to "0.1" Basically, I want to save the mql5 to the csv in the same format that Excel exports to csv
Is it possible to see demo trades' history in MT5? Apparently, it is not, but please ckarify. Thank you
I have an expert that when I optimize and use the CPU form between two systems, it does not use the CPU of the second system, but when I use MQL's default experts, it uses the CPU of the second system. Why can't I optimize my expert with two systems
When I download historical data from metatrader using the XM broker, is the data already adapted to daylight saving time
Hi, may I ask why my code is not working :(, the error keeps getting the same code 4756, I have printed the debug printed log it seems nothing wrong with it but it still wont open any trades at all. I started some researches on official website about the OrderSend function but I still couldnt find
Subject: Issue with Changing Lot Size and Refreshing Trading Settings on VPS Hello Support Team, I am facing an issue with my VPS, which I use to run the MetaTrader platform. The problem is that I am unable to change the lot size for my trades. I have tried several steps to resolve this, but
Hello, I am new to MQL5 and may be missing something, that is why I need your help. I have simple EA that checks the performance of the indicator and it seems to work fine, but I found that it has ignored indicator conditions and hasn't opened trades several times. Can't seem to find the reason for
  Test failed  (4)
Hi guys, I have a question for you - maybe there was similar, but I did not find it - I created an EA bot. On every Strategy Test worked well everytime and the performance was really good. (different months, different settings...I tried it on many ways) Then I added to a Demo account for a real test
I ordered the EA and it worked fine with the default settings, so I closed the programming job. But now every time I change a variable, the EA starts working incorrectly. I contacted the programmer but he refuses to admit fault. Can MetaQuotes force a programmer to redo an EA
I am currently testing an EA I built that places pending limit orders. Everything works fine when I test with visualization enabled, but I receive an 'invalid request' error when testing without visualization. Could this be a limitation of the tester, or is there an issue in my code that I need to
Hi Guys, I have made mathematical interpretation in one of my expert advisor, my issue is when I testing it on MT5 demo account the results are correctly placed, but when I testing it in my broker's demo account its suddenly changes it value, for example i bought 0.01 lot at 2750 and target it only
Good Day Need some assistance with this error, I have published the same file previously with no problem
I just noticed that OrderInfo.Type() always return a 0 for all type of Orders. Why is this so? OrderInfoType always return 0 mql5 //+------------------------------------------------------------------+ //| Check OrderInfo.Type().mq5 | //|
Hello everyone, My setup : Server1, has 74 local agents, this is where I start the optimization process Server2, has 74 local agents, which are added to Server1 Local Network Farm. Both are running Windows10 and latest stable MT5 version (build 4620). My problem is that I'm running a c++ pipe server
I have tried to backtest an expert advisor, but it doesnt work. I wonder why... Screenshot attached
How to draw a trend line in the visual chart in the strategy tester? everytime I hit start in the tester, a new chart opens and I am not able to use the drawn trend lines. any help?
I searched through File* functions in the docs, but didn't find anything
I have built a trading bot , and when i back test it from may last year to now it is profitable genarating 57% profit when risking 1%, but the issue is when i back test from january last year the bot does not produce the same results within the same period it was profitable that is from may to now
Can I programmatically clear the StrategyTester journal on the start of my backtest run? Thanks.
Hi, So i'm trying to build a scalping system that watch the market in 5 minutes timeframe and execute trades based on simple algorithm, until here its all okay (I hope so), but when it comes to lot size its a bit tricky. The formula i calculate lot size is: willingToSpend = accountValue * .01 //
My MT5 EA is creating a file that will be read by an external system, and then that system creates a response file that my EA reads. This process happens once per M1 bar and takes about 1-2 seconds, so when running live, timewise there is plenty of margin. The problem occurs when running a backtest
I have a problem with optimization: when I run a backtest with a strategy, it takes about 8 minutes. However, when I run a simple parameter optimization over the same strategy and period with 10 variants, the optimization takes around 58 minutes, which is more than 7 times longer. I didn’t have this
I have omitted error handling for brevity. Let's assume there are no error while opening a position. The below code works fine for me. MqlTradeRequest request; MqlTradeResult result; ZeroMemory (request); // Ensure request structure is clean ZeroMemory (result); // Ensure result structure is clean