Expert Advisors and Automated Trading - page 10

  Function  (9)
Good day I'm still new to mql5 and the following idea crossed my mind. Is it possible to create a function with a indicator inside the function. For example Check_Entry(). Now I want to create 3 indicator inside this function and call the function into the ontick function but what I want to know is
I'm looking for a fast way to obtain price in text, is there an EA that allows me to copy price to my clipboard using crosshair to point to the price I seek? Tradingview, you can copy price, possible to do this on mt5
Hi guys, I hope you are doing well. A newbie here. I am backtesting a trading strategy on some MNQ tick data stored in a csv file. When launched, the EA opens the file successfully but I receive the message "0 ticks, 0 bars generated". Any idea why the data is not being read. I am using MT5 on a
Hi, I want to use information from one EA with another. One is processing information and want to get a signal or var from the processing eA to the execution EA. Can I create a class which i can import or how to go about
We can use CTrade or MqlTradeRequest to open orders. But I can not find the option "buy stop-limit" (and sell stop-limit) in the drop-down combo box of the class CTrade in MetaEditor. So must I learn MqlTradeRequest to order these orders? And can we work with both CTrade and MqlTradeRequest in one
Hi All, Hope you are all well. I've gone through some of the topics here to find a few suggestions to solve this problem which I'm sure many have come across. I'm finding that converting a symbol's profit currency to account currency is way more difficult than expected to be. I've come across a
VPS failed to migrate command 2021.02.16 11:07:51.141 Virtual Hosting: 6145438 failed to get status for 6145438 failed to execute the migrate command
Well it turns out when backtesting, I found out that the regular stop loss of MetaTrader 5 is an easy victim of slippage and the results are catastrophic, specially when the stop loss is "skipped" and "jumped over" (ignored). Sometimes it is simply ignored in intense movements and then you keep
Hi everyone, I’m currently running the same trading account on 2 different VPS instances. On one of them, I only want to monitor the account without allowing any trades to be executed. Because of this, I’m considering changing my master password. But I have some doubts: On my MQL5 VPS, I already
I developed an EA, did the back-testing and optimization and ran it for a while on a demo account . All nice and dandy. But when I started it today on a live account, strange things happened. My buy positions where closed immediately. After some digging I realized, that after opening a position with
Hello, Is there any way to reduce the amount of historical data in MT5? I don't actually need it for 10 years, but actually only for the last week or so... And where is the data stored in which directory? My problem is that the historical data is exceeding the storage capacity of my rented server
The HistoryDealGetString() has a DEAL_EXTERNAL_ID string property for HistoryDealGetString() , but the CDealInfo class does not have an equivalent DEAL_EXTERNAL_ID string function. Why not? If the CDealInfo class implementation incomplete or is the DEAL_EXTERNAL_ID now an obsolete property? Is
Hello everyone, I’ve been working very hard on developing several Expert Advisors and I would like to ask for advice from the community: what are the best options and strategies to promote my EAs here on MQL5? I know that the Market section is highly competitive, so I’m curious to hear from more
Hi there, I'd like to know any MQL4/5 function to get commission fee before open order. Thanks in advance.
Hi in mql5 in s possible intercept keyboard +mouse left, example: i want take alt+ right mouse button , if happen this i want draw in chart a line is possible ? thanks
I run an EA via VPS but I've lost the input settings for it and can't find/recover them as I deleted the tab that runs the EA manually. What can I do to recover those inputs? The magic number for that specific EA I still have and is still functioning via the VPS
I have a bot im done with, have good result with drawdown max -4% in consecutive loss over a year. Then i tested it on a demo and it came down to -8. everything looks good on visible mode and 0 errors. anyone got same problems like this before? thanks for answers
Hello everyone. I am new with programming Expert Advisors (EA), in my research I found that in Meta Editor there is a wizard function, which allow the user to create an EA with some predefined parameters, with this some questions came up to my mind. -Wizard's EA compile perfectly once the parameters
Hi fellow trader, I'm trying to export trading report after optimisation. But the data in the report are from enough; i only see order. Not the position, not the result of the trade, and it's quiet a headache to work with such thing. According to the the documentation, i should be able to find the
I wanted to add commission for the EURUSD custom symbol I had downloaded from tickdatasuite but it didn't let me click "OK" to save and close the window
Hello , I'm using [broker name redacted] mt5 plateform if account leverage is given by instruction : AccountInfoInteger ( ACCOUNT_LEVERAGE ) But each symbol has sometimes different retail leverage value. e.g. My plateform leverage is 30 But CFD Gold retail leverage is 5 And CFD Tesla retail leverage
Hey guys, have been working on a simple trade manager here. I got a few problems which I will appreciate getting help. The risk editable box fails to accept keyboard inputs instead its selected like an object. So I can't edit the risk amount. Also the dragging of the panel is sensitive, if I drag it
Hello everyone, I'm seeking help with an initialization issue with the MetaTrader5 Python library. My script is as follows: import os import MetaTrader5 as mt5 from dotenv import load_dotenv load_dotenv() print ( "Initializing..." ) # Initializes the MetaTrader5 connection if not mt5.initialize()
How can I test or use classes derived from CExpertSignal without using the StrategyTester? For example, I have CSignalMA (a child from CExpertSignal, located in Expert/Signal) . I want to have something like this: 1. go to the last 200 bars 2. show entry, exit signals derived by CSignalMA in
Is there a way to programmatically, or using Settings on MetaQuotes, to have an EA automatically selected and run on a chart? It would be nice if the account could be set up to automatically select a Chart currency, timeframe and an EA to run on the chart whenever the account is started. How is this
I have discovered that during MT5 backtesting, when a symbol's swap type is set to "in percentage terms," the swap fee is calculated as zero. This is likely because the value is too small and the program rounds it down to zero. Taking ******* US100 as an example: the current price per lot is
Hello, I’ve developed a custom EA that has a maximum memory footprint of 1.5GiB per agent/thread when running locally. With an average memory utilization of under 1GiB (~600-800MiB) Whenever I run the current year period, that is from January 2025 until August 2025, I get a critical error displayed
Hello All, I've seen this mentioned in various places, but I haven't been able to find a solution on any of the threads that have worked for me. When I run a optimisation session on my EA, the "backtest" results section matches up with the "run single test" perfectly everytime, whereas the forward
I have an EA that assigns a different magic number to a particular strategy or setup within the single EA. Is there a way to get MQ5's HistorySelect() to retrieves the history of deals and orders for only a specific Magic number? Does HistorySelect use a Magic number when it creates its lists of
Hi, I have a technical question regarding automated preset management for Expert Advisors in production environments. I wonder if it is possible to programmatically load .set preset files into already-running Expert Advisors using MQL5 code? or can MQL5 scripts automatically attach Expert Advisors