Expert Advisors and Automated Trading - page 18

Hello, im new to MQL5 programming . I wanna to create EA thats open one buy trade once per day. My problem is that first day position open normal and then never again. I think that problem is "!isTradeOpen" part, because if i remove it, positions will open every day at set time, but then EA open a
[Deleted]
I'm running MetaTester 5 (build 1085) on two different Windows 7 (64 bit) computers. They've been running for a week now without a problem, but today I saw something weird. MetaTester suddenly increased hard drive usage drastically. Within 10 mins more than 200 GB of disk space was consumed my...
Hello everyone, I have tried researching this, but didn't find a solution that works. I am using a 16-core AMD CPU with 64GB of RAM. The problem with the tester agents is that it feels like they never release any memory and always take up all the available memory until the PC crashes. Aside of the
Greetings, My backtest/forward test of EA is super slow in MT5!! It is taking more than 12 hours to complete 3 months backtest/forward test! My system is Windows 7 and it is running well An solution for this problem?! How can I make it faster
Hello, I am attempting to upload my EA to the Market place and I keep getting this validation error. I don't really see the issue since my price / sl / tp all appear to be valid. Any help would be much appreciated. I cannot reproduce in my strategy tester. Here is validation output: test on
Tried to ran optimization but ran into this error Tester set mode to math calculations or adjust testing dates What is this?
  Scrioting errors  (3)
Please help with the following error 'EventSetTimer' - wrong parameters count 18 4 { EventSetTimer ( "CheckForNewOrders" , Check_Interval * 60 * 1000 ); // Set timer to check for new orders EventSetTimer ( "ExecuteFirstTrade" , Initial_Delay * 60 * 1000 ); // Set timer to execute first trade
Why admin deleted my topic asking if EA is scam or not? I asked just 3 important questions and informed that there are potential problem with EA (which seems to be too good to be true) I informed that I didnt get answers from author. Admin deleted my topic! why because MT team receiving commisions
Hi, I have 2 Metatrader5 installed in my system. For each system I want to only use 1 core. When I try to disable all the other cores I notice that if I want to use one core it is only possible with "core 1" only. What I want is that for the first MT5 to use a single core (core 1) and the second MT5
Hi, I have a batch file that I want to check if it is exist or not in OnInit() function. I use this code to if ( FileIsExist ( "Taskkill.bat, 1" )== false ) Print ( "***** file not exist, error code " , GetLastError (), " *****" ); else Print ( "file exist" ); The file is located in
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
  OnTick does not execute  (15   1 2)
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
Hi experts :) I'm rather new to MT5, so I have limited knowhow. I'm running an EA, which placed orders incl. TP and SL (all good). However, during marked closure - or that very volatile hour - my broker has high spreads (e.g. 29 pips on EURGBP), which sometimes triggers my SL "unwantedly". Meaning
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
I can't find a clear documentation about the values returned by the SYMBOL_TRADE_CALC_MODE. Print ( SymbolInfoInteger ( _Symbol , SYMBOL_TRADE_CALC_MODE )); would result in 0 for forex (I guess), 2 for CFDs.. do you guys have faced a similar situation
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
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
When I use Meta Editor IDE, as soon as compilation finishes, the scripts gets removed / reloaded immediately in Trading Terminal. How can I achieve the same behaviour (reload / reinit scripts), when using command line compilation ? I can nicely compile the scripts using command line compilation, but
  Invalid stops  (2)
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.
Moring to all Im trying to install Metatrader 5 in google colab looking to get some databases. On the next screen shot the errors that I´m getting. Can any one give me a hand or an code or any ideas on how to install this library
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