Expert Advisors and Automated Trading - page 31

Hello, Let me explain better what is my problem and what would be a solution. How I work: Normally I use back test kicker to do a few back tests in a row and then analyse everything to select the best sets. I already have a system to read, organize and filter the best results with a excel file
Hi, I have used forward declaration before, but for some reason this situation fails. Any idea what I'm doing wrong? I have attached the necessary files also. #include<Test\Foo.mqh> #include<Test\FooNode.mqh> Foo<FooNode*> foo; int OnInit () { return ( INIT_SUCCEEDED ); } void OnTick () {
  EA scams  (64   1 2 3 4 5 6 7)
Does no one check sellers code for scams. For example this guy shows his EAs winning but they only win up until the last upload date and then they lose. He obviously has the data loaded in the EA For example, his program was last updated on 28th february 2023 and you can see the great results before
  AWS based EAs  (1)
Hi ! I am developing some EAs that are integrated with the AWS cloud. In the cloud, machine learning models receive the candles and generate buy or sell signals. Is anyone working with this architecture too? I would like to exchange experience about this approach. I wrote MQL5 libs for integration
Hello, I am new in MQL coding, I am trying to calculate profit from an open price (set in an input variable), the code is below. The problem is OrderProfit() is returning a different value with my code. =================== //+------------------------------------------------------------------+ //|
Hi all. Trying to do mt5.initialize() (in python). Works about half the time. The other half of the time it times out, and then continues doing so on subsequent tries, for extended periods (sometimes hours) before it works again. When it times out, then I check why with mt5.lasterror(), and the
Hello, I am brand new to MT5, and the Python intergration is what really appeals to me. I went to File--> New and selected Python Script. then went to Matplotlib. and wrote a basic script import MetaTrader5 as mt5 import matplotlib.pyplot as plt from datetime import datetime # Initialize connection
i want to OPEN position after reading a file. the file isupdate on event by program not mql. how to detec file change and get last position before update to continue for the next reading the file. input int InpEncodingType=FILE_UNICODE; // ANSI=32 or UNICODE=64 int OnInit () { //---
Hello everyone. l realize many people buying the same product from market and apply it with same settings to pass challenges of the same firm. How could this be possible? isn't it close to what they call copy trading which is not allowed in prop firms
What do I need to change in meta editor to enable it to use GPU I have the setting enabled but from my understand I have to input some code so I can use the resources in my computer
Hi all, Sorry for the probably terrible title, end of the day couldn't think of anything better. I'm in the process of setting up a spreadsheet and need a calculation for the stop loss (in points).  The information I have is the $ per point, Ask Price, Risk % (%3 of equity in this case), trade...
Dear I am using MQL cloud to using optimize my EA. But it show too slow. How i make it faster. I mean cloud use more agents. I have another question. Sometime I notice optimize stuck mid of time, What can i do that time, can I click stop then start it again. Thanks in Advanced
Hi guys, beginner here new to making EA's. Time to put my pride aside and ask for help, I cant figure this one out. I want to close any opened buy positions when a sell condition is met, and close any opened sell positions when a buy condition is met. Here's the code! And much appreciated in
Issue. I have a Comment that I print to the chart displaying some of the main settings of my ea, like so... Comment ( "\n Profit Target = $" + DoubleToString (eqplus, 2 )+ ", Lots = " + DoubleToString (iStartLots, 2 )+ ", Slippage = " +
I am trying to use FileIsExist to search the common directory of MQL, which is, C:\Users\Jim\AppData\Roaming\MetaQuotes\Terminal\9B101088254A9C260A9790D5079A7B11\MQL5\Files. In the code below, it always defaults to the "else" statement even if the file does not yet exist. if the file does not exist
  EA load error  (1)
I am loading my EA and it gives me this error, but I don't understand what the problem is, in Test it works fine. Can anyone help me? Thanks Errors count 22 Started 2023.12.05 08:44:44 Finished 2023.12.05 08:45:39 Type Expert Advisor test on EURUSD,H1 (netting) 2022.02.01 10:00:40 failed instant
Hello everyone, I am completely new at programming in mql5 and unfortunately I have some problems to build my code based on a simple moving average. I am basically trying to : buy the position when the closed price < SMA sell the position when the closed price > SMA When I compile my code, there is
input ushort InpSignalsFrequency = 10 ; // Search signals, in seconds (< "10" -> only on a new bar) datetime m_last_signal = 0 ; // "0" -> D'1970.01.01 00:00'; // search for trading signals no more than once every 10 seconds if (InpSignalsFrequency >= 10 ) {
#property tester_file Assuming an optimization starts with the files declared with these properties no longer changing (since the terminal needs to restart before the test). So does that property just move them to the agents folder for each agent that starts a test or does it keep it open in memory
  Stop Level = 0  (5)
Hi everyone, I hope you're well, I have a demo account with a broker and I have a stop level of 0, is this normal? how do you interpret this? Where's the trick or the trap? 😉 Thank you in advance for your insights Best Reguards, ZeroCafeine
Hello team. I have 12 cores but as you can see on the attachments there are only 6 cores running how can i run all the 12 cores to earn more ? thank you
2 questions, just as much curiosity as anything else. a) which reads faster. worsTics[ 0 ]=worsTics[ 1 ]=worsTics[ 2 ]=worsTics[ 3 ]=worsTics[ 4 ]=worsTics[ 5 ]=worsTics[ 6 ]=worsTics[ 7 ]=worsTics[ 8 ]=worsTics[ 9 ]=worsTics[ 10 ]=worsTics[ 11 ]= 0 ; // OR for ( int i = 0 ; i < 12 ;
Hello team Agent not showing even due all the settings are correct Please advice what to do? Thank you, Medalla
we know : handle = iCustom("....", smybol, timeframe, ...); But how the other way around. According indicator handle, how to get symbol and timeframe of this indicator handle
Hi.. I run full optimization on some strategies - MT5 in my last computer. Now when i bougth new pc i copied that past optimization results (.OPT) in new pc. When i am opening this results in new MT5 in new PC. its showing only Result, Profit, Profit Factor etc columns only. No columns for input
I have attached screenshot of the tesla stock. I am using mt5 account from [broker name redacted]
Hi, I am running MT5 on Wine (Linux Ubuntu) and I get this message in the journal tab of the 'Strategy Tester Visualization' window, "IO operation failed with code e9 (233)" The log file gives the same info, the ending lines are NP 0 13:50:34.592 Tester final balance 10000.00 USD RJ 0 13:50:34.592
Hello, I bought an ea and it came with 2 ex4 files. one with the robot and the other the license. I know I have to put the robot file in expert but the second ex4 file with license? I'm lost
im backtesting , one with IC markets MT5 and the other with ThinkMarkets MT5 and the tester is only pulling in data until june or july of 2023, testing this on totally two different brokers... its like a universal problem. As shown you can see the backtesting dates from june 2023 to nov 2023 and
[Deleted]
I am using a custom indicator but it opens many instances the EA is multi-timeframe hence the handle is called multiple times. But when I use MQL5 indicators eg iMA, iRSI it works perfect only custom indicators open multiple instances how can I solve this on the custom indicator This problem is only