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
[Deleted]
Hello, Using #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> CPositionInfo m_position; // trade position object CTrade m_trade; // trading object Will make my EA slow? or should i use purely for example CTrade m_trade; or directly
Hi. Is there anybody here who has ever written an expert adviser which being able to read news feeds, and then distinguish between bullish and bearish ones? (Ex. Reuters, New York Times, Bloomberg, etc) If you know how does it work or if you already have that script inside your computer then would
When I enable cloud network for optimization in the strategy tester, it looks like i am limited to a certain number of tasks. How can I make sure that all networks are used and there is no limit to the tasks
Does anyone know if there is a way of sending a user a message on MT5 mobile without the MT5 terminal and EA being switched on? Thanks in advance
In general, my performance with backtesting and optimizing got worse and worse since I started with MQL5, but for some reason, since 2 days, some cores have just been disabled out of nowhere and get auto-disabled when I enable them again. Today, when I tried to optimize something, all my cores got
[Deleted]
Strategy // ===== Indicators ===== bool GreenCandle = true ; bool RedCandle = true ; double RSIValue = fRSI(rSymbol, SelectedTimeFrame, RSI_Period, RSI_AppliedPrice, SignalStrengthValue); if (RSIValue == 0 ) continue ; double
I want to count history deals from down to up. But my code not work perfectly. Please help me anyone. HistorySelect(TimeCurrent(),0); if(HistoryDealsTotal()>0) { for(uint i = uint(HistoryDealsTotal()-1); i >= 0; i--) { if(Deal.SelectByIndex(i)==true)...
Hello everyone, I have an Expert Advisor that operates based on trend conditions; it opens trades when the market starts to move in a clear direction (based on indicators). However, during sideways or ranging periods, it tends to accumulate losses or end up in break-even situations according to my
I'm using CustomRatesUpdate() function . It costs up to 2-3GB of disk space on real time running interval 1 sec in 24 hours (version A) but while I copy M1 timeframe data from server then CustomRatesUpdate() from 8/2024 just in 7MB (version B) . CustomRatesReplace() also has the same effect Version
Dear Forum Members Wish all Marry Christmas & Happy New Year. I have got above error while running Strategy Tester. Any clue what is this could be? Regards
[Deleted]
fRSI(SelectedSymbol, PERIOD_CURRENT , 14 , PRICE_CLOSE , 0 ); double fRSI( string sy, ENUM_TIMEFRAMES SelectedTimeFrame, int period, ENUM_APPLIED_PRICE applied_price, int shift) { double buf[ 1 ]; int handle= iRSI (sy,SelectedTimeFrame,period,applied_price); if (handle< 0 ) {
Hello wondering if there is a profitable EA on the MQL market or have they all got a alternative motive. I mean lets face it, if someone had a EA that was profitable, why would they sell it. Very basic discussion but funny enough it may raise some concerns. I have had many EA's from over a period of
I am trying to find a way to calculate the appropriate volume for longs and shorts dependent on a fixed percentage of risk. I stumbled across the CMoneyFixedRisk money management class and set it up in my EA. Every time it is called it seems to always return the value 0.0. Below is an example of how
#property copyright "Lucas Mariano Vieira" #property link "https://www.mql5.com" #property version "1.00" input int MAPeriodShort= 9 ; input int MAPeriodLong= 21 ; input int MAShift= 0 ; input ENUM_MA_METHOD MAMethodS= MODE_SMA ; input ENUM_MA_METHOD MAMethodL= MODE_SMA ; input
Hello I am trying to integrate an economic calendar into my MT5 EA so that the robot temporarily blocks trading before important news events. I am using the stub function EconomicNewsGetNext(), but I keep getting compilation errors like: - Undeclared identifier - Implicit conversion from unknown to
Context: This post is intended to be useful to those looking for ideas on how to set up an optimisation/setfile discovery process for themselves. Much more selfishly, I am also looking for advice from the more experienced on my optimisation process (which I will lay out below). I have been trading
Currently I am Using the Below Code In MQL4, //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ bool openURL( string url){ int APPEND
Sorry, but why are the simplest of things just impossible. The fact that there are other posts on here saying the same thing - with equally unclear responses - speaks volumes. The `PlaySound()` method - seriously? The file path ` C:\Users\<user>\AppData\Roaming\MetaQuotes\Terminal\Sounds ` is where
As you can see I already open the window to access those feature. But the window is nowhere to be found. I'm using MacOS M1 Tahoe 26.2. And Exness Demo Account for this experiment. Based from ChatGPT I still can access signal tab with Demo account, but why it's greyed out
Hello, I bought an Expert Advisor. Suddenly it's gone. The corresponding signal is also gone. In this case, it's the "Gold vs. Bitcoin Arbitrage" EA. Why aren't buyers informed about this ? It's not just strange, it's downright outrageous
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
Hello, While demo testing an algoritmic strategy on the US500, I get the message 'US500 history data load error.' Does anyone know how I can solve this
I am having an issue where I go to my VPS where I have MT5 running around 50 EAs, each on their own chart, and find that 30 or so will have removed themselves from the charts. What could be causing this? Thanks
Hello, using MT5 Strategy Tester with EA that is placing trades on multiple symbols the tester is not stable! It is suddenly stopping with the error: "disconnected. connection closed." Strategy tester is running on the local core. With this settings: Please fix this bug. Best Regards, Dmitry
I have created a public AI-based Telegram channel that generates trading signals by analyzing charts using GPT-5.2 and Grok.com . My goal is to have a MetaTrader EA read these signals directly from Telegram and execute trades automatically. I would like to know: Is it technically possible for an EA
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.