Expert Advisors and Automated Trading - page 24

Hello everyone! Please is there a more efficient way to open 100 orders at once? I use this for loop but it takes 20seconds to open a trade. What do you think? for ( int i = 0 ; i < 100 ; i++) { trade.Sell( 0.01 , NULL ); }
I recently raised the following issue , where I was having problems using input variables in a common file (MT5 V5.00 build 4150). I eventually got to the bottom of the issue and believe that I have found a bug with input group when used with iCustom(). The input data is shown here... enum LogLevel
Hi all, is it possible to display only specific open positions from a specific expert advisor? Say I have two open positions in Dow Jones. The first position has expert number 100 the second position has expert number 200. I want 2 charts, in one of which expert advisor with expert magic ID 100 is
I want to open trade every hour or every 30 min. How it should look on Meta Editor ? Thank you
Good morning to all On the next screen shot a couple of attempts to install Mt5 in a Jupyterlab Notebook from Google Cloud, what Im doing wrong? Does Mt5 library works in JupyterLab? Any ideas or recommendations more than appreciated
I have 10 licences for my EA> When I try to install the EA on another laptop and platform, I install it but when I close the platform it removes the EA. It is working on 3 platforms but not on 2
Hello guys, i have trading strategies that i want to implement as EA, im not very good with coding so i try to code with the help of CGPT but when i finish and try it in mt4 and strategy tester, they are nothing happen and strategy tester also shows no result. I didnt know what happen because there
So I've been designing this EA, but I can not seem to get ANYONE who can get backtested News data that I can use in a EA. The goal here would be to somehow get a .txt file of all the news data and proiorty levels back to 2012 or so, to current day. Then use that to alter trading in a backtest on
  Help need!  (2)
Hello everyone, I need help with my EA. I am trying to develop an EA where my indicator will give me a price level to buy when current price cross that price level from below and sell when current price crosses that level from above. The problem here is that the EA keeps placing several trades with
i have some experience in MQL4 and still learning MQL5 language. I understand most basic code conversion MQL4 to MQL5. Recently i learn that there is a MQL5 Wizard to create an EA automatically. Tried to make it create a simple EA to open buy if RSI>80 and sell if RSI<20. It works but i have no idea
Hello, What is the MQL5 equivalent for MarketInfo(_Symbol, MODE_PROFITCALCMODE) please? My goal is to have the type of the symbol (forex, CFD...). I tried the SymbolInfoString(_Symbol,SYMBOL_PATH,path) command, but it doesn't work well with all brokers. Regards, Matthieu
Does Processors in our PC / Laptop have significant effect on a EA's performance..? If yes, what kind of processors do we need?. I mean the speed and the cores
I have created a logging file, called logging.mqh. Along with the class logic, I have also added the following code... enum LogLevel { Error, Warn, Info }; input group "Debugging Options" input LogLevel Logging_Level = Warn; The 2 reasons for doing this are... So I can compile the file
void OnTick () { bool Newbar=Newbar(); //define Ask, Bid double Ask = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), _Digits ); double Bid = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_BID ), _Digits ); //create an array for several prices MqlRates
[Deleted]
I wrote the code below to get news from calendar of certain symbols but I am getting Error: Error! Failed to get events of country_code = EUR Thanks in advance for your help const input OPTION SendNewsAlerts = Yes; //Send
Is there a size limit on the covariance matrix library ? 948 features x 16000 samples Print ( "Starting eigenveck" ); matrix original; original.Init( ArraySize (samples), ArraySize (samples[ 0 ].features)); //fill for ( int i= 0 ;i<
//+------------------------------------------------------------------+ //| Investtest.mq5 | //| Copyright 2024, MetaQuotes Ltd. | //| https://www.mql5.com |
When running an EA on multiple symbols, it can cause interference. Everything works fine when running an EA on a single symbol, but when it is run on multiple symbols, it creates interference and disrupts the opening and closing of trades. What could be the reason for this? I have already
It seems like suddenly (recent build maybe?), I have several EAs that have stopped working at all in the strategy tester - they make no trades at all. I haven't recompiled them - they just quit working. Some are my code, some are market EAs. Happening on multiple terminals, multiple brokers. I
Hey Hey I am looking for something like an automatic SL for my MT5. The idea is that if I enter a trade and have an SL of 600 ticks - it should be trailed to break even as soon as I am 600 ticks in profit (so an RR = 1:1) Simply to protect my position. How can I realize something like described
Is it possible to automatically attach an Expert Advisor to a chart using a Script
Every time I load an EA into a chart, a dialog pops up. I don't need to add any input, I just want it to run right away without my clicking OK. I can't find any way to achieve that in the documentation. Is there a way? TIA
Hey Guys, I'm pretty new to MQL5 and I'm trying to get the high and the low ONLY ONCE from 12:30 AM to 3:30 AM and then take those values after 3:30 AM and find the next new high/low. Any help would be much appreciated! datetime ExtractTime( datetime when, int hours, int minutes) { datetime sod
Very simple, I'm retrieving tick data as follows: ticks = mt5.copy_ticks_from( "AUDJPY" , time.time(), 1 0 , mt5. COPY_TICKS_INFO ) print(ticks) which prints: [ (1705508465, 96.753, 96.759, 96.756, 0, 1705508465232, 6, 0.) (1705508465, 96.755, 96.761, 96.758, 0, 1705508465255, 6, 0.) (1705508465
double n = 2.1; double n1 = 0.01; double r = n - n1; Normally r should return 2.09 but it return 2.0900000000000003. That 3 at the end is messing up calculation. Please help
Hi, im not sure why but two different values are being printed. Can't seem to figure out why, thanks in advance input bool MAEntryRequirement = true ; input int MAMinimumDistance = 0 ; input int
Hey guys, I have an interesting problem. I'm using Interserver VPS for multiple accounts. Same bot, same code, same setup. But on one of the servers I always get this line in the Experts tab: 2022.01.04 11:40:28.542 Experts automated trading is enabled 2022.01.04 21:00:00.076 Algo Solutions
Hello, Currently i am coding a news filter EA and having some errors. #import "urlmon.dll" int URLDownloadToFileW( int pCaller, string szURL, string szFileName, int dwReserved, int Callback); #import #define INAME "FFCPing" + _Symbol #define TITLE 0 #define COUNTRY 1 #define DATE 2 #define TIME
The tester ran without a problem for the last few months, but for previous years I get the error MqlRates lon[]; MqlDateTime structTime; MqlDateTime endTime; void OnTick () { //--- int start = 0 ; int end = 8 ; TimeCurrent (structTime); TimeCurrent (endTime); structTime.hour = start;
Hi I am using a AMD RYZEN 9 7950X DS of 32 vCores with 3 Mt4 running and 29 Mt5s. I am doing HFT trading. Should i set the first 3 Mt4 as per Mt4 1, core 1, Mt4 2, core 2 and Mt4 3 Core 3 and then all the 29 Mt5 core 4-32 (multicore selection, ie Mt5 1 core 4-32, Mt5 2 core 4-32,...) ? I ended up