Hi, I am new to EA & MQL5 and learning this new system I have created my Code for Trailing Stoploss but it is not working during Testing. Please help me. ... Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code. Hover your mouse
From your experience and research what advise would you give to someone trying to create an AI based expert advisor ,what to look out for what could be added ,what could be requirements in terms of computing power
Hi all, I'm looking for the name of an EA that has this settings (see image). It is supposed to be a scalping EA. Can someone help ? Thanks in advance
CPositionInfo ::Type() gives always 0, for Buy and Sell positions. double ask = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), _Digits ); double bid = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_BID ), _Digits ); double P = NormalizeDouble (
Hello friends, Please can anyone help me resolve this issue? I have watched videos on how to install EAs on MT4 and MT5 Trading Terminals but I have installed 2 EAs on the MT4 and MT5 Trading Terminals and none of them is appearing even after the under listed actions: (1) Restarting the MT4 and MT5
Hi! I'm currently using two indicators in an EA (I'm novice) and would like to create a dependency between the two. More specifically, I'd like that the result of the first indicator be used as one of the arguments of the second. Indicators are however usually declared in OnInit (handles created
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.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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.