Expert Advisors and Automated Trading - page 8

Hi everyone, I’m learning how MQL5 handles external web requests. I want to understand how we can connect and fetch simple JSON data from an external API just for testing purposes (for example, weather data or demo information). Could anyone please tell me the best method to call such data securely
Hello, My EA is not an automatic trading bot — it’s a manual trade assistant. It only helps with easier trade entries, automatic stop loss and take profit placement, etc. However, I cannot pass the MQL5 Market validation test. I even added some simple code for the EA to open and close a few trades
Hi everyone, Is there any tool, script, or EA that can send a notification (push or email) whenever another EA opens a trade? I just want to get alerts when my Expert Advisor opens or closes positions on my MT5 account — without modifying its code. Thanks in advance for any recommendations
Hi! I know many already use AI to help them place orders manually through chats and report easy gains. On here i see many EA in the topCharts are AI based promising to interact with AI to place and manage trades for you. Since there are usually no backtests possible i would like to start this thread
I'm looking for Expert Advisor for MT5 that can help me: 1. to set tp, sl automatically (which my tp and sl are always fixed, like when I set limit, tp & sl will always be 100pips) 2. change my sl to entry point (breakeven) when some conditions triggered (when order running between utc 1400 to 1600
I can't use the strategy tester on the cloud, it randomly stopped working. I have sufficient balance, there is no issue with connectivity, I am using a VPS and it shows I have plenty of bandwidth. The strategy tester works fine on local agents but it is really slow so I want to use the cloud
Hi, I've come to a bit of a hiccup. In 1 of my programs, I need to make automated chart screenshots. The function for that is: ChartScreenShot(chartId, fileName, ss_width, ss_height, align_mode); Prior to that I ChartNavigate to some time in history, where bars_navigated is much larger than...
Hi All, I am having this error when calling OrderSend function . I hope someone can help me. This is error log : 2021.11 . 11 04 : 10 : 45.254 TEST (EURUSD,M5) Alert : Open market order: Error 10013 - Invalid request 2021.11 . 11 04 : 10 : 45.254 TEST (EURUSD,M5) MqlTradeRequest - action: 1
I spent lots of time looking to find a script that will help me to set a manual TP and SL for mutiple positions opened in one direction at once Can someone help me to find one ? it would be great also if the scripts can do the same for pending orders
Sorry to ask such a noob question. This has probably been answered before, but I've tried every way of phrasing this question in searches that I can think of, and have found no answer. Very often when a backtest finishes it does not seem to display the results in the "Results" tab of the "Strategy...
Hi, I'm a beginner trader from Norway looking for advice. I started trading XAUUSD manually two months ago with $1100 using TradingView connected to a Pepperstone account. The first month was a disaster, and I lost 35% of my account in a few trades because I didn't set stop-losses. My second month
  Need harmonic EA & Indicator  (161   1 2 3 4 5 ... 16 17)
Hi, Can someone make this harmonic EA for Eur/Usd and Usd/Chf please ? Input : Today open price ( gmt.00 ) BUY at = open price - 27 pips SL = 50 TP = open price SELL at = open price + 27 pips SL = 50 TP = open price The EA should only take place one time a day.wicht come first, SELL OR BUY
Hello, i'm having some troubles switching accounts in MT5 via python: -MT5 started manually -2 accounts have been connected manually. -logged into 1 account manually. i now tried to switch to the other account with mt5.login(account,password,server) as well as with
Bot, altın M5 ile uyumlu, ancak mevcut altın fiyatı 1900 civarında değil. Yukarıda EuroSD H1 de gösteriliyor. Test altın mı yoksa eurusd mı üzerinde yapılıyor? Bulamıyorum. Bilen biri bana yardımcı olabilir mi? Bu testi nasıl geçebilirim
I want to get the position ID of a trade right after opening it, but it always returns 0 . Here is the code I’m using: if (trade.Sell(volume, symbol, 0 , sl, tp)) { ulong order_ticket = trade.ResultOrder(); // Trying to get the position ID ulong pos_id = HistoryDealGetInteger (order_ticket
Hello, can you help me write this EA for MT5? If the previous candle is a BUY candle, then open a BUY. If the previous candle is a SELL candle, then open a SELL. If there is an existing position that matches the logic => keep it, do not open a new one. If there is no position that matches the logic
I want to create a robot (expert in MetaEditor) but I have a question: Does my laptop need to be on when the expert is working? For example if a robot wants to work for 5 hours, should the computer be turn on for 5 hours
I had custom inputs on my mt5 backtest screen. They were showing up fine and then after a certain amount of backtests, they disappeared. There are 4 new ones that showed up and don’t have anything to do with my current EA. I don’t know where they came from
  how to
With this library, I've been told it's possible to avoid using OnTimer and OnTick and still achieve polling as fast as 100ms. I'd like to understand how this can be done. if someone have some example is welcome https://www.mql5.com/en/blogs/post/706665 ; here library and documentation i not find
Hi guys i try to use a websocket for exchange data mt5 to my program i use this code for do that //+------------------------------------------------------------------+ //| TCP_Send_Test.mq5 |
When I backtest my Expert Advisor (EA) on a live account, the results differ significantly from those on the demo account. I suspect this discrepancy is caused by the spread difference — the live account has a 0.2 spread. I’m not entirely sure how to handle or adjust for this spread variation within
If I am running my Python script on my Windows Desktop, which will launch/login to MT5, if I have a VPS with Meta trader and it is turned on, when my script executes my trade, is it using the VPS or my desktop client connection
When I set up an EA, I have specific timeframes that I want to be able to alter. When I switch timeframes in the backtest MT5 screen it gives me different results. Should it only give results based on the EA specifications? Which one do I use
I have found that after every optimization, my hard drive health status decreases by 1%. Later, I found out that a large amount of data was written to the hard drive during each optimization.Is this normal? What is writing to the hard drive? I know that functions such as Print() will not be executed
CalendarValueHistory function times out if a period longer than one month is passed to it. I noticed this issue on b5327. Previously, this issue didn't exist, and the function returned all calendar events for the entire period. MqlCalendarValue Values[]; datetime from = TimeCurrent ()- 30 * 24 *
Hello everyone, I’m developing a multi-application system that communicates with MT5. Right now, the architecture is such that MT5 runs multiple Expert Advisors (EAs) to interact with different applications via TCP or other IPC mechanisms. The problem I face is the execution delay caused by MT5's
Artificial intelligence (AI) is changing the way we buy and sell in the stock market. This discussion is about understanding how computers use AI to make quick trading decisions. We will look into how AI can spot patterns in the market, make predictions, and decide when it’s a good time to trade
[Deleted]
  The Ultimate AI EA Project  (57   1 2 3 4 5 6)
Hello everyone. I would like to call upon every worthy programmer and trader to a crucial mission. A scientific project of a respectable standard, with the aim of easing the developing MQL programs using every tool available. A good start would be creating a public project then let anyone willing to
I've an ea to helps me put an SL and pending limit order, with calculated lot size relative to SL distance, since i trade on very small timeframe, i have to managed the SL distance range be small and tight as well, the issue is, when the price hit SL level alongside the slippage (or whatever it
Good morning I tried the new possibility for inputs It works. That's already good news. input ( name = "Other symbol than the current one" ) string gu_symbol = "" ; input ( name = "Timeframe to apply the MA" ) ENUM_TIMEFRAMES gu_TF = PERIOD_CURRENT ; input ( name =