Expert Advisors and Automated Trading - page 32

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
Hello, here's my file, it does work if i remove the position total and position get interger funtions but when i try to input them, it doesn't, can someone help me? #property copyright "Copyright 2024, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00"
I am not sure if this is the correct section of forum, so please move it to correct section if it needs to be moved. Issue: I was trading LIVE on my laptop, but now I want to move move the trading stuff to the desktop. I tried copying and pasting every folder from the terminal data folder to the
For mt5 I want to create an EA which continue to repeat a pending order if the previous one has hit stop loss. Say I put a buy or sell order in us30 at a certain price with stop loss and take profit specified. Market executes the order and the stop loss is hit. I want to have an EA that creates the
  EA programming  (13   1 2)
Hello guys does anyone know any website slove errors and warning in coding programming languages for meta editor 5
Hi I have been going through some strategies . So I come to this triangular hedge arbitrage strategy . What everyone is saying is that if we take 3 pairs like EU ,GU , EG buysellsell or sellbuybuy the pairs . So concept is simple . But the thing is that Lot calculation place a kind of important
I am new to MQL5 and I am using Fractal and SAR signal, and my expectation is: close previous sell order when new buy order opening close previous buy order when new sell order opening only have one order opening on the same time The unexpected buy doesn't print expected stuff like before printing
Hi Everyone If somebody would please be so kind to help a new guy out here: I started learning to code about 4 months ago and the more I try and practice, the more I learn but I'm stuck at the moment and maybe I'm interpreting it wrong but I want to get the total profit separately for Buy and Sell