Expert Advisors and Automated Trading - page 10

I have a problem, I'm running MetaTrader 5 Strategy tester with 8 agents (my computer has 16 cores). He hasn't worked for me for a month. There is no collision with the anti-virus program. Reinstalling didn't help either. All 8 testers are marked as "not connected" in AgentsManager. I have Win 11
Hey I deposit $15 to get the monthly vps but is not letting me purchase it
  Trend lines  (2)
Good day. i need some help please. I am trying to get the highest and lowest price of 30 candles starting 2 candles back. if i use 2 at the start point it doesn't give me the value and time of the highest and lowest bar. if i use 0 at the start point then it work fine but i don't want bar[0] and
  VPS  (2)
Hello. I purchased a VPS, but it won't open positions from my EA. What could be the problem? Without a VPS, it works normally, but with more slippage. 14:24:44.073 History: first bar USDJPY+,M1 on the server is 2025.07.03 01:48 0 14:24:44.073 History: first bar USDJPY+,M1 on the server is
Hey guys, is it somehow possible to find out how many candles are shown on a 800x600 screenshot before the screenshot is made? I know there are some variables like the chart shift and the chart scale. But I have no idea how to find out the number of candles before the screenshot is made. Any help is
I want to update the ask value for all ticks and reduce the spread by 50%, but the program only update 1 tick finally as shown by the print function . Can anyone help me to fix the problem ? void OnStart () { MqlTick ticks[]; if ( CopyTicksRange ( _Symbol ,ticks, COPY_TICKS_ALL , 0
  Will the EA crash ?  (18   1 2)
I've got an ea that downloaded all available ticks from a broker for a symbol . It reached 250 million ticks , and , the MqlTick structure is 52 bytes per tick. (13 gigabytes) It placed it all in memory .I've got decent RAM on the machine so it held. If someone with 8GB of RAM runs it will they get
Hello traders. im opening this topic in order to discuss and find the way of using HFT eas in normal brokers.. lets see if we can figure it out
CHistoryOrderInfo StopLoss and TakeProfit values are 0.0 at OnTradeTransaction case TRADE_TRANSACTION_HISTORY_ADD when CHistoryOrderInfo TypeDescription = ORDER_TYPE_SELL I am writing a MT5 Expert Adviser (EA) that Buys long positions and maintains both a trailing SL and a leading TP. The EA will
Hello All, I have just received version 5 build 5260. I have for the past three years and continue to generate my EA magic numbers auto magically with the following code: /* make_long_random() * * Make a big 64 bit random number * Typical uses? create a random EA magic number. * * Parameters: None *
I have a few EA's that I concider profitable but take immense amounts of time for backtesting in real ticks. Open prices work but sometimes the variance to real ticks is over 40% which make the backtesting results unacceptably unrealiable. The idea is to comission a developer here to "rewrite" the
Hi all, since the update to 5200 (and now with 5227) the strategy tester is not updating the charts if i switch between different timeframes. My expert uses 3 different timeframes - 3 indicators with separated times. After this 5220 update in the bottom of the tester chart three tabs are displayed
The string produces by CDealInfo.TypeDescription() is not a string representation of ENUM_DEAL_TYPE identifiers. For example, a CDealInfo. DealType = 0 is DEAL_TYPE_BUY in ENUM_DEAL_TYPE , but for CDealInfo. DealType = 0, CDealInfo.TypeDescription() returns the string "Buy type" (length: 8) in the
https://www.mql5.com/en/docs/runtime/imports I want to refer to the import of structs. Structs can be passed by reference. In the import section you define like void MyFunc( mystruct &data ); And within C# you define the param as IntPtr. public static void MyFunc( IntPtr data ) Then simply use
Debugging my EA, I am getting: Journal: 2025.09.03 07:37:44.290 MQL5 debugger Critical error while running expert 'PolishedGoldEA (XAUUSD,M15)'. Unknown error. The Debug tab shows no Trace data at the error. I searched Forum for Debug Critical Error and it said that the error information will be on
I added the cores and i can some they show up on my local agents (some of them not all of them). When conducting the back test the status just alternates between connecting and ready they dont actually do any work. What am I missing here
  Function  (9)
Good day I'm still new to mql5 and the following idea crossed my mind. Is it possible to create a function with a indicator inside the function. For example Check_Entry(). Now I want to create 3 indicator inside this function and call the function into the ontick function but what I want to know is
I'm looking for a fast way to obtain price in text, is there an EA that allows me to copy price to my clipboard using crosshair to point to the price I seek? Tradingview, you can copy price, possible to do this on mt5
Hi guys, I hope you are doing well. A newbie here. I am backtesting a trading strategy on some MNQ tick data stored in a csv file. When launched, the EA opens the file successfully but I receive the message "0 ticks, 0 bars generated". Any idea why the data is not being read. I am using MT5 on a
Hi, I want to use information from one EA with another. One is processing information and want to get a signal or var from the processing eA to the execution EA. Can I create a class which i can import or how to go about
We can use CTrade or MqlTradeRequest to open orders. But I can not find the option "buy stop-limit" (and sell stop-limit) in the drop-down combo box of the class CTrade in MetaEditor. So must I learn MqlTradeRequest to order these orders? And can we work with both CTrade and MqlTradeRequest in one
Hi All, Hope you are all well. I've gone through some of the topics here to find a few suggestions to solve this problem which I'm sure many have come across. I'm finding that converting a symbol's profit currency to account currency is way more difficult than expected to be. I've come across a
VPS failed to migrate command 2021.02.16 11:07:51.141 Virtual Hosting: 6145438 failed to get status for 6145438 failed to execute the migrate command
Well it turns out when backtesting, I found out that the regular stop loss of MetaTrader 5 is an easy victim of slippage and the results are catastrophic, specially when the stop loss is "skipped" and "jumped over" (ignored). Sometimes it is simply ignored in intense movements and then you keep
Hi everyone, I’m currently running the same trading account on 2 different VPS instances. On one of them, I only want to monitor the account without allowing any trades to be executed. Because of this, I’m considering changing my master password. But I have some doubts: On my MQL5 VPS, I already
I developed an EA, did the back-testing and optimization and ran it for a while on a demo account . All nice and dandy. But when I started it today on a live account, strange things happened. My buy positions where closed immediately. After some digging I realized, that after opening a position with
Hello, Is there any way to reduce the amount of historical data in MT5? I don't actually need it for 10 years, but actually only for the last week or so... And where is the data stored in which directory? My problem is that the historical data is exceeding the storage capacity of my rented server
The HistoryDealGetString() has a DEAL_EXTERNAL_ID string property for HistoryDealGetString() , but the CDealInfo class does not have an equivalent DEAL_EXTERNAL_ID string function. Why not? If the CDealInfo class implementation incomplete or is the DEAL_EXTERNAL_ID now an obsolete property? Is
Hello everyone, I’ve been working very hard on developing several Expert Advisors and I would like to ask for advice from the community: what are the best options and strategies to promote my EAs here on MQL5? I know that the Market section is highly competitive, so I’m curious to hear from more
Hi there, I'd like to know any MQL4/5 function to get commission fee before open order. Thanks in advance.