MQL4 and MetaTrader 4 - page 100

I'm trying to solve an issue with an order, but my broker won't help me without a trade ID. Is there anyway for me to access one without the mobile app? Is there anything I can do? Or are all apple users just fcked
The program should use volume that is greater than average and support and resistance levels to determine buying and selling opportunities. If the volume is greater than average and the price breaks out either up or down from the support or resistance level, the program should place a trade with a
Hi, im trying to code a variable that will be the index of a candle at a time to start scanning the candle for various price points. int LHSearchcandle = iBarShift(_Symbol,_Period,StrToTime("09:00")),true); int HLSearchcandle = iBarShift(_Symbol,_Period,StrToTime("09:00")),true); the above code
The MetaTrader 4 platform update will be released on Friday , December 10, 2021. This build provides the following changes: The minimum supported desktop client terminal version has been increased to 1340. Older terminals will not be able to connect to updated broker servers, General fixes and
I'm currently using NormalizeDouble() to edit the precision of a calculation to 1 decimal point. I'm displaying this number on my chart. Most of the time it displays as e.g. 10.1 or 10.6, but when it calculates as a whole integer the visual spacing changes momentarily. How can I get this number to
  Pending Orders  (3)
Hello! I have a question… lest assume that I place a pending order at price 0.1230, with. SL at 0.1220 and a TP at 0.1240. And the price gaps from 0.1229 to 0.1235. Pending will be activated at price of 0.1235. The stops prices will remain as initially set
Someone has already solved a similar problem, but the solution seems too complicated to me. https://www.mql5.com/en/forum/156865 Example: I have value of RSI 73,21 or a variable that is keep storing: eu= iRSI ( "EURUSD" , _Period , 14 , PRICE_CLOSE , 0 );eu= NormalizeDouble (eu, 2 ); If value is
Hi, can I make the code of one trading account to read the number and type of the positions in one of my others trading accounts. Thank You
#property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 Red #property indicator_color2 Blue #property indicator_color3 Brown #property indicator_width1 2 #property indicator_width2 2 #property indicator_width3 2 double shortMA[]; double longMA[]; double
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
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
  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
[Deleted]
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