My EA is working fine on any Currency pair that has a suffix Provided by my Broker, but if I switch accounts like to my main where EURGBP.r does not exsist I have to use EURGB but thats where my Problem starts, the EA is not working on this pair, or any pair that does not have a suffix, I dont know
Hello every one, I have a error in MQL5 and i would like to get the helpful. I make the code to save the global variable in MQL5 and it have an error #5040 by the function GetLastError(). In MQL4 i don't have any problem. This is the code: string GVar_Info; double Fibo_Signal; int OnInit () { //---
Waves everyone.... May i ask what is the fast way of learning that a Position in a specific Symbol has been Closed? Both Manually and with TP/SL. Will really appreciate it. Sincerely
[Deleted]
Hello
I am running a optimization for my EA that took a bunch of hours already. I used the Cloud network for it too. Since the update came out i cant use the cloud service anymore. i guess i need to restart mt5 to use it. my question is..... do I have to start my optimization from the beginning if...
Hi All, Can someone point me to the error in the array, please? Not sure why i keep getting the array out of range on line (163,12). Thank you. Regards, John //+------------------------------------------------------------------+ //| Entry_Template.mq5 |
Does anyone have some articles introduce about what I circle in the picture? I try to find it but I don't know what key word I need to type
I have tried to apply iHighest/iLowest in EA and it doesn't work at all. Any suggestion. Thanks
Hello, I've bumped into some snippets here and there for normalizing the lot size, and I've seen two different versions. I've searched the documentation, and it seems both are active, not obsolete, so I'm not sure if there's some sort of nuance in using one way or another. Can anyone clarify that
Hello there... When i want an order to be executed once per candle it just stops when I add " iTime () " function. And the problem seems to be only with " iHigh () " and " iLow () " functions... i will appreciate if anyone would kindly give me a hand, thanks
I am trying to convert a 'simple' EA from MT4 to MT5 to list History Orders - in particular I want PROFIT, Time OPEN & CLOSE etc I have tried and had partial success shown in the messagebox (using string variable MB) I use the following code void On_My_HistoryOrder() { /*datetime df =
double SLArray[]; void OnTick () { ArrayResize (SLArray, 100 , 0 ); for ( int i = PositionsTotal ()- 1 ; i>= 0 ; i--) { ulong Ticket = PositionGetTicket (i); if ( PositionSelectByTicket (Ticket)== true ) { SLArray[i] = PositionGetDouble ( POSITION_SL );
The dll file is regarded as virus isolation by windows antivirus software and cannot be successfully installed to the mt4 root file can someone help me
I really need your help, please. I'm still in the learning phase on MQL5 programming. I'm actually trying to write a simple program of what I've been learning so far. But there is one thing giving me headache. This code enters a sell trade at the close of a candle. It exit trade if it goes above the
#property tester_indicator "HAPrice.ex5" #define LOOKBACK_LENGTH 10 #define ORDER_LOOK_BACK 2 //--- input parameters input double Length = 30 ; input int MagicNumber = 1234567 ; // Expert Advisor ID input bool DescriptionModeFull = true ; // Detailed output
My project is to create an EA capable of sending me alerts every 100 ticks. But the one I created now only sends me alerts once. I tried to insert my code in a loop but it doesn't work. I need help
So from what i've been finding out about EA's in trending markets, they don't tend to do very well. The most egregious example i found was buying all the way down an extreme selloff that doesn't recover Are there any settings that can be set for EA's like <Deleted> to make it workable in a trending
Good morning all. I would like to know if it is possible to erase the magic numbers of an EA? I would like him to trade with a magic number 0 like a manual trade
May I ask how to change color of EMA in MQL5? I have two EMA in an EA and both of them by default has a same color (red), and I want to display them in different colors by default. struct EMA_STRUCT { double ema[]; int handle; }; input int ema1_period= 10 ; //EMA1
hello, i wanted to draw a trend line programmatically, and get the angle value of the trend line. here is my code. ObjectDelete ( "angle" ); ObjectCreate ( "angle" , OBJ_TRENDBYANGLE , 0 , iTime ( NULL , 0 ,5),High[5], iTime ( NULL , 0 , 1 ),High[ 1 ]); ObjectSet( "angle" , OBJPROP_STYLE
Does anyone know an expert then can automatically close a part of a losing trade
Hello everyone, I am attempting to transform a strategy on PineScript to an EA on MQL5. I have been facing difficulties mainly related to how candles are modelled between the two: open, high, low, and close prices in the candles of Tradingview do not match those of MT5, even though data from the
[Deleted]
What is the minimum balance required to trade by EA Duto
Hey guys, i've been trying to fix something bugging hell out of me. The situation is: I have the code to prevent multiple trades on the same Bar/Candle, works most of time, but sometimes on StrategyTester... it doesnt. The code works with OnTradeTransaction(), when theres a DEAL_ENTRY_OUT, it stores
[Deleted]
What PC hardware is good for fast backtest in (not optimization) Every Tick ? When doing backtest, is it using single core or multiple core of the CPU? It is using 33% of the memory and 12% of CPU. Where is the bottleneck? I would like it to use high % of the CPU. Change of which hardware can
Code below fails with error 4901 (ERR_BOOKS_CANNOT_ADD)
regardless of broker. But I know such a code worked some time ago.
Possible reason(s)?
string symbol = "EURUSD";int OnInit() { ResetLastError(); if(SymbolSelect(symbol, true) != false) { if(...
Why does the debug overrides parameter changes back to the default. For example, I change the MA from 12 to say 50. input int Signal_MA_PeriodMA =50; // Moving Average(12,0,...) Period of averaging But when I run the debug on history data it resets the MA back to 12. in general, not
so this is a quick one just for knowlege purposese with telegram EA copier they read messages from a channel and open trade on the respective mt4/5 my question therefore is orther than telegram how else can we send message and the same is copied to open trades on either mt4/5 with telegram
Hey, everyone. I tried using multiple EAs and symbols and timeframes, but Strategy Tester won't show the results. Trades are logged to the Journal, but the Backtest tab shows nothing. What are possible solutions
Hello, I have a function to limit the number of trades I open at the same time by using the magicNumber, as shown below. It works perfectly when limited to having one order open at a time. However I am trying to test being able to have a max of 2 orders, one order in each direction open (1 short and

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.