Expert Advisors and Automated Trading - page 17

  Validation Error  (5)
Hi could someone explain what this means exactly? test on EURUSD,H1 (netting) strategy tester report 4 total trades test on XAUUSD,D1 (netting) 2022.04.26 01:05:00 position stop out triggered at -51.93% [#2 buy 0.4 XAUUSD 1929.475 sl: 1859.53 tp: 2139.04] stop out occurred on 39% of testing interval
Hi team, The current Currentime() function is getting the time but in seconds not in milliseconds, can anyone help me if I want to get the current time in milliseconds using EA. Thanks
Is it possible to connect multiple trading accounts (with automated trading robots) with one VPS subscription from MQL5 ? If so, please explain how to do it. Thanks
Hi Sometimes I save optimization cache files for further investigation. They are saved in a specific format name. For example something like this: myEa.US30.M10.20240501.20250123.40.ACCAA534B30928EDC6465EBA51FB7A69.opt myEa = expert advisor name, M10 = time frame, 20240501.20250123 = test date range
Hi, When I call SocketTlsRead() function it returns -1 and the error code is 5273 and it terminates the websocket connection. I would appreciate any ideas on how to solve this problem. int OnInit (){ socket = SocketCreate ( SOCKET_DEFAULT ); if (socket != INVALID_HANDLE ){ if (
Hi, I need to read the cache optimization file (.opt - path: TerminalInfoString(TERMINAL_PATH)+ "\\Tester\\cache\\", "XXXXXX.opt") in order to get information about the optimization parameters of EA. So, this is a binary file and I dont know how read it using mql5 file functions. Does someone can
Hello, I have MetaTrader 5 installed. While poking around and trying to learn about cloud network, I also installed a standalone instance of MetaTrader 5 Strategy Tester. So, now it seems that I have 2 instances of the Strategy tester available, and they show/are using different resources. The
I know for the normal symbol, the time and day settings are broker/server related and cannot be changed, but what about custom symbols ? I already tried CustomSymbolSetSessionTrade and CustomSymbolSetSessionQuote, but not working
Hello , so i got a situation with my one of my EAs , so basically on the backtest everything works fine, trades are set to be when they should and closed when they should , but on live trading , the bot is not setting trades to be , and is not respecting the rule of not opening a new trade if the
Hello Everyone I have a problem in optimization passes. I've searched a lot but non of questions nor the answers in the forum was the one solving this problem. The problem is that i have some bool parameters in my inputs which when they are set as false there is no need to optimize some other
Hey all Does anyone know when I upload a new update version to my ea does it automatically update all the clients ea? And aware them the changes
Hi Folks, 6 hours later and I am done... to get the profit from an opened Position you can do this: if ( PositionSelectByTicket (ticket)) { return ( PositionGetDouble ( POSITION_PROFIT )); } Works like a charme... BUT, if I want to get the profit from an closed Position, nothing
Hi - happy New Year. In https://www.mql5.com/en/forum/383008#comment_26181711 I wondered why the strategy tester does not report any memory leaks if occurring in the MQL5 program. Look the following EA where I "forgot" to free the allocated memory: class A { private : string m_name; public : A(
CopyRates only 100000 Bars,for example,the earliest time of 1-minute Bar is 2024.11, i want data for 2027.10 and before, What should I do
Dear Community, I am reaching out for assistance in connecting my trade account with Visual Studio. Unfortunately, I consistently encounter the following error: (-10004, 'No IPC connection') . I have attempted various troubleshooting steps, but none have proven successful thus far. I would greatly
Title says it all, I'm not sure what the most efficient way of doing this is so I am asking here. For EAs that trade on hourly or daily it may try to place trades at 00:00 during/on market close so what is the most efficient way of making wait like 5 minutes before trying to place the same trade
  Help for an EA  (4)
Hi guys, just trying to make an EA that copy the signals from telegram to mt5. I have a doubt, for close the trade i need to reply to the original message signals on telegram, but in my case my texts are setted in this way: SELL LIMIT GBP/USD 1.27000 (reply to the previous message) TRADE OPENED
MQL5: Market - Can you sell an expert advisor that uses custom indicator? I want to sell an expert advisor but can't really understand how it will work/upload if its uses or calls a custom indicator.
Hello so am trying to use this custom indicator (corr-wilder-ema-vra.ex5) to create an expert advisor.i have the source code so when I compile it then call it using the icustom it returns the error below cannot load custom indicator 'Indicators\corr-wilder-ema-vra.ex5' [4802] the file path is
Help me anyone i getting this errors on mq5 please help to correct any wrong //+------------------------------------------------------------------+ //| Check if Daily Trend is Bullish | //+------------------------------------------------------------------+ bool
seems mt5. copy_rates_range only support one symbol at a time. is it possible to extract concurrently for multiple symbols? thanks
Is there a way to remove the EA name from the live chart? It blocks viewing price action when price is bullish
Ran into something very strange. Issue: If I run a single test on the same optimiser result 5 times, 2 out of the 5 times the result matches perfectly. The times it matches perfectly not a single error in the log. The other 3 times always the same error about INVALID_PRICE. Both optimiser and single
Hi, I tried the follow code but It didn't work correctly and it return "None" in the Atr field. Can someone help me please? Thanks import pandas as pd import pandas_ta as ta import yfinance as yf data = yf.download( "EURUSD=X" , start= '2022-01-01' , end=datetime.now()) data[ 'atr' ] = (ta.atr(data[
Hi in simply function oncalculate in indicator , when i try to print Time[0] , bar (in formation) return me 2023.09.22 02:20:00 0_o why ? int OnCalculate ( const int rates_total, const int prev_calculated, const datetime &time[], const double
If I have ten accounts with a broker and I put them in algo trading, do I also have the option for 10 VPS subscriptio
I ran a 12-month backtest on one of my VPS, which gave the below results with 100% data accuracy: and also ran the exact same backtest on another VPS , which gave the SAME RESULTS, but has worse data quality apparently: Can you please help me understand what is happening and how this is possible
i have and expert advisor with some problem someone could help me to fix it? Attached file renamed by moderator, to correct name and extension
Hello. I'm using latest MT5 terminal. (5.0.0 build 4620) I'm trying to use this function with strategy tester. Symbol: BTCUSD Account size: 10000 Leverage: 1:1 Here's an example output when I'm trying to debug it inside Trade\AccountInfo.mqh (the MaxLotCheck function): if (! OrderCalcMargin
Hi.........one of my EAs is producing the following error WSFR3: BUY not taken!!! - No Hedge, or FIFO restriction ... the broker says he has no restriction at his end.......and EA provider says it is the problem with the broker having FIFO restriction. Any clue on how to catch on the real trouble