Hi all, I am coming to this forum to find some help to understand where the error on my EA can come from. I have developed the same EA for multiple currencies (+ XAUUSD), and I have backtested it a lot without encountering any issue. However, once I put my EA on a demo account with XAUUSD, I am
Hi I want to know where I can learn more about different settings for intraday timefilter in mql5 wizard. What should be my settings if I want to trade during 00.06 hrs to 22.00 hrs thanking you
from my observations tick size SymbolInfoDouble (symbol, SYMBOL_TRADE_TICK_SIZE ); is the same as Point() for a specific symbol,100% though I'm not sure why they are being called and defined as different things on the docs, but the point I'm trying to make is that using Point() to calculate
#include <Trade\Trade.mqh> #include <Trade\PositionInfo.mqh> #include <Trade\DealInfo.mqh> CTrade trade; CDealInfo deal; CPositionInfo info; enum types{ONLY_BUY,ONLY_SELL,BOTH}; input types Types = BOTH; input int RSIPeriod = 2 ; // RSI Period input ENUM_APPLIED_PRICE
I want to find the pip difference between open price and close price of last candle. How can I do that in mql5? Thank you in advance 💓
Hi. My EA is working fine with one account on my VPS, and when I try to run it on account number 2, it won't attach to chart. So I believe I have to sync it with the VPS, and here is where my problem start... My navigator window looks like this: I do not have the option to sync, as in this image: I
Hi everyone, Hoping someone can help me with this. When I call for the current Hour and Minute using the below code, it returns the correct information on live data but when using it in strategy tester it always returns 0. Any ideas? MqlDateTime dt_struct; datetime dtSer = TimeCurrent
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

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.