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
Hello. I have simulate in my EA situation when program place pending order and when price going to hit it, in account no money for execution order, so I get information from server : 2026.02.28 17:12:44.096 2024.10.23 19:31:28 current account state: Balance: 1000.00, Credit: 0.00, Commission: 0.00
Hi. I want to do optimization of many of my strategies of MT5. But For my Windows PC, it is taking a lot of time plus I must keep PC ON for 24*7 (+Electricity Cost). Instead of that I am planning to buy Ubuntu VPS and install MT5 in that and start optimization, So I don’t have to keep my pc ON all
can i re-assign a product purchased to anothert MT5 account since it met the 5 activations limit?
(2)
I purchased an indicator and has 5 activations. In my tests I used the 5 activations in demo accounts. Now I need to remove one or 2 of these activations since the demo accounts have been closed and put it in a real account. How can I do this
Hi everyone 👋 I am looking for a profitable EA 📈 regardless of the strategy.Please make me some suggestions.Thanks in advance
I setted with AI a small routine Open 3 position at 0.01 same time Open a pop up to insert SL Same for all positions Tp1 Tp2 Tp3 Apply button At tp1 first position automatically close and bring tp2 and tp3 at BE + or - offset 0.20 price of entrance The problem is that this last part doesnt work SL
I set myself a task: to demonstrate the capabilities of custom graphics via CCanvas class in a short code. Here's what came out of it. This script works in both MQL5 and MQL4. But it is much faster on MT5. Each frame is unique and does not repeat, i.e. the script is not cyclic. #include
Hi, I noticed that calling ChartApplyTemplate() on a different chart seems to close the EA properties dialog on the current chart. Steps to reproduce: 1. Attach the test EA (code below) to Chart A 2. Open the EA properties dialog on Chart A within 20 seconds 3. The EA opens a new EURUSD chart
When testing an EA in the strategy tester, code changes after the first test do not seem to be reflected correctly in subsequent tests. Example scenario: 1. In the settings tab of the strategy tester, I select the ex5 file of my EA, symbol, period etc. In the input tab, I set the input values. Then
Hey guys, I am struggling with coding a trailing stop loss in my EA in MQL5. Could anyone please help me? I would be extremely grateful. Thanks in advance, Martin //+------------------------------------------------------------------+//| MACD crossing the Signal line//| WORKING ON Trailing Stop Loss...
Hey All. I have been coding for 4 days straight. Working on a new Tool that I am planning to release soon. I got stuck with one major problem - How the h** we can get the EA loaded as a seperate Window. What I already know : - Yes we need to 2 seperate files Indicator file : emptydashboard.mq5 and
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, this is an example code that is working correctly in terminal, but it is not working in stratey tester. It give me error 4004 on CopyTicks call, but if i code it whitout "while" it is working correctly. Can someone explain me the reason, please? ulong last_tick_time = 1 ; int to_copy = 2000 ;
THE CASE DESCRIPTION I am running a lot of MT5 instances on one PC in order to test all the EAs on demo accounts before they go live. Because I need more than one instance of MT5 terminal on one PC, I am running them in portable mode. I have noticed also, that the newer versions of MT5 are
Anyone who can assist me with a free python bridge that links mt4 and python so that l can establish comms btwn the two and test my EA
Hello, I have q. Can i run 2 ea at the same time ? and 1 one will effect on the other.... I mean i have ea that use hedging strategy but the i have SL 130 error so it does not take SL right. Is there a way i could run 2 ea that will make SL to my robot ? Maybe U see another way to do it ? I have
Hello everyone and MetaQuotes Support, I am writing to express my severe frustration and disappointment as an EA developer. I have been developing a professional trading panel for a long time, and the recent rapid-fire updates are making development unsustainable. Before the January 30th update
Hey everyone, I’ve spent the last 8 months trying to build a profitable Expert Advisor (EA), and honestly, I’m starting to lose hope. I’ve developed multiple EAs during this time - some showed great results on a single pair, but as soon as I tested them on other pairs (even after optimization), they
I am trying to login to Metatrader account and I have been receiving this error code. Please see code below; I first import necessary libraries and initialize which works fine from datetime import datetime import MetaTrader5 as mt5 mt5.initialize() But when I try to log in using the below code, I
Hello, i have error invalid stops. How can i fix by myself, i dont know coding.... Is there a way ? best regards
Hi! I'm trying to open a .txt file using CFileTxt class while executing backtesting. The idea is that it gets a list of datetime values which the EA is supposed to skip. When trying to open the file, I allways get error 5004, so apparently the FileOpen function is not finding my .txt file. The
[Deleted]
Hello, How to do, let say EA usually take 10 ms and i want to set if EA taking more than 20ms during onTick operation exit/break whole operation in middle and start again in next tick
[Deleted]
Hello, I have built an multiTimeframe and MultiSymbol EA. For example, i am using Moving Average, it create handle for all the selected symbols and timeframe. 1. Sometime Due to Moving Average full EA get stuck 2. Sometime CopyBuffer get failed and return 0 (for all indicators) 3. When i deinit and
Hello, I've had issues using multicurrency EAs on MQL5 VPS. It looks like the EA cannot place orders on other symbols - even if the corresponding charts are open when I sync. Do you know how to solve this
Using specific deal/order tickets, Looping through all orders, Custom frameworks, Other (specify in comments)
Hi, I'm looking for a small EA utility which allows to close existing orders (opened manually or by other EAs) based on rules given by indicator values. E.g., it uses the stochastic indicator and closes the orders once the overbought or oversold regime of the specified trade instrument are reached
[Deleted]
Hello, I am using simple RSI + BollingerBands to find reversal and take a trade. i am not using any Take Profit or StopLoss defined directly in Order or defined in Point/Pips instead i am using Indicator to calculate When to close trade in profit (Take Profit similar) but the problem is i am
I look in the forum but this has not been answered although some similar topics but not this example. As the strategy tester is running my profit calculation is wrong. See these two examples, trading XAUUSD with USD as the currency. Can someone give me some insight here
Why did you post your coding question in the MT 5 General section (a miscellaneous catch-all category) instead of the MT 5 EA section (non-indicator coding)? General rules and best pratices of the Forum. - General - MQL5 programming forum ? (20 17 ) Next time, post in the correct place. I
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.