Hi, while backtesting, there are tons of messages that I don't need: - order performed - deal performed - position modified - stop loss triggered - market buy - market sell - deal #100 done - etc. If there are 100 of the above messages every second, it is difficult to keep track of the important...
The DD% in the tester optimization is "Equity DD% Maximal", but I want to see "Equity DD% Relative", what should I do? please help, thank you
When i try this code to get the number of events; It doesnt give any results in strategy tester but it works in real data. Why doesnt it give any data in the backtest? How can i fix my code? Thanks void OnTick () { datetime start_of_day = iTime ( _Symbol , PERIOD_D1 , 0 ); datetime end_of_day =
Hello. I have code that opens a file using int file_handle = FileOpen (file_name, FILE_READ | FILE_COMMON | FILE_TXT ); ...... FileClose(file_handle); If I run it with optimization disabled and visual mode disabled, it runs fine the first time, but after that any additional runs return
I have an EA as below. I want: - limit the number of ending order = 20 (EA place ~200 order) - When there is a profit of 200 points (20 pips), shift the SL and TP by 20 pips (using CheckAndAdjustProfitableOrders () and ModifyPosition ()) - At the same time, close half the volume of active position
I have no knowledge of coding yet while compiling an ea i managed to reduce the 15 errors to just 2, both are the same '' 'if' - open parenthesis expected '' and when i click on this error it leads me to this point in the code which i cannot rectify void tick22() {if {tick22==true} { and
Hi,
I'd like to have few infos about how that service work. I found it very convenient as you can set it up on the fly with no login on a server etc. But ...
The terminal I used to sync it on :
Once migration done, is it still connected on my side ?
If it's still connected do I have to...
Hello I have this problem, can someone helps me to fix it? Thanks
Hi I am a newbie who doesn't know how to write the code properly and found this kind of error using ai, please help fixing this I am hopeless TT Error logs & MQL5 Respectively Description File Name Line Column 'SELECT_BY_POS' - undeclared identifier Lastone.mq5 168 29 ' OrderSelect
Hi, is there a way to let a bot trade looks like a manual trade in mql4 and/or mql5? Somebody told that there is a "self" or "shelf" attribute when you place a trade with an EA but I didn’t find anything a out that. Thanks for any hint
Hi Everyone, I am having issues with the method PositionSelectByTicket (ticket_id); After I open a new position (ctrade.Buy) and a few lines later call bool res = PositionSelectByTicket (ticket_id); it returns a false. But the position is sitll there and it is visible in the table. Any ideas how I
this is the MQL5 code I use: //+------------------------------------------------------------------+ //| Socket.mq5 | //| Copyright 2024, Javier Santiago Gaston de Iriarte Cabrera. | //|
I've had some code that has been working fine on a demo account ever since I wrote it 9 months ago. Using MT5. I recently moved to a funded account (live) and have run into issues. Here a snippet of my original code where I located the issue is occurring, that was working fine on demo okay. I'll
Hello. I have a program that opens a position with a higher lot size if there's a position open and it aims to multiply based on the lowest lot size but I'm having trouble getting the lowest lotsize. Please help double getLowestLots(){ double lowestLots = 0 ; for ( int i = 0 ; i < PositionsTotal
Is there any function to return the day of the week of today? Like: Sunday, Monday, Tuesday
Hello Friends Is there a way to contact 'Service Desk' for technical issues which remained unresolved on the forum? I have been struggling for almost three weeks now, since the last release of MQL on 21st June 2024 after which the problem started. Regards
Hi every one. Please help me how solve error in backtest after updating mt5 and compiling my program: Access violation at 0x000000007FFF00D6 read to 0xFFFFFFFFFFFFFFFF In forum I found several similar problem but no clear answer. Thanks
I'm trying to convert a string into a char[], in order to write a file using WriteFile from kernel32.dll. string writethis = "abc" ; int lineSize = StringLen (writethis); uchar line[]; ArrayResize (line, lineSize); StringToCharArray (writethis, line, 0 , - 1 ); Happens that, this gives me
Hi All, I hit a rare issue in OnTradeTransaction , which I suspect could be a bug. Basically, what I did is in OnTradeTransaction, I will check the order_state and if the order_state is TRADE_TRANSACTION_DEAL_ADD, then it will print the following Print("On Trade for Ticket:", lastOrderID, "
Hi. My EA is reading a json file which I've placed in the common folder (using FILE_COMMON flag in FileOpen). When optimizing it works fine, but once I add agents on my other PC, it can't find the file even though I've placed it in the common files folder on that machine. What am I doing wrong
Hello Everyone, I have 10 EAs that I need to run on MT4 and MT5. Question: 1. How many MT4/5 instances can I run successfully on 1 VPS? Thank you
Why does MT5 strategy tester ask for .ini set files instead of .set files? Why are all the set files available to download in .set format if I need .ini format? What's the difference between them, and are they interchangeable
Hello MQL5 Community, I have some questions regarding the use of DLLs during multi-threaded backtesting in MetaTrader 5, based on the documentation I found: Multiple Instances : From the documentation, it seems that if a DLL is already loaded (even by another Expert Advisor or client terminal), it
#include <Trade\Trade.mqh> //Instatiate Trades Execution Library CTrade trade; // Trades Info and Executions library void OnTick () { double Ask = NormalizeDouble ( SymbolInfoDouble ( Symbol (), SYMBOL_ASK ), _Digits );
Dear All I am trying to create Multi Symbol EA using OOP. I have created a set of files and EATemplate to test it. I am getting invalid pointer error in the mfCStrategyA (child of mfCStrategyBase). To my understanding child class should be able to access variables/methods of parent class, which I am
Hello everyone. Suppose you need to create an EA to close all trades and disable autotrading once it hits a minimum daily profit target. As you know you cannot be sure to close all trades exactly at the price you desire besides the deal out commission that is not predictable sometimes. This causes
Good Day, Please assist I have coded the two horizontal lines in between the Bid and Ask price line. I need the lines to move as the bid/ask price lines move. I tried the Objectmove() function and they only move when i recompile the file. Please assist how or what code I can use to solve the
I wrote that code by some youtube programming channel. No errors, compiles fine but in tester DrawingObjects doesn't look right(specially range) and finally it stops taking trades(probably because of that buggy range) //+------------------------------------------------------------------+ //|
Dear Good day I am learning to code EA for two timeframe EMA trading strategy . I need to count/calculate the number of bars from when FAST EMA crosses SLOW EMA and when the Ask Prices retraces back and touches on or below SLOW EMA. I need to record this number as well as be able to get the
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.