Hi, I'm building as exercise a simple EA that open a long or short trade at the breakout of the 7am candle. I've written the below code but, as my idea was to set the "entry point" only at the 7am hourly candle, the IF i've inserted for checking the hour is not let passing the variables of entry
Dear fellows I am having hard time with CheckLoadHistory() of article https://www.mql5.com/en/docs/series/timeseries_access and seeking guidance here if any known issues with it or I am doing something wrong? I am using following code to sync data and when I start the MQL Platform the indicator
Hi, I'm new to this and I'm stuck. My code does not seem to execute at all. Here my very simple code : void OnTick() { //--- Print("OnTick"); } Nothing appears in the "Experts" log when I run my EA. I don't know where to look or what to look for
How to optimize all pair on one test or by any tool .. any one know the way .. i am ready to pay for that
How can I calculate the Margin level percentage that appears underneath my trades in the Trade Tab. What is the formula?
Pure Python 3.9 using the Metatrader5 library. I can create market orders and pending orders from Script, but I can´t modify the price of a pending order. What is weird is that I actually can do that from a Jupyter notebook. From my script all I get is None as result. No error code and that is what
Hi, I've got two servers each running the same EA's. One is a backup incase there should be an issues with the first and they both have the same EA's running. One MT5 has algo trading on and the other is off to not double up on trades. Is there a way to automate failover so the mt5 clients on the
Hello, I currently come from backtesting to demo trading and I encounter the [no money] error and I don't know why. I use a 10 000$ account with 1:100 leverage. I am trying to enter an order for 5.00 lots in GBPUSD and I am encountering the [no money] error. I used a margin calculator and the
Is it possible to automatically add a script to a chart using an Expert Advisor? if yes, what functions should I use
Good Day All, I'm running Windows 8.1 I live in the EST TimeZone (US Eastern Time [ GMT-5 ]) I'm using Python 3.10.3 x64-bit and MetaTrader5 When I pull data using Windows Command Prompt in Python using the MQL5 Module using the below code: (I've also tried adding the timezone to the datetime
[Deleted]
EA is written in mql5 and is based on Zig zag waves, order blocks and candlestick formations, you know market structure, order blocks, but due to Zig zag limitations I can't catch all valid trades. What to do? Delete checking last leg from Zig Zag or make it flexible some how? or what to do? I am
Hi, I want to close another MT5 instances. To do that I use WinExec function. This is how I do it, int end=WinExec( "taskkill D:\Metatrader5 - Tester\terminal64.exe" , 0 ); It returns error 2. Is this a correct way to use WinExec
Is it possible to code an EA that will enter the trade if the EMA line (Green line) goes through a candle stick in a way that the output of the line (Yellow highlight) divides the candle into two parts (A, B), and the length of A must shorter than B. plz take a look at the picture below to
FYI all, I am using a copy trader and for some reason wheter i use the signal providers stop loss or a do my own custom stop loss i see the below in the journal Signal XAUUSD buy ENTRY 2035.25-2035.50 SL 2030.35 TP1 2036.25 TP2 2036.75 TP3 2037.50 In MT5 it says the below: Trades '565564': market
I wonder why this function exist and how it can be used for an useful task ?
There is often confusion among programmers between this function and ArrayGetAsSeries, even in some good articles. Maybe there is historical reason or I miss something.
When a new bar appears in the strategy tester, I'm seeing that indicator buffers don't appear to get filled correctly. For the first tick of a new bar, if I call CopyRates function I can correctly see index 0 in the array contains the values for the opening tick of the bar, and index 1 contains the
double CAccountInfo::MaxLotCheck( const string symbol, const ENUM_ORDER_TYPE trade_operation, const double price, const double percent) const { double margin= 0.0 ; //--- checks if (symbol== "" || price<= 0.0 || percent< 1 || percent> 100 ) in this piece of code
Hi All, Is there a way for an Expert Advisor to terminate itself? At the moment i'm using a workaround: since i've written a DLL i've created a function inside wich just throws an Exception. In this way the terminal blocks the further execution of the EA but don't really terminate it ( and anyway...
Am i the only one having trouble with the strategy tester in mt5? it has always been working fine until last friday. it simply keeps going but doesnt do anything. i didnt change a thing in settings or on pc....
For example , I want to add one EA to 10 chart. but every EA update i must re-add. This is a little troublesome. Does MT5 write a script and automatically add EA to the chart? Please note that is add EA, not adding indicators
Hi everyone, I have had this problem for some time, the EA works very well both in backtest and in profiling, despite this it always keeps giving me the same error, from debugging it does not give me any errors, what can I do
What should I do for a backtest with one hundred percent accuracy? I want to test a robot
Hello, I coded a script for Metatrader 5. I'm not getting a compilation error but I'm getting a warning I need help. //+------------------------------------------------------------------+ //| CloseHalf.mq5| //|
Waiting 4 days to get optimization result from my expert, and I faced this issue. There is difference about 200 items between passed items and total passes number. [redacted URL by moderator] 1. What is the reason ? 2. How to find which parameters condition not passed? (I need to do backtest again
Hello, I have been running into this issue for awhile now. (I will have the image attached to this message). I have an extremely fast computer running thread ripper 64 core / 128 threads and many other specs. So, the issue is most definitely not the computer. I have been working with a freelance
I keep getting error 10014 and/or 10016 related to the correct volume and/stop. Pls assist, i have read almost all blogs pertaining this :D //+------------------------------------------------------------------+ //| Calculate Stop Loss |
Hi, my EA will launch a program using ShellExecuteW and the program will create an XML file that the EA will copy it for further processing. Since the program could close itself due to error I launch the program for every 40 second. The arise between EA read the XML file and the countdown, there's a
Hi I'm trying to call a base class's virtual function inside of a derived class with the same function name. Consider the following: class Parent{ public: virtual void Test(){ Print("Parent"); } }; class Child : public Parent{ public: void Test(){ Parent* p =...
I hope someone can help / advise. I am logged into my broker account - and the leverage on that account is 1:10 I want to test the EA, based on that leverage 1:10 In the Strategy Tester | Setting tab the smallest setting is 1:25 If I enter 1:10, it seems to accept it, but the moment I press 'Start'
I bought MT4 EA and run for last few years...possible to convert it to MT5 environment and run? Also to use my preset file in MT4..possible? How about the conversion cost? Please advise me..Thanks

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.