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
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
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
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 ;
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
[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
[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
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.