Expert Advisors and Automated Trading - page 103

Hello. I'm using metatrader strategy tester agent and i can't seem to connect to the cloud network. The cloud network worked for me in september but I've had some problems to connect back to it. I've tried to reinstall it but it wont work. How do i fix this
  use MqlTick  (2)
hello, how can i use MqlTick for a result of buy deal or sell deal ? thanks
Hello, My EA is on the MQL VPS and is currently working fine, looked at the logs and it shows that the EA is synced to the chart. However, whenever I open terminal, it doesn't show the EA as active on the chart. Is this normal, or do I need to fix it? Is it like that for anyone else
Good evening everyone, I have written a function which draws a line from the last 3 fractal highs/lows until it is broken by the price. This works in 90% of the cases, but there are always situations where the line goes further than it should ;) Maybe someone can have a look at the code and see if
hello everyone I am completely new in MQL. Is there anyone who can help me in my first EA to read my last order details (symbol, type, closing price etc) and open a new position after a certain pips for the same symbol? Sorry I know this might be a silly question but your answer will help me to get
Hi Friends I have a array of negative or zero values. I can find Minimum Lowest (-veLowest) by ArrayMinimum() method. Is there any function which I can use to find Maximum Lowest (-ve Highest) ? Currently I am using following code, but is there a better way to get this information
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 () {
  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