//+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ 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
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
Hello, I'd like to know, when I make a complete optimisation backtest of my EA, if it is possible to ignore useless tests in order to save time. For example, if my code is the following: [code] if(use_rsi) { actualRSI = iRSI(Symbol(),rsi_timeframe,rsi_period,rsi_applied_price,rsi_shift);
Hi Does anyone have a breakout EA that can do the following: - Trade only at x bar after breakout. (x being 5 min time frame). Example; I look at the 08:00 bar, if the 08:05 bar closes above/below the 08:00´s high/low then it will trade in that direction - Specific SL and TP that
Based on the pairs the smallest difference of two values may result in 0. 00001, 0.0001 or 0.001 and so on. For example, for GBPUSD with values 1.23434 and 1.23433, the difference is 0.00001 and for GBPJPY with values 164.712 and 164.711 the difference is 0.001. I have been manually doing the
hi can any one help . i do a back test... and after it has finished and given me the result .it the crashes and says not responding when i run the chosen backtest ... i have to alt/ctrl/delete and close mt5 i have deleted mt5 and re loaded it about ten times and it still the same..... the system is
Hi all, For traders who created expert advisors with very successful backtest results, how are your EAs doing in live trading and how long have you used them? Please share your experiences
Include\Expert\Trailing\TrailingMA.mqh bool CTrailingMA::CheckTrailingStopLong(CPositionInfo *position, double &sl, double &tp) { ... double new_sl= NormalizeDouble (m_MA.Main( 1 ),m_symbol. Digits ()); ... } bool CTrailingMA::CheckTrailingStopShort(CPositionInfo *position, double &sl
Hi, I am struggling with one loop. I hope you can help me. The EA has a defined market entry. Once the market entry occurred, I want to have predefined #of Limit Orders cascading based on multiples defined. // Initialisation ulong LimitOrders(int type) { static double NextPrice; static

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.