Expert Advisors and Automated Trading - page 6

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
Sorry I am a newbee with OpenAI, Please forgive me below basic question. 1. Open AI can be imported by dll? 2. How to put the functions to MQL5 code
[Deleted]
What trading algorithm do we use for automatic trading EA? What are the advantages and disadvantages, there is a more stable profit trading algorithm recommended
Can I have multiple accounts on a single VPS server? For example, 3 different accounts with same brokers running different expert advisors? I really need to know before hosting
Im trying to setup 2 accounts with my EA but switching accounts turns off algo trading for the second account. Is this just a feature of MT5? I have 1 account running the EA on 2 pairs, and 1 account i want it to run with 1 pair
All of my MT5 EAs work flawlessly in my My MT5 platform but they don't work on my MT5 live platform; they used to work on my live MT5 platform but about 2 months ago they stopped working; I contacted my broker to download the MT5 platform again but they still did not work ; I moved to