Expert Advisors and Automated Trading - page 13

Hello I was trying to find a way to get Trade history report automatically on a daily or weekly basis, I searched a lot and found a few scripts that almost do that, but what I want is to be able to get a standard history report by coding, just like which can be taken manually inside the
Hi, I have one EA that i use for personal use and I wanted to also use it for a prop firm. So I got a second MT4 account from the prop firm and set up my EA on there and also set up a VPS for this account. So on one account I have the EA running with my private funds and on the separate account the
Hi, Is it possible to get enum value descriptions programmatically? I don't mean a switch-case lookup function but a way to programmatically get the description. Something like this:  E.g. EnumValueToString(PERIOD_H1) => "1 hour"
Hi I am trying to get the Broker session times using symbol properties with below code. However I am getting compiler warnings. Please let me know how to correct it. Documentation and search did not help much. // Variables for Symbol's other properties
  MT5 forward testing bugs.  (23   1 2 3)
This post is about a some weirdly related (I think) bugs that happen when forward testing optimized results. Please read through it all. The first bug is that the displayed results from the top section of backtesting passes in forward tab are wrong. (Highest scoring passes in the backtest category
Hi all, is there any way to access the built-in economic calendar during backtest? I tried CalendarValueHistory and while it does give proper results when executing the code on a live chart, it returns no results during backtest. Thank you in advance
Hi All, I need help in fixing errors and warnings on an AI EA. The AI EA is based on Bollinger bands BB_NONE, // no BB strategy BB_SQUEEZE, // BB squeeze strategy BB_BREAKOUT, // BB breakout strategy BB_TREND, // BB trend strategy BB_REVERSAL, // BB reversal strategy
For context, I'm trying to create a volume based range breakout strategy that draws its range during low periods of volume on the adx, is using a time based system useful at all? Or is there a better way I would be able to implement it. I'm not super experienced with coding ranges so this is a bit
I am trying to use vectors in strategy class. However in one code it works without any error while in other it gives error. Any clues what is wrong? vector vctHigh; vctHigh. CopyRates (mSymbol, PERIOD_M1 , COPY_RATES_HIGH ,begin,end); vector vctLow; vctLow. CopyRates (mSymbol
I am trying to copy trades from my MT5 account to xStation account using the XTB API . The Problem is that I don't understand how to communicate with API. I have tried using socket but I am unable to send an HTTP request with given command arguments, so I need help doing that. I would like to know
I am making a EA that will run on accounts with low leverage. To avoid runtime errors, I am trying to find the maximum number of lots that can be opened given the available free margin. Here's my attempt at the calculation. double marginRequired; double freeMargin; double maxOpenLots; void OnInit ()
Hello, idk why my ea work perfectly from my PC but also don't open any position if it run on a vps. MT5 terminals have the same settings, algo trading enabled etc... Anyone can help me please
I have a remote desktop setup to host some of my accounts that are using a EA. But i think there is some lagging going on, im not sure. For some reason i have to manually switch the trading accounts, and then they start opening trades from the EA. Its no longer opening trades by itself for some
  Multicore/thread tester  (17   1 2)
Hi all, Just wondering if there is an option somewhere that affects the use of multicore/thread CPUs in the MT5 tester? I ask, as previously - up until yesterday my MT5 tester would stream through testing using all 8 cores, now it only does 1, then it might start using another core 3/4 through...
  !!! undeleted objects left  (33   1 2 3 4)
Hello Everyone I have this warning message, and have checked all my classes where I have created CMarketInfo class and made sure that it is deleted on Exit the program. 2024.06.10 17:28:54.019 AlgoEA ( XAUUSD ,M15) 1 undeleted objects left 2024.06.10 17:28:54.019 AlgoEA (XAUUSD,M15) 1 object of type
Hello me and my friend have been running a python scrypt to help with trading on MT5. When we bought a prop firm account and connected the script to the MT5 they gave us it suddnely came with an error which is (-4, 'Terminal: Not found'). If anybody knows how to fix it please reply to this thread
Please anyone to Help my Mt5 is displaying unsupported filling Mode...What is the proble
Hello, I have the following problem. I wrote my expert advisor and it works well on live trading. But when I put it in the strategy tester, my stop loss and take profit are wrong. Can someone tell me what's going on
I have a VPS with Windows server 2008, metatrader5 and an EA running in my real account. Sometimes, it happens I found in the journal some reconnection event, not bad. The issue is this. Once or twice per week, while reconnecting it receives the error invalid account: 2017.12.16 20:23:31...
  2 accounts 2 ea  (2)
Hello, I have two different accounts with the same broker and two different expert advisors (EAs). I want to use one EA on my first account and the other EA on my second account. However, when I activate an EA, it gets activated on both accounts. Is there a solution to this problem
Hello All, I generally do not ask for help. Nevertheless, I have been wrestling with this problem for several weeks and have been unable to get past it. I have been translating my EA's to MQL5 from MQL4. These work perfectly in MQL4. However, when executing, I keep getting an invalid stops. I have
Anyone? Its aggravating. The EAs (I had a developer create) worked fine before the latest Meta Quotes updates. Now they won't even drag and drop to the charts Has anyone else had this issue? Thanks 🖖
I want to create an expert advisor for my trading strategy, what is the price range to keep in mind to execute this
The MetaTrader 5 Python package offers the order_send() function, analogous to MQL5's OrderSend() . This is a synchronous function; the caller has to wait for the MT5 server response before proceeding. When a trading strategy necessitates multiple orders at varying prices or symbols, using the
While working on a machine learning model I noticed a weird behavior on the Eig built-in method. When given a matrix matrix SBSW = {{- 3.474589321704841 , 1.106384365940048 ,- 9.091976743274188 ,- 3.925227000397125 }, {- 5.522139525216183 , 2.366887770561694 ,- 15.162350848809 ,-
Hello. I bought an EA a while back. It doesn't work well, And now the seller took it off the market and I can't even write a review while he keeps selling his other EAs. There need to be an option to write a general review on the seller for anyone who bought anything from him/her even if it's no
HI all, a general question on the python API and more specifically propfirms. I was wondering if the brokerside is able to see that a Python API is being used to place trades - I'm currently in the process of passing propfirms which do not allow the use of EA's/ require their mql5 source code to be
how to cancel sell and buy stop in EA. cancel buy and sell stop after some time . what is command or what changes may be needed. thanks in advance
//+------------------------------------------------------------------+ //| Setup Lot //+------------------------------------------------------------------+ double SetupLot( int orderType) { double lot = 0 , firstLot = 0 ,multiplier = Multiplier_, MinLot = MarketInfo( Symbol
Please help me what could cause subjected error while running the strategy tester