@page { size: 8.27in 11.69in; margin: 0.79in } p { margin-bottom: 0.1in; line-height: 100%; background: transparent } code { font-family: "Liberation Mono", monospace } Hello I know that this topic has been discussed many times and many great answers have been posted, but there is still something
In my ea, i need to color a specific candle should it meet certain criteria. I have basic understanding of mql5. I have written the following and feel like i'm either not understanding something here or making a mistake. In the OnTick() section... double close[]; ArraySetAsSeries (close, true );
Hi everyone, I would like to know if is that possible to program a trailing take profit. Let me explain my logic : The initial TP is 10 pips, if the price passed this level : the Order has to be modify with a TP at 15 pips. Thanks in advance for your help.
My broker's server is down this morning. And that's why MT5 doesn't work to optimize (I think). I am getting these warning messages. 2021.10.17 09:36:34.677 Network '3000028082': connection to "MyBrokerName" lost 2021.10.17 09:36:54.003 Core 1 connecting to 127.0.0.1:3000 2021.10.17
An expert structure can be made on open transactions and pending orders of retail traders. that is, the depth of the market
For example: We have an EA with a few signals among which RSI and MACD . When RSI crosses below 30, we want that event to change the weight MACD has on the algorithm for X bars. Hope its clear. P.S. I was about to ask about an event-based, state-full approach to similar problems, if there is a good
Someone is getting an "invalid ex5 file" error when trying to run a custom EA of mine. on my MT5 which is the exact same build version, there is no such error. anyone any idea
Hello, I have a VPS and many EAs active on the latter. 30$ available on my mql5 account and I would like to know if it is possible to see if the VPS server is on autorenew mode ? Thanks in advance. Stefano.
I just built an EA, and was wondering if metaquotes would be able to view it when I compile it and use it for trading. If so, is there any way to hide the source code from metaquotes
hi I have mt5 setting for my trading robot but it doesn't follow the inputs! so I put hedging to true and pyramiding to off = only 1 position open at a time and reverse position will close the open one. for example trading xauusd let say buy then during this trade a sell position triggered so it
I am looking if this code this on mql5 boolean atLeastTwo(boolean a, boolean b, boolean c) { if ((a && b) || (b && c) || (a && c)) { return true ; } else { return false ; } } can be replaced with any of the following codes to avoid lengthy coding (a? 1 : 0 )+(b? 1 : 0
[Deleted]
Hi Just a thought come to mind, if Bid has moved below SELL STOP Price on the very next bar, could that cause this error !!! MF 0 14:50:44.317 AKT Algo v1.0 (US30,M5) 2021.10.01 04:05:00 capitalToRisk[49.92] pRiskPerTrade[0.010] slPoints[165] optimumLot[3.000000] GE 2 14:50:44.317 Trades 2021.10.01
I run my EA FXTM demo and backtest. I got good profit. But it's failed in IC Markets. Does it mean I should choose FXTM
Hi everyone I need to use some statistical functions such as Mean and Variance functions in my mql5 code, But I realized these functions are not available and cause error undeclared identifier. Should i install or include <> something? Can anyone help? New comment
Hello Imagine that you do not want to lose much in a position and you program that limit to an Expert, so that, when a position reaches or exceeds that negative value, the position is closed. The problem is: if the Expert Advisor opens a position whose Profit is already below that limit, it will
Hi, I'm able to get the current time minutes information Which is the best way to know which 15 min block currently? EG, 00 - 14 = 1 15 - 29 = 2 30 - 44 = 3 45 - 59 = 4
Hi all, i am trying to see highest candle of last 12 bar, there is a mistake i think and doesnt find the solution. When try to compile it says: 'CopyHigh' - no one of the overloads can be applied to the function call" Any help ? Thanks void OnTick () { MqlRates PriceInformation[];
I use one indicator from market and coder provide me buffer value of that indicator, question is is it possible to develop expert advisor from buffer value? its for MT 5
Hi there! I have finished developing and testing my EA and it is currently being live tested. The live test consists of two parallel tests. Setting with 1% risk per trade and a setting with 0.5% risk per trade. The EA´s are running on two different VPS´s but on the same broker feed, two different
What would be causing an error I am getting when price hits my tp1 it is supposed to take partials and leave the rest on the table active? Sometimes the EA performs this action correctly, but it has not done it correctly 2 of the last 3 days. What part of the code would need to be modified? Would
Hello, I got another error #0 which according to the research I have done isn't really an error but rather a successful procedure. Meaning that there is something within the coding that was performed successfully and because of that coding being successfully performed the trade was not able to be
hello everyone, is there a simple way in MT5 to open up the input dialog window while running EA through program event or function, like for example clicking on an object? Reason is, I want to modify the parameters by simply clicking a button created by my EA. I know you can just double-click on the
Hi.. I am creating a dashboard for my totals. I have 99% of it working. Just having issues with the OrdersTotal for the daily and weekly figures. void DrawCurrentTrades() {//+------------------------------------------------------------------+ int buyCount, sellCount = 0; double buyProfit
Would this indicator work if it was made by an expert? May I have your comments and suggestions? The OrderBook indicator displays open trades and pending orders of retail traders as a two-sided histogram. It is used for the comprehensive analysis of market sentiment for a particular financial
I'm a C++ programmer, I've downloaded that reference of MQL5 but wow... 4000 pages of PDF... that's not tutorial book...
I've read to page 90 but then I went to look for other alternatives.
At least MQL4 has friendly guide and tutorial on how to program... http://book.mql4.com/
Its not a bad...
I apologize, I don't really understand the process, but some point soon here after a little more testing if I can't figure things out I will need to pursue having someone look at my ea and repair it. How do I go about having this done? Thanks in advance :)
I'm a bit confused about how frames work. I know that you can set a custom optimization criteria as follows. double OnTester () { return MyCustomCriteria(); } The genetic algorithm will search to maximize the value of this criteria. I'm not sure if frames are used to do the same thing. I mean, if
Hello Everyone, So i am using the metaquotes VPS and i have multiple EAs running on multiple charts at the same time. My problem is whenever i want to add an EA with a new chart the server syncs all the information from my mt4 terminal which stops the currently working EAs and deletes all the...
What is the difference between a hedging and a netting account? And will an EA be set up to work on one of them better than the other? Or can it function properly on both

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.