Expert Advisors and Automated Trading - page 14

Hi there, Is it possible to drawn objects on second tab during backtest? I tried put the chart_id equals to value of ChartNext(ChartFirst()), but it is only returning -1. Is it a limitation
Hello, I am interested in starting in prop trading, but as a beginner, I have already failed over 15 challenges, which has been incredibly frustrating. I am currently experiencing a mild financial crisis. Is there anyone who could provide information on a reliable Expert Advisor (EA) for prop firms
Hello I need to know if an order is stopped by a stoploss or take profit. by the server. I think it is possible in the event OnTradeTransaction () but I can not find the right syntax and magic ticket and order ticket = 0? Does anyone has an example or a tutorial ? thank you for your help
As the title said, I'm getting this annoying error for something that should be trivia l, why can't I use variables to declare the dimensions of an array ? Practically I do not know the values for the dimensions as mat would be declared with random values that range between at least 50 and 200. Can
Hi, I am trying to calculate the price level for take profit for a basket/group of positions. It is for a martingale system. The tp should be placed at the price level where cumulative profit of all buy orders is xx in account currency . It seems my calculation is wrong. Can someone see what I am
  Python mql5  (2)
hi all, I'm creating a bot using Python and mql5, I have a doubt, I want to let the script open a trade, and if that trade hit TP or SL it opens a new trade, is it possible? I can't find the variable to use in comparison I think it's ORDER_REASON_TP but I don't quite understand how to implement
Hello friends Since Sat I am having this problem, which I thought will be resolved by Monday when I have Brokers data. However it still continues. I have tried to search the forum (including my old post of about an year before), but could not find any solution. The problem seems to be in my EA
Hi, There's a way to iterate over all indicators to remove them all? Thanks
Hello I write a python bot and it's working fine with mt5.all the functions that i write is correct and i use lib like metatrader5, pandas and ect for my code. the only problem is backtesting. i know i can write a data loader and reporting system myself with python but it's too much useless work
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
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