Expert Advisors and Automated Trading - page 58

i want to read an external parameter from csv, use it on tester, and then after each test pass update those parameter and write it back to csv. i try to put the imported parameter as global variable, so does with file name string. i use slow complete algorithm and optimization target was input count
I want to analyse each EA trading from the trading history report in MT5. If a position closed by SL or TP, [sl xxx.xx] or [tp xxx.xx] is written in comment field in the report instead of original comment. I don't know which EA trades the position. Is there any way to keep original comment which EA
Hello MQL5 Community, I'm currently developing an Expert Advisor in MQL5 and I'm facing a challenge. I would like to incorporate the news events listed in the MetaTrader 5 Calendar tab into my EA. Specifically, I aim to prevent the EA from operating during the peak hours surrounding significant news
Hi everyone, I am trying to send a message from MT5 to Telegram using a bot. However, I could not send the message from MT5 to Telegram due to the error: Error Code 400 Description "Bad request: chat not found" Can you give some reasons why this error might have occurred? I did a lot of research
Version: 5.00 build 4070 — Issue: On the Strategy Tester window, the gui button (see Figure 1. below) freezes (sometimes they won't respond to mouse clicks, like the pause/resume button) while running test. Guess the UI thread of the window is too busy rendering the chart visualization ? plz fix
Hello everyone, I'm trying to get data from a custom indicator using the CopyBuffer() function. When I call the function giving it a buffer index greater than 4, I get only zeroes in my destination buffer despite the data being correct inside the indicator (I've double-checked with debugger and
Hi Guys, I'm probably missing something really basic but I can't find out to export the Profit column from the Strategy Tester report. I'd like to analyse the results from an EA. It's not my own EA so I can't export the data to csv. I can see the profit column if I right click on the on the results
Hi, This is my first time using forward testing option in MT5. In forward testing equity curved I found a drop on equity on the first time of forward testing period like image below. Is this how it works or there's something wrong with my forward testing
Hello MQL5 forum I have a problem with my code. Hope someone can help. When I run it through the debugger, I can see that the only line that gets executed in the for loop is the first line. The EA then ignores 'if(PositionGetSymbol(i) == SymbolOne){' and the rest of the first loop. It's a similar
SymbolInfoSessionTrade works only for the symbol of the current chart How can I get info about other symbols
I would like to make a EA of the arrow that appears on the arrow from the custom indicator. Please recommend a place where you can view the codes using the icustom function, instead of the manual.
Could I possibly ask for clarification about something. Suppose you were doing a backtest on a particular time interval and you were on the very first bar of that time interval, and then your code called a function trying to look at the previous bar. Does that mean that MT5 would get data from
Hello, I wrote a review about some EA I tought lack a feature... The author PM me and showed me that the feature is really included... I apologized to him, but when I wanted to edit my review, couldn't let me do it... How can I change my review about an EA that I purchased? Thanks in advance
Hi, I have successfully Migrated my first 3 EAs to my first VPS (running on MQL5). This works well and Im pleased with the reduced latency. However, there is something I dont understand: How do I change the lot size on the EAs running on the VPS ? I have tried to change them locally and then tried
Hello friends, I want to save the highest price after opening a new position. This is easy when only one position is open, but it is difficult for me to implement it when several positions are open. In Python, I use a dictionary for a similar situation, for example, the { tiket : highPrice}. But
If you would make an EA with the EA wizard, and chose parabolic sar for the trailing stop loss, it adds something like this code with nothing in OnTick: #include <Expert\Trailing\TrailingParabolicSAR.mqh> // global variables input double Trailing_ParabolicSAR_Step = 0.1 ; // Speed increment
In this topic, I propose to either create some list of rules for choosing between a structure and a class, or state that both options are equivalent in terms of performance
test on EURUSD,H1 (netting) 2021.02 . 26 06 : 34 : 40 failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume] 2021.02 . 26 06 : 34 : 59 failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume] 2021.02 . 26 06 : 35 : 00 failed buy stop 0.15 EURUSD
Im trying to convert an indicator in an EA and the arrays are giving me an issue cause mt4 gives an out of size error at one of the arrays double pv[], s1[], r1[], s2[], r2[], s3[], r3[]; then set here Oninit SetIndexBuffer ( 0 , pv); SetIndexBuffer ( 1 , s1); SetIndexBuffer ( 2 , r1);
Is there anyway to create an obj with custom prop, rather than using objectsetxxx function
How to add a string with specific size, to structure
Is it possible to change code while debugging and continue run it
Hey guys, long time since I've been on here.... English is not my native language, so I'm sorry in advance if my phrasing aren't clear enough. I've encountered some weird issue today with following built-in MAs- DEMA, TEMA, FrAMA. It seems that whenever I try to set a long period on them, I can't
Hello, I have a structure that I summarize here and that, in this case, generates 3 sales on each tick once the first trade is made. I need to program: - That only 1 trade is performed in each cycle, and - That only 3 trades are made, one for each if: Only one with comment "C", one with comment "D"
I'm sorry if the question looks stupid and it might be discussed a lot of times on the forum. I just don't figure out what should I ask the forum to get the answer.... I passed through a lot of examples and threads and most of them use some permutation of the following code: _tickValue =
Hi everyone, I am seeking for a bit of help again as I could not find any related topics. (I may have missed it...). I am currently working on a panel to help me to visually track profit, daily drawdown... of different charts. So far so good, but I have encountered a minor issue. I am creating
Hi, I wonder if anyone experiencing or knowing the issue that I faced. I just backtest a strategy and resulting in loss, then I start the optimization with a result like image below, From that result I kind of skeptic with the 0 trade result. After optimization I tried to do a single backtest for
I just code the EA to trade the patterns of the market, market keeps repeating these patterns, patterns that have worked consistently  over decades. i  see these patterns on weekly, daily charts  and monthly charts. Anything less than daily charts is considered market noise, noise is like singer...
I've been experiencing an unusual issue with my trading system related to position sizing. While the system generally operates smoothly, there's an intermittent occurrence, happening about once or twice a month, where it attempts to place an order with a 100-lot size. My position size is determined
I have a function I'm trying to convert to MQL5 from MQL4, it works perfectly in MQL4 but MQL5 for some reason breaks without finding the string. The complier shows no errors, I think something is wrong with one of the strings. I attached the file I'm trying to read as txt as well. Any help would be