Hi all, I couldn't find the answer anywhere, so I'm starting a new thread. I have defined so called LockedInBalance that represents the account's balance + profits that are 'locked in' by the Stop Loss. That allows me to tell what is my real minimum account balance given current environment. Now, I
Dear all MQL5 expert, I would like to seek advise about my issue : (1) I run an MT5 EA in VPS, can I copy this EA trades to another MT4 trading account ? problem is I cannot attached the Copytrade utility onto the EA chart as it will replace the EA ? meaning one EA for one chart only, so I open
Greetings, I am struggling to figure out what's happening in this case. Scenario: MQL5 EA Pending buy order with expiry (2 bars) is placed successfully (like many others before it during a back-test which work just fine, ie, expiries work, see history image below) The pending order is triggered
Hi, Over the weekend I updated Windows 10 and all of my MT5 instances. Now today I have come to use the strategy tester and it does not work. It keeps giving me a "tester agent authorization error". This is when trying to use my PC's CPU's. Just before this error it says "connecting to
Hi! I have started building out a tradingview signal system similar to PineConnector using Flask, nginx and managed to make it work perfectly by using http polling. After this i wanted to make some enchantments and add socket connection and keep http as a backup. I started out building and testing
Hello friends; I have an expert. A trading position is opened by the expert, I want to enter the trading position, My desired text in the comment column along with the order. I need its codes tnk
Hello everybody, I need a little help and I don't know where to start. I need to know the current time from the candle and know if it's in it's midle life. For example, a timeframe of 5 minutes, I wanna know when this candle passes it's 2:30 minutes. Same as 10 timeframe, where I wan't to do...
Hi. Sorry if it is a repeated question. But I've been trying everything for the last two days to fix the following error: 'WebRequest' - no one of the overloads can be applied to the function call AI_Trader.mq4 31 18 Does anyone know how to fix this? Much appreciated in advance
Hello; I created an expert. I created a form with CAppDialog. With what code can I change the font size of the form caption? I couldn't find any code for this! The picture is attached. Thanks
Hi all, i have a question want to ask. sorry i m new for EA trading pls help me. I have install some EA to my MT5 for trading, do i always need to on my laptop or desktop 24hrs for the EA to trade or the EA will auto trade even our laptop or desktop is off? Any bro/sis solve my question :)
I want to implement a function: use a function to open a file, such as a csv file, so that we can manually edit it in the file. Note that it is not to read the content of the csv, but to open the csv file. How to implement this function, which winapi can do it
OBJ_EDIT can be created during execution and can be manually entered. However, during backtesting , it cannot be edited. It can be entered, but the input cannot be recorded. when we creat OBJ_EDIT, we can modify its value manually. But on backtest , if we modify it's value, it can not change. How
As per title, the algo works fine on demo, but operates in the exact opposite way in live. It places trades when it should not, and instead 'sit out' of the market when needed. i.e only place trades when the market is going against the trade (like martingale). What could cause this
Good people, if i have order a trading robot or i have bought the existing one how can i test it to see if it is really working here on the website? There is something i don't get. If the seller or developer have sent the robot i just download it without testing it first
I am trying to code EA/Script, so when I start MT5 it use a list of yesterdays tickets of orders I created. and check each order by ticket to see if order still open or if closed by SL or TP. But no matter what I try I can't find if order closed by TP/SL. This data I can't find in order details
I'm producing some reports in large strings and print them to the terminal and I've noticed that the Print() function with very large strings truncates them after some thousands characters. For example, this scripts does not print the entire string: void OnStart () { string tmp =
Hi everyone, I'm looking to purchase an Expert Advisor (EA) on MQL5 and want to focus on those that have live signals available. Is there an efficient way to filter or identify such EAs on the platform? Any tips or guidance would be greatly appreciated! Thanks in advance
from https://www.mql5.com/en/docs/runtime/testing it mentioned that when using "open price" in modelling mode Suppose we test an Expert Advisor on EURUSD H1 in the "Open Prices Only" mode. In this case the total number of ticks (control points) will be no more than 4*number of one-hour bars within
Hi there, void OnStart () { //--- request all the existing history on the account if (! HistorySelect ( 0 , TimeCurrent ())) { Print ( "HistorySelect() failed. Error " , GetLastError ()); return ; } //--- get the number of deals in the list and display it in the journal
I would be grateful if you could solve the issues with this code
Hi I have to separate the letters of a word , for example "USDJPY", then change it to "U,S,D,J,P,Y". I mean using a Comma or Slash between it's letters. can you help me please
hi there when testing an EA and stopping it in middle of test, the deinit function is not called. i checked this multiple times and read the documents. i have an object that writes csv journal files and in the end (when EA is closed or stopped) i need to add a summery and i decided to do it in
Hello people, I'm experiencing issues importing E-Mini Nasdaq100 Futures (NQ) data into MetaTrader 5 for backtesting purposes. Following the custom symbol guide, I attempted to import 1-minute historical data from January to October 2024. I copied the ENQZ24 symbol and created a custom symbol
Is there a programagic way (like SymbolInfoDouble, or AccountInfoDouble) to get the broker's commission per lot. From the market watch window, I can get it by right click on a symbol -> symbol specs. Anybody has an idea how the market watch window implemented it? I suggest this feature should be
i tried to do a very simple test in onTick() function just very simple like buy the symbol when 8 days ma cross 20 day ma and close price higher than 20 days ma on 1H graph. for both ma, i use bar close. and check if ma1.Main(0)>ma2.Main(0) && close>ma2.Main(0) as far as i know, this statement will
Hi, I am testing a strategy for the US500 with the python API. My broker ( [redacted] ) has a maximum lot limit of 250 that's creating some issues. For example, if I have $200,000 in my account with 50x leverage (which is not too much for 1 or 5 minute bars outside of peak hours), it would give me
Hey all, I run optimized tests, selected a result that I liked and run the single test but even though the number of positions and profit was the same, the drawdown wasn't. See images. Anyone knows why it might happen? This is how I run the single test This is how I run the optimized test Thanks
I want to use the object manual interaction function during backtesting, but I found that the OnChartEvent() function does not work during backtesting. How should it be set? Or is there any other good way
Could someone please help me with this error "- open parenthesis expected" it happens at line 8 and line 22. I don't know what to do. if (range > 650 * Point) if (total_range > 100 * Point) // Function to check the candle condition bool CheckCandleCondition() { // Get the high and low prices of
I have a simple EA that closes my orders at a time that I specify with inputs. At the moment it closes ALL my orders but I'd like to update this EA to only apply to the symbol NZDCHF . Something to note is that I trade multiple accounts that have different names for the same symbol, such as
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.