Has anyone encountered this ERROR before? I keep receiving this ERROR ALERT while optimizing, but eventually, the entire optimization process completes successfully. Do I need to fix this ERROR? Does it affect the optimization results? I attached my source code and hope someone can tell me why and
Hello, I have a function using the iATR method. My function is being called once per bar onTick(); I noticed when backtesting that my RAM gets filled up within a few seconds and my Windows freezes. If I comment-out the last line (IndicatorRelease) then the problem resolves. Why is that? int
Hi, i'm in desperate need of help. I have been trying to load string data from CSV into a string Array in different ways, void LoadStringsFromCsv( string filename, string &stringArray[]) { int handle = FileOpen (filename, FILE_READ | FILE_CSV | FILE_ANSI ); if (handle == INVALID_HANDLE ) {
Hello everyone: I have a question about strategy testing! I'm not sure I have the right idea on how to use strategy testing on MT5. I need an interface that lets me use all my EA's, indicators and scripts in MT5 and which allows me to test my *manual* strategy. It seems when I use the strategy
2024.01.13 16:53:55.990 Core 1 genetic pass (0, 205) tested with error "critical runtime error 502 in OnTester function ( array out of range , module Experts\Ak14_V2.ex5, file Ak14_V2.mq5, line 214, col 19)" in 0:00:00.138 What kind of error is this? Does it affect my results
I have been working on some code and I have reached a point where I am realizing that the backtest behaves erratically by performing actions and modifying variables that are not seen in the backtest "Journal" but I can see them reflected when printing these variables. Primarily something that I
Greetings, When performing backtesting mt5, in the results tab you are given the lowest margin level % it reaches. My broker does a margin call at 50%, so I’m trying to get clarity: given a leverage of 1:100 or 1:500 or whatever, is that margin level % in the backtest results a good guide wrt the
I'm trying to have buffers printed in an EA to signal when a sell or buy arrow is created but they always return emptyvalues from the RSI divergence indicator. Below is the code EA and indicator int handle; int OnInit () { OnIntIND( _Symbol , handle, PERIOD_M5 ); EventSetTimer ( 20
Hi, I tried to delete a file and clear a cache from strategy tester and here's how I do it. void CStrategy::InitDeleteFile( string CurrentSymbol, TRADE_DIRECTION TradeDirection) { string tradeDirection; if (InpTradeDirection == LONG_ONLY) tradeDirection = "Long Trade" ; if
Hello everyone, recently I have built an MT5 expert advisor about constantly changing the chart of a single window periodically (Like 5s/time changing). Recently a client has told me that it possesses a "flickering" problem when trying to use the EA. But the same problem doesn't exist on my PC. I
Hey guys, in the screenshot you see two bid prices and two ask prices. The inner spread are the bid/ask lines if they are activated in the chart settings. The real and tradable spread are the dotted lines which I get by SymbolInfoDouble(_Symbol,SYMBOL_ASK) and SymbolInfoDouble(_Symbol,SYMBOL_BID)
Hi, im newbie in MQL5 and i wrote this simple code me to test whats going on... #include<Trade\Trade.mqh> CTrade trade; void OnTick () { Comment ( "Williams %R " ); double WPArray[]; ArraySetAsSeries (WPArray, true ); int WPDef = iWPR ( _Symbol , _Period , 14 ); CopyBuffer (WPDef, 0
I read somewhere MQL 4/5 is not as fast in execution as using C++ to write algo`s, granted i`m new. I just wanted to preferably use raw C++ instead of learning another scripting language. Are there coding benefits in the types of things you can create/do with MQL that are longer harder in C++? Thank
Hello, I am trying to develop an EA that detects pinbars. I am in the beginning stages of this, but I am having trouble with the code.. it is not detecting any pinbars even though there are obvious candles meeting the conditions. Any idea what may be wrong with this base code? #property strict //
I am encountering an issue with my bot. I am currently using an *** demo account for testing. The results from the bot tests are outstanding. The bot operates as a seconds-based EA, and when I run it through the strategy tester , everything looks promising. However, when I apply the same settings to
Hello everyone, I'm new here and I want to ask a question that's very important to me and my offline team.. According to this website here: https://www.metatrader5.com/en/metaeditor/help/development/python "Python scripts run directly on platform charts, similarly to regular MQL5 programs."
[Deleted]
I am trying to understand use causes of machine learning and neural networks as i am a novice in this field. I want to know if there is a strategy with 20% accuracy can be improved by using machine learning or neural network up to 80%? What are some good examples using MQL5 for very basic
void Trailing_Stop() { for ( int i = OrdersTotal () - 1 ; i >= 0 ; i--) { if (m_position.SelectByIndex(i)) { if (m_position.PositionType() == POSITION_TYPE_BUY ) { if (TrailingStop > 0 )
Hi, I encoutered this error while trying to pass the validation check to list my mt5 ea on the market, the EURUSD test was passed with 18 trades, but the xauusd it states there were no history data and thus no trading operations, any way i can fix this? Thank you! :)
my optimization run on server cloud encountered some errors. 1- it shows that it is finished but it is not. also it works and passes are on-ging!! 2- where are other server clouds
All, I'm sure there is a very simple answer to my question, but I ran out of ideas. I want to backtest a simple EA, just to learn MQL5 and test different EA strategies. I have an "input parameter" section which is shown (names and values) when I apply an EA to a chart. If I change an input parameter...
So I have a Class Object (TickMA) that aggregates tick data in proprietary fashion. The class object is instantiated and updated from my EA. Problem: I want to visually present data contained in the EA Class to an separate window indicator. Looking for a way to pass the pointer from the EA to the
Is there a built in fast function ? heres what i'm doing so far double array[]={ 1.1 , 2.2 , 3.3 , 4.4 , 5.5 }; double array2[]={ 6.6 , 7.7 , 8.8 , 9.9 , 0.0 }; matrix M; vector copier; M.Init( 5 , 2 ); copier.Assign(array); M.Col(copier, 0 ); copier.Assign(array2); M.Col(copier, 1
I want to access the last tick of the depth of market and want to know if it is a selling or buying order, but the way I am doing it doesn't have any information about this. I'm using the mt5.symbol_info_tick(symbol) in Python to access the last tick. Can anyone help me
In MT4.
Tools>options>server
Tick box to enable DDE server.
In MT5.
This is not there. Any suggestions? Am I missing something?
I need the option to enable DDE server to link a program to it.
Can anyone help?
Thanks in advance.
John.
I am not sure if i have done this right; Please check that I have done this correctly. I have written a bool function (for my ea) that checks (i hope) that it is NOT a friday. bool IsNotFriday() { MqlDateTime structTime; datetime time[]; CopyTime ( NULL , PERIOD_CURRENT , 0 , 3 ,time);
Hi . Does anyone know how can create object in second time frame in Strategy tester ? I searched everywhere, but I didn't find anything . For visual analysis I need to be create object in other time frames
Hello, I need some help. I have a question about the MT5 Cloud network for strategy tester optimisation. It's the first time I'm trying to use it. First I have topup my balance in MQL5 account of 10$. So I started the Optimisation. Optimisation has a total of 558 combinations/tasks. After I launched
Hi, I was planing to Dev and integrate a News filter in my strategy EA.. I have a Demo account at *** with MT5, but I do not have the News TAB? Is it only prod accounts or not all brokers that offers News Tab in MT5? anyone that made a News filter for stop trading -5 min before and after important
Ladies and Gentleman, I have read a lot of threads here at Forex TSD and want to show sincere respect for all the programmers here who have done so much for the community and also thanx for the ppl who created this forum. Now I have a problem. I'm looking for an EA that closes pending orders after a...
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.