MQL4 and MetaTrader 4 - page 90

Hi there So I have an EA which places a Pending Order at the opening price of the current candle, and expires at the end of the current candle. My code is below, I have even printed an error function in order to diagnose any errors that may occur, however, according to the EA, a pending order is
  Triangular moving average (TMA) ...  (770   1 2 3 4 5 ... 76 77)
The purpose of this thread is more personal ... At some stage (some 4 years ago, posted it at this post : https://www.mql5.com/en/forum/175938/page17I ) coded one variation of an indicator that I named TMA centered. After that somebody shortened it's name to TMA and ever since I am receiving emails...
input int TakeProfit = 10 ; // hard set number (converted to points in EA) input int pipsOffset = 5 ; //Number of pips above or below candle for entry and exit input double Lotsize = 0.01 ;
I optimize my EA. it take too long to pass data and not show result . Although it passed over 100 data , it not show result in optimization results. So I stop optimization , it show error as 2022.04.19 03:45:16.130 ZigZag EURUSD,M15: initialization failed (1). zigzag is my custom indicator used in
I am testing some order code in Renko chart. What I want is to place an order at the beginning of a new candle. In normal chart it is OK, but when I use Renko chart. I observed many entry on the same candle. Do you have any solutions ? if (lastAlertTime != Time[ 0 ]) { OpenOrder here
Hi everyone, i want to change the default settings for price alert from sound to notification! When i add new alerts over the chart than the expire date is activated. I want this also off as a default. Thanks@all!
  Scalp_net  (725   1 2 3 4 5 ... 72 73)
Scalp_net EA. M1 timeframe. EURUSD
I have been asking myself if I could really save run time with a current project I am working on. This project utilizing many indicators, and I was wondering if I really should be utilizing the the in-built functions and the custom indicator functions I created for myself or should I calculate the
Is anyone having problems with MQL storage? If I try to update old projects, no problem. As soon as I create a new project it works, but after a few hours the folder turns yellow and the project no longer syncs with the storage. The problem has been going on for a week and I don't know how to fix
Hi guys, I just can´t find why my EA is showing this error when I use the Trailing Stop option. I am attaching here the code where I call the function Trailing Stop and then the function itself After that I am showing the messsages from the Alerts That I have inserted in the code In short, The...
Hi everyone, I want to apply a custom template, so that my EA immediately starts to change/show the chart with that template. It is called "normal.tpl" Before, I want to check if that file is existing. So I print my terminal data path // Print the terminal data path string terminal_data_path=
anyone please add buffers to this indicator #MT4- StochasticRSI -Oscillator_wTrend_Alerts thanks
[Deleted]
Hi guys,       I am looking for two answers here. First to partially close an open order automatically on a specified profit target. I know that i can do that manually at market value by right clicking on the 'order', going to 'close order' and change the 'volume' as desired and close the partial...
  Strange problem  (12   1 2)
Hi, I have a loop where I compare double values with another double like this: double x = 4.0 ; for ( loop ) { if ( value > x) Print( value ); } The problem is the output looks like this: 14.94 0.79 4.50 2.61 3.97 1.50 9.34 0.85 Why does it print values that are not greater than x
Hello, I need a code snippet to get the delay of execution of the lasts trades in history. The reason is I have an EA which, very rarely, can have a bug : It opens and close orders within less than a second, and repeat that forever. It can wash the account. So the idea is to to return true if the
i am looking for an add on alert for mt4 , alert on cadle closing above or below 21 sma,100 sma, 200 sma, and 300 sma working on all timeframes , any help would be appreciated , please send answers to : <Deleted> ffedback would be appreciated thank you
  How to solve it?  (16   1 2)
//+------------------------------------------------------------------+ //| for lim indi 2.mq4 | //| Copyright 2022, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2022, MetaQuotes Software
int OnInit(){//--- indicator buffers mappingObjectCreate("txtMaxTrades", OBJ_EDIT, ChartWindowFind(), 0, 0);ObjectSetText("txtMaxTrades","" + "0",13, "System", White);ObjectSet("txtMaxTrades", OBJPROP_CORNER, 0);ObjectSet("txtMaxTrades", OBJPROP_XSIZE, 25);ObjectSet("txtMaxTrades", OBJPROP_XDISTANCE...
MT4 build 1353. AccountFreeMarginCheck() is not reliable, sometimes it returns strange value GREATER then the current freemargin (resulting in a negative margin). I have also seen positive margin but completely incorrect (0.12 instead of 217 for example). For example on my broker (running on all 28
can some one tell me how can to stop modification evry miliscond for exemple if i open trade .. EA should stop to modify trade every miliscond what function i should use it
Hi guys? Iam sorry my MT4 Evaluation Terminal takes me to MT5. Please how should I resolve the below technical errors? The EA has no errors but it is not trading.I shall appreciate if you would advise me on how to fix the technical errors.Below are the images of some of the results that I am getting
Hi, I am trying to partially close some orders (2 or more) in a way that I can get some desired profit out of the trade...let me better explain with an example: Say that I have 2 (or more BUY orders) ongoing, say that all orders are in profit of, for example 567$, and my risk is 100$, with this, we
As the question describes, let us assume that we have an index corresponding to a higher time frame candle. Now, I am interested in getting the range of indices of all candles which are included in that specific candle. To make things clear, let me give an example. Let us say that I have the index
  MqlRates Struct  (10)
Hello! Why would I need to use MqlRates struct? Instead of Rates.high(1)… to get the high of candle 1… I can Use iHigh() or High[]… any reason for that? Thanks
Hi when i uploaded my EA to market place it gave me errors after checking error type "Invalid volumes in trade operations" although my ea working well in live market and backtest what is problem here? please, Rewrite these codes again and make the necessary modifications, taking into account this
Hi All I have an EA works on the last bar completed events, as described in this article: https://www.mql5.com/en/articles/1511. So I would like to test it with Open Prices Only (OPO) method. In the two pictures here, If EA places a BUYSTOP at the end of the first bar with predefined SL and TP, now...
Hello! I'm new here. I have this code, where I receive a signal from an indicator and based on it I open operations. but here it opens operations as soon as I connect it, and also opens infinite operations. double Lots = 0.01 ; double TakeProfit = 600 ; double StopLoss = 200 ; input int
Hi there? This MACD sample EA has no errors but it is not functioning.Please what could be the error? Error Results: EURUSD Currency ininitialized,etc.Please how can I make it functional?Thanks!!!! //+------------------------------------------------------------------+ //|
Anyone know how to fix this? Every time I try to open MT4, it quickly pops up a window, then quickly disappears and closes. I have tried restarting computer, redownloading MT4, and searching on the internet but nothing seems to work. Thanks
  vertical lines  (5)
hi these codes draw verticale lines (where  datetime t and string p are known) ObjectCreate(0, p, OBJ_VLINE, 0, t, 0);ObjectSetInteger(0, p, OBJPROP_COLOR, clrYellow);ObjectSetInteger(0, p, OBJPROP_STYLE, STYLE_SOLID);ObjectSetInteger(0, p, OBJPROP_SELECTABLE, false); Here are the lines drawn  I...