Hello all, apparently this is a newbie question. I wish to get the mql5 code that listens for trade transactions using the OnTradeTransaction function and prints a message showing the price when a buy stop order is triggered. Please help as I don't even know where to start from after declaring the
Hello, I’m currently working on a neural network based expert advisor and I need to know the limits to consider for MT5 optimization. Does anyone have the information about the maximum number of variables, steps and passes during optimization under MT5? Also, is there any way to bypass the applied
Hello, Getting inspiration from the source example Controls.mq5, I created my own CDialogApp panel. It works, but I'm not wondering how to distinguish between events ocurring in the panel and events ocurring on the chart. To make it simple, I need to intercept both clicks on the chart and clicks on
Here is the code block that doesn't works. If the condition is true, I need to place a order for the price I specified. I've checked the code block using comment(); and playsound(); . the code block pass when the specified conditions are met. The SellSignal() custom function is an example. inside
A very serious bug is, that MT5 (MT4 maybe - not debugged) stops execution of EA without any any error message, the EA is just gone from the chart - OR - MT5 freezes and with this freeze, the whole Windows instance freezes as well. In case of last, the only way to get out is using the task manager
[Deleted]
I have trouble uploading my EA and keep geting this massage Validation completed with errors and in the report : test on EURUSD,H1 (netting) 2022.04.27 10:29:59 failed instant buy 0.2 EURUSD at 1.05887 tp: 1.06387 [Volume limit reached] 2022.04.27 10:29:59 failed instant buy 0.2 EURUSD at 1.05887
Guys , am trying to publish my EA on the Market and I keep getting "not enough money" error .The recommendation is to try and test my EA with $1 , which is impossible coz that $1 will never be enough under any circumstance. The other recommended fix is to put a code not to output the error , but am
Hello All, please I am trying to use the OnTradeTransaction function to manage my positions such that I want to replace a buy position that closes due to take profit with a buy limit order and replace a buy position that closes due to stop loss with a buy stop order. Also vice-versa for sell
Dear All, I am still a beginner in MQL5. I want to add a function of pausing my EA for a specified time after a set profit target is made. I am totally clueless as to how to achieve this. For instance, I want to place several buy trades at different times and I want the EA to keep monitoring my
Hi, I'm new to MQL5 coding. Every time I type something in (Like function) these keywords are before the function name (bool, double, string) I curious to know what exactly mean by it. sometimes I've seen same function is in different formats like bool, double and string. Does it mean the data type
[Deleted]
Hello forum, good day.
I'm still relatively new to MQL/MetaTrader and have an EA that would like to use in MT4/MT5 with a real account. What I would like to do is to start trading with it, how is this possible?
Best regards and thank you in advance,
codeMolecules
Using my mobile phone, I paid for an mt4 expert adviser(EA). The problem is that unfortunately when I am entering in my MT4 platform, on the market tab, that EA is not recognised as being purchased. I raised this issue to the mql5 support, but still no answer. Did any of you encountered the same
Hi everyone, I'm programming an expert advisor for mt4 but when i run it on icmarket or any broker and the bot start opening a trade, it is not setting up the right price for the tp and sl. For exemple, imagine it opened a buy order at the price 1900 and i fix the tp at 30. It will set up randomly
Dear Fellow Members I am trying to use, possibly a new approach with classes to create a multi symbol expert advisor. The main logic of it is explained below: The ArunFX.mq5, the expert will have different parameters and create instances of ExpertBase class for each symbol; The ExpertBase.mqh class
Hello! I would like to retrieve all ticks for the past n candles. In MqlTick structure, what is tick[i].volum and tick[i].volum_real ? I am geting zero for both of them unless I connect to a broker wich is giving real volume. Can I retrieve tick_volume at every tick for forex market using MqlTick
Can't figure this out. I am calling a market buy/sell and provide all properties that are required with values, but yet I continually get "Invalid Request" in the error message. When it prints out, all properties have the correct values, but the request still is invalid. Is there something else I
Can some help clarify me on this! Is control point test on MT4 same as Every thick test on MT5? if no, what is the equivalent test for control point on MT5? And what is the equivalent test for every thick of MT4 on MT5? This is a lot confusing to me and I need clarity Please
All, Firstly I understand that back/forward testing is not an indicator of future results... When I optimise on MT5 using Demo account , therefore Demo data feed I always get 99% history quality. When I optimise using a Live account therefore Live server feed I am getting 80% - 30% history quality
I want to check whether the pending orders are for the current symbol or not (both buy and sell pending orders, but the code does not work. I'm still learning MQL5 , so I appreciate your help. bool NoBuyStopOrders() { for ( int i = 0 ; i < OrdersTotal (); i++) { if ( OrderSelect (
if I need to take 1% if equity as an order target profit, how can I calculate the number of pips (for TP) as a function of Equity percentage? pips = F(equity%)... Any idea? I need to find the formula... bahmanaskerov at yandex dot ru
Hello, need a function to detect if a market is closed for FX symbol . My solution bool market_closed(string symbol){ if(StringLen(symbol) > 1) { datetime begin=0; datetime end=0; datetime now=TimeCurrent(); uint session_index=0; // guess latest/current...
Is there some styling a viewer of MQL5 source examples can do to increase contrast ? I can testify to come of age and use reading glasses is one thing, but when the contrast of code pages become a challenge it is either time to call it a day as developer, or see if readability can be improved. Known
I encountered a validation error on the market mql4 " log files size exceeded" how can I fix this problem
Hi, I was optimizing an EA and noticed that with the same parameters, I had different results. I wanted to explain my case and benefit from your experience to move on with this. I firmly believe a limitation in how metatrader handles threads and loads data. For a week, I did my investigations. It is
This server is broken for more time than it is working. Doesn't work several times a week (See attached image ). I've seen it broken at least 20 times in the last two months. It takes between 12 and 24 hours to work again... Maybe it's time to think about buying a new one (It's just a suggestion)
Hi. I have a questions about how EAs work with VPS and multiple accounts. 1. I have one intallation of MT5 with one account with a broker under my name, and another account wwith the same broker under another name (its my brothers account). 2. I bought one EA that has 10 activations. I bought it
What is the actual formula used to calculate Complex Criterion Max? thanks
Does anyone knows how is it possible to use keyboard shortcuts to skip chart to the next/previous trade in history? I know I can double click on the specific order in the history panel but using keyboard is so much more productive when doing backtests. please share your Idea, including any method
Hi, 2024.02 . 26 17 : 47 : 35.847 Terminal MetaTrader 5 x64 build 4199 started for MetaQuotes Software Corp. 2024.02 . 26 17 : 47 : 35.847 Terminal Windows 11 build 22631 , 16 x AMD Ryzen 7 5700 U with Radeon, AVX2, 9 / 13 Gb memory, 203 / 476 Gb disk, UAC, GMT+ 1 i think the last
MT5 Calendar library can't get RBA Interest Rate Decision for 6 Feb 2024 and throw error 5035
(16 1 2)
I used GetCalendarEventbyCurrency(Symbol(),3,Events); to get a list of important event and I know that RBA Interest Rate decision is 36030008 [id] [type] [sector] [frequency] [time_mode] [country_id] [unit] [importance] [multiplier] [digits] [source_url]

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.