Hello guys! If anyone has the time to help me I will be very grateful. I have the following problem: When I send a limit order below market price (which I understand should be rejected) it is being executed at market price. This happens even with a long distance, in the example I'm using 20pts (40
I have an EA which regularly reports the status of an account to a web service. This has worked fine for years on MT4 and I have recently written an MT5 version which has also worked fine for several months on one MT5 account (BlackBull Markets) - and still is! However I have now put it on another
I'm have 10 order. 1 of them close and I want set a new order like the order close( volume, price, sl, tp ). i try some way but it don't like what i want. Can you help me code this or show me the best way to do, please. I'm a newbie so something i can't understand, can you show it clearly. Thank a
I am trying to calculate the current balance using CDealInfo and HistorySelect. But every time I run the script I get a different results. What am I doing wrong? Thank you so much!! #include <Trade\DealInfo.mqh> CDealInfo deal;
I have searched mql5 and online and cannot find an ea which will close any trading position out at x percent of loss of one trade. from another ea like you can input magic number in their
If I had a position on "EURUSD", there are 2 ways to get current price.
1) PositionSelect("EURUSE")
then call PositionGetDouble(POSITION_PRICE_CURRENT)
2) SymbolInfoTick("EURUSD",lastTick);
My question is what is the difference? Which one I should use?
Hello guys! I have one question and I need some help please. I have made a EA based on several indicators for entry/exit/TP/SL etc. My issue is that it is opening too many trades. What I mean is : I have one 2 lines cross indicator as one of the conditions for opening a trade. If crossing up +
I am looking for an good EA controller since my current EA doesn't have any build in news filter. I am looking for an News filter with multiple options such as: Close only profit trades, Prohibit opening new trades, close all , close before .. min, enable trading after .. min. IceFX is an good
Hello guys. Have a situation with calling a iCustom indicator in EA. Actually I have two custom indicators in this EA, both are working, but the problem is that one of the indicators is taking the settings from the indicator, and if I change the settings at the EA input, it will not have any
Code: //+------------------------------------------------------------------+ //| Close profit position | //+------------------------------------------------------------------+ void CloseAllProfit() { double Balance =
[Deleted]
Hi I am using ATR indicator with period as Day. Index[0] of this indicator returns the current day's ATR and as the day progresses it increases or stays same. I want to capture its changes on every 5 minute. I have tried using iTime/iBarShift functions as below to get Index values on Period_M5. In
I tried to modify the loss. But I got error code 10016. How to call PositionModify correctly? Thanks. CTrade ExtTrade; void ModifyPorfit() { double p = PositionGetDouble ( POSITION_PROFIT ); if (p < 0 ) return ; double volume = PositionGetDouble ( POSITION_VOLUME ); double points =
Hi I rent a VPS for a month and I run it , My question is when synchronization With expert advisor and completion Should I turn on automatic trading or close it , because it closes automatically when I activate the VPS ? Should I add the expert advisor to the planned ? And how to choose the...
Hello everyone and thank you for this fabulous forum! I am looking for an assistant generating alerts under certain conditions that can be programmed (paid or free) For example : ALERT 1 if : M30 - EMA 89 above EMA 21 M5 - MA 89 above EMA 21 M5 - STOCHASTIC below 20 ALERT 2 if : M30 - EMA 89 below
Error: IP 0 06 : 07 : 45.880 MA on DeMarker (US30,M1) 2020.03 . 24 00 : 03 : 19 ERROR! EA: MA on DeMarker.mq5, FUNCTION: iGetArray, amount to copy: 6 , copied: - 1 , error code 4806 EM 0 06 : 07 : 45.888 MA on DeMarker (US30,M1) 2020.03 . 24 00 : 03 : 20 ERROR! EA: MA
Hello. I wanna implement Martingale strategy in my EA, after each losing trade the risk is multiplied by 2. However, after the first losing trade the risk multiplies by 64 and the EA stop working after that. Can someone expain what might go wrong? It's very important for me. Thanks double risk =
Hi all, I'm wondering if I'm missing something, but I am unable to remove/disable the two lines that each connect the highs and lows, respectively, when running via the strategy tester . Anyone can help me sorting this out, how to get rid of them? I intend to use several indicators, and I find it
Hi, this is a bug, right? The constructor should always be excecuted, also with ArrayResize. When changing struct to class, it works in both cases, struct works only with first case, not when using ArrayResize() struct CA { public : int intvalue; public : CA() { Print (
with the code below: #property copyright "Copyright 2021, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" #include<Trade\Trade.mqh> CTrade trade; input int SmallMovingAverage=1; input int BigMovingAverage=12; input int ma_Period=900; string signal=""; string res="";
I have problem with my EA when i use MT5 build 3036 , please tell me how to go back to build 2981 ( product release )
Could someone please explain to me ? By the way, do we need to pay taxes before any withdrawals being made on our trade account
From my experience on this site, it's not always easy to find the good topic(s) in the mass of information. So I will use this topic as central one concerning OOP usage in mql. Feel free to make suggestion. An interesting discussion and reference about " Prefer to make interfaces non-virtual, using
I would like to expand the backtest report and to do some additional calculations and graphs. I know that ENUM_STATISTICS and TesterStatistics () function exists. That is great!!. But I would also like to access the information of each trade (date, profit, loss ...) too. I know that I can see that
[Deleted]
UPDATE ... Sorted out I was declaring the method with old enum type. Now corrected and working without any error. Hi I created enum_TREND and for some reason I removed BIASED_UP and BIASED_DOWN from it and put them into a new enum_MACD_BIAS. Now I am getting this error and could not fine much info
It appears that in a Service, neither OnTradeTransaction nor OnTrade is called. This is the case if i create an order with OrderSend and OrderSendAsync. Am I missing something? Is there perhaps a workaround? I don't really need a callback, polling for the result would also works, as long as I can
The attached file, ExpertMAPSARSizeOptimized, came standard with MetaEditor. It is in the Expert/Advisors folder. While debugging I noticed there were errors in the Trend.mqh file, lines 812 to 815. //--- create m_handle= iMA (symbol,period,ma_period,ma_shift,ma_method,applied); //--- check result
I wanted to do a linear regression like in this example. https://www.mql5.com/es/code/1146 I was looking for the CAlglib class reference manual but i found nothing in MQL5 i was looking in the official project site but i found nothing too
Hi, I hired a freelancer to make EA, but now EA expired. How should I edit the MQ5 files to either extend the expiry or make it never expire again? Thanks
I am backtesting my EA in the strategy tester and have just moved to a different broker ( admiral markets). When backtesting my EA which takes trades at the open of a new candle on the daily timeframe, the EA works perfectly until i get to a daylights saving date, after this happens the EA tries to
Hi I was wondering if someone could clarify what happens if a trade moves through a stop loss/take profit level but doesn't have the liquidity to execute the SL/TP Is this even possible with market orders on fok filling type? Does the trade then continue on until a further command is sent or will it
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.