Hi, I have an EA which shows 9 warning errorslike 'declaration of 'xxxxxxx' hides global variable' while compiling. Can someone help me: 1. At least fixing one warning error with exact code I need to add or remove 2. This EA works in testing with all graph but not working in real account. Can you
Hello, I am using a MQL5 VPS to run my Expert Advisor. Every time I shut down my laptop I get the below messages in the journal. (see screenshot) It appears the VPS gets disconnected from the terminal. Is this normal? Is my VPS still running? And sSInce I have started the VPS I am unable to see any
EDIT : Ignore this , my mistake on the sessions times , the question is if SymbolInfoSessionTrade will adapt sessions to holidays of that week. When i run this code on MT4 to get whether or not trading will be possible on monday (tested on AUDUSD) it returns false : MqlDateTime mqt; mqt.day= 2 ;
void OnTick () { if ( (myMovingAverageArray20[ 0 ]>MyMovingAverageArray50[ 0 ]) && (myMovingAverageArray20[ 1 ]<MyMovingAverageArray50[ 1 ]) ) if (CountBuyPositions()== 0 && CountSellPositions()== 1 ) { trade.Buy( 2 *Lot, NULL ,Ask, 0 , 0 , NULL ); } if
mt5 ea can not mount.........do not tell me import any indicators into the folder or any VPS solution~it's can not slove the problem
//+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void Indicator_2() { Indicator_2_Buy= 0 ; Indicator_2_Sell= 0 ;
I have found a lot but do not understand how to create a button to close the command like this, but in my opinion to manage the trade easier. Help me
I need an EA that will close all open positions if a % drawdown is reached, the drawdown is calculated in relation to closed and floating traders the max drawdown is 10% of the initial capital, as soon as it is reached all the trades are automatically closed and disable trading in this account for
Hello, I have written a scalping EA, however I am new to mql5 programming and not 100% on how to implement the following. I would like to add a time filter, thought this would be simple but everything i've tried for this still opens some trades outside of the hours I set. I would also like to add a
hello, I have more than 20 years programming experience, but now I make my first steps in MQL5 framework, so far I made a simple Expert Advisor , and I read a lot of articles and passed thoroughly through the reference but I still straggle with the following: I am hanging on OnTick() event handler
hello can someone help me pleas i want set a time betwen closed a position and new open trade
//+------------------------------------------------------------------+ //| Keltner_Channel_Counter.mq5 | //| Copyright 2022, MetaQuotes Ltd. | //| https://www.mql5.com |
Please help me code a multi-symbol Deriv DBot that buys when the 5 EMA crosses above the 10 EMA and sells when the 10 EMA crosses above the 5 EMA. Moreover, the buy contract is opened when at Bar[0], the 5 EMA is above the 10 EMA by more than 3 pips. At Bar[1] the 5 EMA is greater than the 10 EMA
Can some please help me with this issue. I purchased a workstation with two 22 Core Xeon processors( total 88 individual agents) to speed up my MT5 EA testing. I usually do a backtest + forward optimization. I have noticed that during the backtest, all the 88 agents are used but during the forward
I'm trying to get values from a custom indicator into my Ea but i'm getting errors. I've compiled the indicator with name "tmp" saved in the path MQL5\indicators. Here is the Ea source. //+------------------------------------------------------------------+ //|
Hello everybody, I'm a beginner in MQL5 and programmation in general. I started developing my EA last month following examples online and in the documentation and I have been able to implement custom indicators, buy and sells following conditions but I am now facing a problem that I don't know how
Hi All, If I run the onTick function to tell me CurrentTime, how can I filter the EA to do actions only when the time is :00 seconds? Thanks for the answers
If Orders set by market, also. It's possible to do? I have problem with high price change at new day begun ... It' PYTHON
Hi Guys,i have been doing a bit of coding and have encountered a bit of a problem i would like you to help me on,how do i change the time format to read "15:30:50" instead of showing "15:30" as shown below(i would like the seconds to show as well); if (PositionsTotal()==0 && OrdersTotal()==0 &&
While working on an EA in mql5, I encountered a problem that I don't know how to solve. I have no problem opening a position. When closing in the debugger everything works fine. In real life, however, I have a lot of problems and sometimes a new opposite position is created, i.e. when it is sell, it
Hi friends, I'm trying a function to close trades by time, but I'm not sure it's working 100% times, due the backtest results. Somebody is looking bad code? Thanks in advantage //+------------------------------------------------------------------+ //| Include |
hey I tried making a talking EA, But the sound output on the MT5 app seems to have limits on which sound to play. how can we also make the mic to record so that we can be able to talk to the EA? Any suggestion's or ideas
Hi, Is it possible to to modify the lot size of an order before it gets opened using the OnTradeTransaction event? I want to split the lot size of orders send via the QuickTrade Panel between multiple orders. So that for example one 8 lots order becomes four 2 lots orders. I just want to know if it
Hi Guys? Please tell me how I can fix these 4 errors: 12 &13: Can't open ''C:\Users\hp\AppDataRoaming\MetaQuotes\Terminal\DOE8209F77C8CF37AD8BF550E51FF075\MQ... 72.'if'-Open parentheses expected 242.'}'-Not all control paths return a value
How can I obtain the equity in a variable of 0 hours in central Europe and update it daily
Hi dear friends and admins, One of my expert advisor is running only between 09.30-18.10 hours. I want to find, in 1 minute chart, highest and lowest candle close between that hours, anyone can help me? Here is some code: #include <Trade\PositionInfo.mqh> ... input int robotCalismaSaati = 09 ;
Hi there? Please how should I fix these 2 errors? I have removed some '{' and '}' as I struggled with the code and they seem not to have much effect on code compilation. The errors are: Line 90:'{' -Unbalanced parentheses Line 265:';'-Unexpected end of program I shall kindly
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.