Hi everyone, hope you're well I have a confusion between position ticket numbers and order numbers, Unless I'm mistaken, yesterday in my backtest I found myself with an identical ticket number for a position and an order? Is this possible? Should I use the unique Deal ticket numbers? Try to read all
Hi, i often test mql behaviour in a script. In this case I noticed that an array which is filled, is not initialized (and keeps old values) if executing the same script again. How can I force to have a clean environment when starting the script again? void OnStart () { int aSize = 6 ; int
yo guys, So there has been a new python integration version coming out I'm hearing and it is ok with new python version. Does it like numpy 3 now too, I need it for tensorflow to work well :) Thenks
How can I implement logic in my EA that it may work on demo accounts but not on live accounts without a license key
Hi everyone, Do you know why the RequestPosition method of the CTrade class always returns 0 ? In other words, what is the simplest solution for retrieving the ticket or identifier of the position that has just been opened using my CTrade class? I thought I saw in the forum a solution to compare the
Hello, I'm encountering an issue with my Martingale implementation in my EA. The lot size progression is inconsistent, even though I set the multiplier to 2.0 (or other values). Instead of the expected progression ( 0.1 , 0.2 , 0.4 , 0.8 , 1.6 for 2.0 multiplier), the lot sizes jump unexpectedly
I've loaded a previous optimization (opt file) that was stopped before it was finished - and I see all the results that was done , but when i click start the optimization, then it start all over from the beginning and doesn't continue from the last total passes. Does anyone know why and how to
Please, what are the TradeTimeFlags? Where are the constant enumerated? I found no further information on documentation here. https://www.mql5.com/en/docs/standardlibrary/tradeclasses/csymbolinfo/csymbolinfotradetimeflags
Hello, i used to use CTrade class on Buy,Sell functions without any problems now i need to use BuyLimit,BuyLimit ,in the first of used i face error expedition time, I tried to fill the two inputs for the expiration code and I faced another error "CTrade::OrderTypeCheck: Invalid order type"
Hi, I am unable to run any backtest. I uninstalled terminal, cleared files, reinstalled.. but issue still exist. I even tried changing the agents, but still same. Here is the error log. Someone please help. 2024.11.29 10:55:45.813 Core 8 agent process started on 127.0.0.1:3007 2024.11.29
Hi all. I got an issue with my bot. Backtesting it's Ok. But when it runs in livetrade. entry order opens repeatly. I don't now how to fix it. I've already limit max entry open or numbers entry open per candle but it's not work. The base entry open then all come together. Anyone can help
Hey trader and programmer. Need your help. I have an EA that using DCA technique, which is open order more than one BUY/SELL at the same time. It works fine during real live trading. However, during backtesting in Strategy Tester of MT5, the EA only open 1 order, and it won't open new order until
//+------------------------------------------------------------------+ //| Trade_Alert.mq5 | //| Copyright 2024, MetaQuotes Ltd. | //| https://www.mql5.com |
Hi here. I've been looking for information on how to implement conditional genetic/complete optimisation. The closest I could get was to use ParameterSetRange, however this does not satisfy my criteria. So let's assume in my EA, I've got a section for 2 indicators: Indicator A: bool enabledA =
I integrated Python perfectly with Metatrader 5. At my Brazilian broker everything works fine, without delay. I tested it at Forex brokerages ICMarkets, Activ and XM and it doesn't work well. All have a delay of 2 hours (120 minutes). I've done several tests and researches and I can't solve it. I
Hello Everyone, I’ve been working on a Martingale-based Expert Advisor (EA) for the past few weeks, and while the results are promising in certain market conditions, I’m facing challenges with risk management and drawdowns during extended losing streaks. I’m hoping to tap into the collective
Can someone help me with MQL5 coding, I have tried thousand ways to get the profit and deal type from the history for the last 3 deals (last, before the last and the before before-the-last) but always failed. Would be grateful for any help with code
Hello, By using MQL5 language for a trading robot; How can I write commands for RSI and MA lines that are inside RSI indicator settings? and also, for MACD and signal lines which are inside MACD indicator setting? Thank you
bool green= false ; bool red= false ; int openprice6= int ( iOpen ( Symbol (), 10080 , 6 )); int closeprice6= int ( iClose ( Symbol (), 10080 , 6 )); int pre7= int ( iClose ( Symbol (), 10080 , 7 ));
Hello guys, new kid in town A quick one: When running 3 demoaccounts and installing an EA on one of them, it runs on all 3 accounts. Is it possible to run EA on just one of them Thanks /greetings from DK
Greets, Hope someone can shed some light on this question. I must either be missing something, or it just is what it is. I am using OnTradeTransaction() to deal with events. All good, but I'm trying to use the classes (such as CDealInfo , etc) to be as MQL5 idiomatic as possible. The following works
Hello all traders, i m newbies here.. i trader for few years already and i still suck on this. Now i m trying to find the file to download the above subject, non of the link of what so ever i got is correct. can any 1 help me on this. i m really suffering alot late for money issues
Hi, I downloaded EURUSD M1 historical data and imported it on a custom Symbol. When I try to test an EA on it, I get several 10044 errors opening positions. 2018.11.07 19:02:51.499 2017.08.01 15:40:00 failed market buy 0.01 EURUSDh tp: 1.18944 [Only position closing is allowed] 2018.11.07 19:02...
Hello, I am using the WebRequest function in my code and encountering the following errors: ' WebRequest' - no one of the overloads can be applied to the function call When I run the code, it gives an error, and I receive the following message: ' WebRequest' - no one of the overloads can be applied
Hi Team, I have a question regarding the "Profit and Loss by Hours" feature in the backtest results. In the Strategy Tester , is it possible to analyze profit and loss based on specified trade open and close hours? The current graph only shows "Profit and Loss by Hours" without clarifying if it
I want to export all the XAUUSD history to use on a pretty old build. I guess the build num is 3310. I know I should open the symbols window, Create Custom Symbol, then copy from xauusd. What about the entire history? in the bar tab, I request M1 history but it is up to 2024.08.16 not from 2008
When the following Expert is initially attached to a chart, The SpinEdit value 25 is displayed. If the timeframe is changed, the value 25 is no longer displayed. However, clicking the up/down arrows will re-display the value. Changing timeframes again will hide the value. Is there a way to keep the
How am I supposed to interpret this? The charge implies I've used almost 75% of my storage on VPS, yet it is a brand new account running for 2 days. And if so what am I supposed to do about it
There seems to be a bug with the OnTimer event. I'm trying to restart the timer inisde the OnTimer event and the first cycle after the restart is not executed. Let me show you an example: void OnInit () { EventSetTimer ( 2 ); } bool timer_set = false ; void OnTimer () { if (!timer_set) {
Hi everyone, I wanted to ask for your help, as I've been trying to download a file from a presigned AWS S3 url using the WebRequest function, but with no success. I had successfully downloaded a file from another URL of a website I own without any problem, but when trying to do the same for the S3
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.