Expert Advisors and Automated Trading - page 106

i am a newbie of mt5 trader. i was practicing my coding with the moving average strategy. but there is a problem happened. i can run my code but the journal always shows me "failed instant sell 0.001 EURUSD(UST+3) at 1.0906 [Invalid volume]" when i make the order. is anyone can help me to point out
Can any1 tell me how to get a specific time using it historical Ask price to backtest a EA THX
Why during mt5 backtesting shortkeys(+ for zoom in , - for zoom out) are not working
Hi all, I think it should be already included, but... 🤷‍♂️ The MetaTrader 5 package for macOS is perfect. It works perfectly with wine. But it doesn't come with python package. If the user knows how to use the wine command (like me) can try to install python into it. But, I don't know why the
Hello Community, I am new, and have been getting amazing results with back testing on a demo account. Once I open and fund a live account and apply the exact same EA and variables, should I expect similar results? I have watched some videos, and I do not expect the exact same results, but possibly
Trying to create an array, which will hold say 10 arrays each of size 5 made up of type double
Hello, I am not sure if this process has been explained elsewhere.. but I will proceed to ask the question here. I want to run two Expert Advisors on the same account. One would be executing trades and the other would be monitoring the daily drawdown then send an alert if it comes close to a limit
EA wont work. any help? i ve tried lots of clean install.. changed many setting. stuck,, it did work for a few day
  4 EMA bot  (2)
Hello guys. I am in the process of developing a bot for MT5 but I simply cannot get it to work as I want. It sells when it is above 55 and buys when it is below. It should make a buy when it crosses EMA 55 with EMA 8, 13 and 21 and vice versa. THANKS! :* File is added below
I'm trying to run this code I got from the documentation page: from datetime import datetime import MetaTrader5 as mt5 # connect to MetaTrader 5 if not mt5.initialize(): print("initialize() failed") mt5.shutdown() # request connection status and parameters print(mt5.terminal_info()) # get
How to create multiple Bitmap using CCanvas? I have coded a sample code below. When you attach it, you will see only 1 Bitmap instead of 2. Notice in the CreateBitmap function, both has a different name. #property copyright "Copyright 2023, MetaQuotes Ltd." #property link
  find Chart ID  (4)
I use two time frame in Strategy Tester . with function ChartID () i can find first chart id . who can i find second time frame (in this screenshot M30) Chart ID
Hello, may I know why I get different back test result with On Visual Mode & Off Visual Mode although all the settings are same? Which results are more accurate (with visual mode on or off)
title I've worked with python and used those, would like to make them dll to work with them in mql5. How can I do this
Happy and successfull new year, fellow Traders! Did anyone yet have the problem of the Strategy Tester giving you zero trades / zero results in the overall optimization window? When I start the optimization (as seen in the screenshot below) it does some optimization step and instantly finished with...
Hello, I have a working robot. The feature I want is this: When opening a position, if the value of the adx wilder indicator is less than 20, it does not open the position. If it is greater, it opens the position. In other words, it constantly checks adx
Hi everyone, I’m new in mql5 programming and I’m trying to create my ea, but I’ve a problem. In this ea when a position is open on a symbol, it doesn’t open another position on a different symbol.. I don’t kwon if it’s a code or logic problem. Thank you for your help
Hi, Could Metaquotes add the holding times statistics to the strategy tester xml files (and possibly all other relevant missing information)? There is a mismatch between the report and what can be exported. Thanks in advance
I have my EA running completely normal when testing but the mql5 tester always gets an error (invalid price), has anyone encountered a similar situation or is there any documentation that specifically explains the upload testing tool? of mql5 help me fix this error
account_info is work orders_get not work output No open orders found import MetaTrader5 as mt5 import requests from datetime import datetime # start the platform with initialize() if not mt5.initialize(): print( "initialize() failed, error code =" ,mt5.last_error()) quit() # login to Trade
i dont know why but its was wokring fine and i try multiple time too so only magic key other thing if i try to attach it will work
Hello community, I am new to FOREX, EA's, and MT5. I have been running a lot of backtests using [name redacted] EA, with amazing results changing the configuration. I have a demo account with the broker and I use a balance of $1000 doing the backtesting. Every time the test is finished, for example
Hello All, I am new to Forex and MT5. Yesterday I was doing backtesting without any problems, and this morning I was able to do one. But the rest of the day after I click 'Start', the test goes real fast and displays no data. I have tried the backtesting on different devices, tried different EA's
Hey all, My EA is not entering trades on my VPS. I have the right currency pair, which in this case is GBPUSDx, but my journal logs from the VPS is showing GBPUSD, so I don't know if this is the reason the EA is not entering trades. I can't change any settings in the EA to point to the broker
The MQL5 architecture application is event-based, i.e., the EA is a client waiting for server signal of a tick, time, trade or transaction event . So, the code is organized to wake and respond well defined events in a self coordinated chuncks of code. Well, how can I get the equivalent behavior on
Hello i need help am trying to detect a spike on boom 1000 , i have noted that a spike is also there same as a bullish candle on the boom 1000 i have tried to detect this and count each occurance , the code runs without errors but i cant cant seem to detect anything can anyone help me. string bull=
[Deleted]
Hello I hope the MQL5 forum can help me out, My Back tests in Strategy Tester for my MT5 EA, have been flawless, fast optimization (168 tests), ‘fast Open Prices only’ Single Tests , ‘Every Tick based on real ticks’ decent results, stop losses, Take profit and lot sizes, have all been correct over 5
Is there a way to fix this? I have tried resolution variations but didnt work
Hello, I made some tests with EA optimization option as "All Symbols Selected in Marketwatch" . In this option, the system backtest EA with all symbols in the marketwatch with reports in optimization result. But the problem is that almost all backtest results are incorrect with big differences
Hi everyone, I have always noticed a problem related to the optimization of the strategy on all symbols. Almost always the results obtained in the report of a symbol were different than the single execution on that symbol. I never explained why and it forced me not to be able to take advantage of