Hey I am trying to create a Macd EA that also has a stochastic and MA indicator integrated together in it. I'm currently working on the Macd portion of it and am confused on how i can make the EA publish a drawing/arrow on the chart when the condition to buy is met on the macd. I need to debug the
So i create a multidimensional array, 2 of them to be exact as an example. arrbuy[][3] arrsell[][3] these will store all my buy and sell positions that are open. I then populate the index with arrayresize and use the number of open positions as the size of the first dimension for both arrays. I then
Hi I'm quite a newbie when it comes to programming EA's and programming in general. I have a situation where I have been coding an EA for multiple symbols, and my global variable keep on changing to zero after I have assigned the value of 1 to it. The globally declared variable that keeps resetting
Good afternoon forum, As per the title of this thread, I want to limit my bot from firing in many, many positions into the market. I am happy to compound and build in to positions each time an order is triggered but I would like a maximum limit to be able to manage my maximum exposure. Is there a
Hi I'm confused about closing a trade. I am working on a multi symbol EA. So I have an array of symbols that the code works through. I also have a corresponding array of tickets for any trades that are opened. I'm trying to close trades when exit conditions are met, using their ticket number. Most
Hi! I'm aware that renkos have diminishing returns as timeframes go up. In fact in TradingView.com I use renkos on a 1 second chart and the results aren't bad! I'm new to Metatrader and I'm curious to know if renko bricks can be used with e.g. a 1 second timeframe, or even "faster" (more granular)
Has anyone used this optimization option? Any guide for its use please
Hi, i use Metatrader 5 on Windows 10 and another with Server 2022. While i played around with the MQL Wizard (EA generate) to learn the language, i recognized a different list of Signal Modules. (Screenshot) Does anyone know the reason? It is the same build, the first Windows 10 installation was in
Hello every one, Can I find a solution to this erreur " Array out of range "? My strategy is based on the intraday support and resistance levels, It's working fine in backtesting and a demo account. But the checker MQL5 detects this error in line 499 (double ret...0...). } double cHigh[];
Hello. I am backtesting. I've made it to the point where I have a position. However, the position cannot be closed. I have the ticket number.(#1) The error number is 4753. I would be happy if you could tell me. ... Improperly formatted code removed by moderator. Please EDIT your post and use the
Hi all, When testing/visualizing the outcomes of a EA, I observe irrelevant arrows/deals being displayed on the chart. - I'm pretty sure they are not related to relevant deals, as OnTradeTransaction doesn't display any message (even basic) in the journal at the corresponding times. - Also, on the
Hi i need to count how many pairs has opened positions on my account. It can happend that one pair has more than 1 trade open and in that case must be counted one time only. Thank you
I want to have several buttons on the chart window and when I click on each of them, the Draw Rectangle toolbar will be activated
Hello My name is Andres, i will apreciate if somebody knows how to change lot size in MAMA expert? And also the Meta editor wont let me modify anything. thanyou very much. Andres
I have an EA. I want to change lot size in this EA. it takes 0.001 lot size for currency pairs and 0.10 for metals.
Can anyone help me to change LOT SIZE.
Please find attached file....
How can I orderclose with mql5? Sorry for a basic question. I searched for an hour and couldn't find it. It's too different from 4 and I can't understand it well
Hi, I have a problem. In my trading history or in opened trade list I see differnce in TP or in SL. I set example TP and SL = 5 pip. After opening trade the TP and SL has not the required value: The EA open a trade usdjpy at 113.459, I see TP 113.504 and SL 113.404. But I send with the OrderSend
Hello everyone, I need you help to finally upload a .set file to make a backtest . I downloaded a .set file and want to replace the current EA settings. I just went on the settings, then upload in my backtest windows but nothing happpened... Thank you
Hello traders, i have 3 problems with optimization of mt5. I hope that experienced people can responds them :) 1) if i disable any local agents or local network farm and enable it, it doesn't respond sometimes. For example right now, it says "ready" for local network farm but still i can not see any
I am trying to use same name for variables and methods within different namespaces. However, it looks to me that the namespace feature is not really working in mql. namespace N1 { string var1="test"; } namespace N2 { string var1="test2; } I get an error for N2::var1 that var1 is already defined
Hi all, I am working on a simple Stop->Breakeven function. Works fine if no SL is manually set, however, if I DO manually set an SL, like in the GUI by dragging the line off the entry to where I want the SL, the code does not modify the SL and I am struggling to figure out why. Here's my code: if
I´m trying to integrate MT5 with an external Named Pipe Server application written in C# through named pipes. The problem is the app requires a Asyncronous named pipe, and I can´t find a way to connect to it from MT5.
I´m using the example from https://www.mql5.com/en/articles/503:
void...
Hi! In the following EA code, I'm computing EMAs (fast and slow) at each new M5 bar. Though, as per the journal below it seems the [1] values computed at the current M5 bar can differ from the [0] values computed at the previous M5 bar. This is an issue, as it can prevent detecting an EMA
Does any one know why is this happening? I have two MT5 instaled with two diferent brokers and neither seem to run anithing on Strategy Tester. My mt5 is connected to the broker and I get this log everytime i run something.
I am testing a martingale EA and I don't understand why orders 5 and 6 happen in 2 different places even though SL of 6 and TP of 5 are at the same price Thank you for helping me understand this
I would like to know whether it is allowed to use purchased EAs in a fee-based signal. I have read all relevant T&Cs but I am still in doubt. The rules of EA usage states that they are for personal use only but I did not find anything explicit about this topic in the Signal Provision terms and
[Deleted]
Hi, I'm trying to create a function to allow orders to be sent and no, but it doesn't work. Could someone help me? that is to say if you order it is allowed to send orders if orders is deactivated do not send I would need the function, and the handles before the ordersend
is there any difference between using MqlRates and using iCLose for example ? MqlRates i have to use array and copy rates to the array , where iClose can just enter the shift number of the bar and thats it or i am missing something here ? thanks
Hi guysRecently I have decided to learn coding MQL5 but I dont know where to start. Can anyone introduce me a reference for beginners? Any help would greatly be appreciated.
'}' - unexpected end of program test.mq5 164 1 and '{' - unbalanced parentheses test.mq5 41 1
(21 1 2 3)
Hi everyone, I am unable to correct these two errors when compiling. Can anyone please help me to solve these two errors, thanks. Also i am new to MQl5 programming (Still learning and practicing), here is my code i would appreciated if anyone can correct if there is any error with a bit of

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.