Hey guys, I've tried multiple ways to fetch the execution price from a limit order in demo mode, but all of them failed. Here's my code: #include <Trade\Trade.mqh> CTrade tradeLong; int OnInit () { tradeLong.BuyLimit( 0.01 , NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_BID ), _Digits
Dear Support Team, If the MT5 Build 3802 terminal is not logged in (because of no internet connection available) It automatically removes the EA's attached which leads loose all the EA settings. Please fix it as it was working fine even If the account not logged in. Kind regards
Hi, iLow is returning incorrect values for my code below. My code: double entry_price = iLow ( NULL ,ENTRY_TIMEFRAME, 1 ) - entry_tick_buffer; PrintFormat ( "low=%d; entry_tick_buffer=%e" , iLow ( NULL ,ENTRY_TIMEFRAME, 1 ),entry_tick_buffer); iLow values logged: Weird thing is however
Hi, Is there an EA that limits the net open position? For example, say I set a max lot size for eurusd to be limited to 1 lot. I go long 0.5 eurusd and next time I go long 0.6 it blocks the trade since 1.1 breaches the limit of 1. But if I go short 1.1 lot, net position becomes -0.6 so that trade
when migrating the chart to VPS on MT4 the information panel stops working due to the fact that the EA is not working on the local system. Is there a way to have the information panel working to be able to see p&l and control the EA? Thanks
My EA is using a custom indicator, it is able to get the custom indicators handle when I run the indicator on the terminal, however when I synchronise with the vps, it is unable to get the custom indicators handle, when I print the indicators handle in the terminal it is printing the indicators...
Why mql5 don't have and ORDERCLOSE function like mql4 and have a library for that? is there is a reason
Hi .I am designing a semi-automatic MQL5 EA . For each position manually I have to place SL and TP . Is there a way to enter TP and SL in the Strategy tester at the moment when the position is to be opened or by default the position will be opened with a TP and SL after that I can edit TP/SL or drag
Hello, is there any way to assign a BuyStop Order a upper Limit ? Example: Current Price: 100 usd BuyStop Limit: 100.5 usd Now happens a gap to 101 usd The BuyStop gets executed at 101 usd but you wanted to just execute the Order at 100.5 usd with a maximum slippage (delta) of 10 cents. So how can
Hi i have this comparator of ticks (to determine whether or not compression and decompression results in the same tick stream) The function reports a difference in tick flags but i cannot make it report on which flags specifically. this is the function : bool compareTicks( MqlTick &a, MqlTick &b){
In mt4 how can I know an order executed by EA from which chart if I am using multiple windows of same currency pair
Hi all,
I want to code an EA in MQL5 whichcloses a position after x bars (let´s say after 6 bars or after 6days in D1 chart) regardless of whether it's a win or a loss.Normally the position is already closed 1-5 bars after entry becauseof a trailing stop but sometimes not. Therefore I would...
[Deleted]
Hi all can any one help me i want MT5 EA,Ppending order if not triggered and the price is reached tp or sl the EA will delete the order automaticlay. Thank you
Hi, I've thought of the Sleep function, to close an order and emediately onpen one (If you know a better solution, please tell). How much time in ms do I have to have between closing an order and opening a new one
Hi all, i'm sure this question was raised many times, I've tried to find the answer but nothing. So, do exist an automatic conversion tool from MT4code to Mt5 ? I have plenty of EA to translate and i have seen it's not an easy job, MQL5 is more powerful but also more complex. Let me know
Hi I am new to the MQL5 Coding scene and trying to learn as i go along. i am looking for some help In indicator 1 i have the following: RSI EMA levels of the RSI are set to 70 and 30 i want to create an alert once the moving average goes above the 70 Level of the RSI and a second alert once the line
Hello everyone, I hope you're all well, I have a small question about the spread which is displayed here on the right window (see photos), how is it calculated? Is it the average of the spreads or the spread at the beginning or end of the candle in the case of a h1 candle for example? Best regards
Hi, Im using a custom indicator, it seems to be correct, it displays correctly, but, when using it in the EA, results are not as expected. for example, I've said to the indicator to open an order, when the value of the indicator is smaller than 0, after this equal to 100 and after this smaller than
Hi I've been following the TruthfullTading tutorials on the tutorials thread as they were recommended to me, but I'm confused about differences in how he generates stops. AIUI in his Moving average example he uses the following code to calc stoploss that uses the ASK price for a BUy and the Bid
Hi everyone . I'm quite new to coding and my ea is having sucessive losses in a single minute and I'd like to make him wait until it's a better time to go on. I have had a lot of trouble using the OrderTotal to do other things because once I use it outside the order select parenthesis, I get the
Hello, I am seeking some advice and tips regarding an issue I'm facing with MetaTrader Expert Advisors. I have noticed that when I run the EA on multiple charts and occasionally compile the source code while it's running, MetaTrader starts to become unresponsive and overloaded. It seems to get stuck
Hello Can we make Mt5 strategy tester check only the optimization results produced by another test? For examble, we make the strategy tester produce the best results of certain Expert advisor's parameters from 1/1/2022 to current date Then we use only these results for another check to find best
In MQL5, how can I submit a new buy order when a eixisting buy position closed. (and submit a new sell order when a existing sell position closed)
Hello everyone, I hope you're well. I'm still a beginner with this fabulous Metatrader software, but I do have a small question about calculating free margin during a backtest. For example, when I have 2 positions open at the same time, 1 long and 1 short, on an initial capital of $100 I should have
Hello, I am currently creating an indicator that shows the high and low of the previous bar for an user inputted time frame. It is currently working in some scenarios, however when the input timeframe or chart timeframe is changed it can start to output incorrect lines or sometimes not even output
my computer cpu 12900k ,128gb memory, 16TB harddisk, and i backtest 5 years every tick base on real tick with 1 currency pair , it still said not enough memory to generating , even the ram only use 50% , anyone can teach me how to do? thank you for answer, i love you all
I keep getting the ERROR MESSAGE INVALID STOPS which lines should i change thank you
Dear all, I got interested in trading several months back, did some reading on it and realized that algorithmic trading is the way for me to go since I have a full time job and am reasonably skilled in computer programming. I picked MT5 since it is close to C++, a language I am familiar with
Hi everyone, I hope you're well, I'm still a beginner, would you have any links or tutorials to find out if it's possible to modify the drawings that are automatically generated in the inputs and outputs?, For example, modify the arrows with other drawings if it's an input or output, or execute on

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.