Expert Advisors and Automated Trading - page 48

does anybody has tried any EA trading of shares CFDs on OANDA? i tried but orders are not executing. if manually trading i get this in journal: but if a robot trying to open trade i get this: what could be the reason for rejection? the error code is 10006 i contacted the broker but they have no idea
Is this normal? I have 2 images showing results from profiler. I pressed the history button inside the IDE/metaeditor. mt5 version 4410. but same thing occured in 4380. all settings same, nothing changed in the code. I just pressed the button. 2nd. 12 hours later, no computer sleeping between. mt5
I'm using a script I found here to calculate volume for my trades and it works great on the second run, but always fails on the first run. double lots_maximum = SymbolInfoDouble ( Symbol (), SYMBOL_VOLUME_MAX ); double lots_minimum = SymbolInfoDouble ( Symbol (), SYMBOL_VOLUME_MIN );
Hello there, I do believe I might have hit a wall with Mql5, I am in need to generate an image at runtime so that it can be passed to a AI model and based of the results continue with the execution of the program, I would like to have this functionality integrated in the EA/Indicator so that it
Hi! I'm developing a Grid-EA on MQL5, and I'm stuck on a particular problem. I have the follwing problem to solve and was wondering if you could help me out. This is the problem I'm trying to solve: Imagine we have have a grid of buy positions: 1. buy position 1 lot 2. buy position 2 lots 3. buy...
Thank the platform for sharing so many free excellent EA, I learn and get a lot from here, in order to thank you, I also wrote EA, welcome to exchange and discuss together. (Do not know how to contact the webmaster, whether you can cooperate to publish a share)
Please see the screenshots. Everything seems in 'order'. Hoping for someone to make me look silly by telling me there is only one thing i need to change
Hi there! I´m coding an EA that should place a BuyStop / SellStop order at a specific price and if it doesn't reach this price it should be cancelled after 2 bars (10 min since im using it on M5 timeframe). I tried to do that by setting an expiration time but when I test it on the strategy tester it
Hello! Thank you for having a look at this thread! I'm looking to use multiple EAs on the same symbol and the same timeframe but each EA has its own magic number. Could someone give me a short algorithm which will close an open position which was open by a EA which has its own unique magic number?...
I've been going round and round in my head until I can't see straight trying to wrap by brain around the differences between the "forward test" and the "back test" in the MT5 Strategy Tester . Watching the great darwinex youtube series on backtesting, he says to never trust the optimized "backtest"
Dear All I am trying to use strategy based on price action. It involves looking 'Reversal Candle Patterns' Support and Resistance at specific Central Pivot Point and / or Volume Profile levels for entry. The challenge I face is, it usually a cherry picked bar position to initiate the code. All
Hello. I realize we have something like TesterStatistics to access those values in testing mode but how about live chart
Hello! I have an issue with the strategy tester. Kindly advice what am I doing wrong. The calculation of the profit in the tester seems wrong. Pls find attached screenshot from the log
I would like to know if it's possible to create and run a EA when trading binary options. If so, what platform or broker can help me achieve that? Thanks in advance
  Multicurrency  (1)
Hi. im currently developing an EA with that you can trade different currency pairs on one single chart. When I add a currency in the input field settings, how can i refresh/update it automaticly? It only start trading when I close and open the terminal
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
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
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