How could one generate large random numbers, ranging between 0 and X where X can be up to 1.500.000? The standard random numbers generators I found are going up to 32767, not higher. And I need higher.
how come this indicator of mine has always sent me the notifications at the right time and now does not send a notification anymore? There is an error in the code or I have some blocking on the notifications according to you #property indicator_chart_windowdatetime timeBar;bool isNewBar;int...
I don't know if it ever has been posted but can anyone add an audible alert and e-mail alert to Laguerre when price only goes down through the .75 level and up through the .15 level? I hope one of our wonderful, intelligent, fabulously gifted Elite programmers can help here. Did I suck up enough?
[Deleted]
I would like to ask how to pass some kind of data, like string to my C# dll. This questions has been answered for C++: How to pass argument by reference from MQL4 to C++ DLL However in my case I want my C# code to get this value from mql4 and then do something with it (so all this while in the C#...
I have an expert opening to many orders . buy I can't close them all at once . all I need is this equation: if one open orders closed (TP or SL) then Close all orders. Can anyone help??
I know I can access the open, close, high and low with Open[0] / Close[0] / High[0] / Low[0]. What about the other prices in this same bar ? Thanks!
Dear experts, @Alain Verleyen @whroeder1 To this day, I am still wondering why the angle value remains zero when I create the OBJ_TRENDBYANGLE object based on a predefined trendline through code in EA or Indicator. Example: ObjectCreate(0,objnameline+"-Angle",OBJ_TRENDBYANGLE,0,0,0,0...
Hi Guys, Firstly, thank you for taking the time to read this post and hopefully answer, I'm fairly new to building Mql4 and am struggling with some understanding of how much of my balance gets used to place a trade. So I've a balance of 4,108.95, I'm trading the US30 and looking to risk 205.45 of my...
Hi, can somebody help me to make working this indicator, please. I'm looking for a push notification after the current candle closes opposite colour of the previous candle (ie. bull to bear or vice versa). Thanks in advance.
Hey! So I've created an EA that works by looking at a condition at the close of a 4hr candle and if it meets the signal criteria then places TWO OrderSend commands. The first one I have creates and order with a 1R take profit level. That's fine. The second order I wish to have a trailing stop loss...
Hi Can someone please help code an EA that checks for the Volume of each of the last 20 Bull bars on a 1 Hour chart . The look back bullish bars are such that they do not occur one after the other ( not consecutive bull bars and bearish bars may also occur in between the 20 bull bars ) . A buy
Hey guys! Any idea how can I get a indicate a specific type of candle after meeting my condition? What I want is, I have created a crossover signal, which I would like to add in more condition like after MA Crossover, I would like the second candle to be either Inside Bar or a Pin Bar... I have...
When I run the script below my values on the chart do not match the output. I am using NULL for the symbol name parameter of the CopyTime function. According to the documentation I thought that meant the current chart's currency pair would be used but they do not match. I have included the script...
if you please someone help me with attached ea i want to add tow option to this ea .. first one is add CloseOppositeSignal with true or false option and the second is add OpenReverseSignal when close buy open sell and when close sell open buy and make it too with true or false option thanks in...
Hello everyone. I'm new here :) I tested every solution that i found online but nothing worked and the errors are still persisting. I contacted the seller and he assured me that the EA's performance won't be affected by this but I'm still worried about this and need a professional opinion. 902...
Much has been broken in the search for the grail (naturally, in relation to the advisor), but everyone understands the term differently. What do you understand by the word grail, please share your thoughts
hi, I am trying code identify Strong White/Black candle. You can see my code identifying basic Dark Cloud Cover Pattern and indicating it on the chart. I want to filter it by strong white candle. But i can not able to identify Stronger candle. Is any way to identify it by candle body?
Hello I would like to use this indicator (Absolute Strenght Histogram.mq4) in an EA. I would like to catch the AlertLine Signal (vertical lines on main chart) but i can't fint the output (only 2 buffers, the lines in the separate window). How can I do ? Thank you for help
I have an index, I want to use it to make EA, but I haven't filtered the index. Can you help me? I want to trade pounds for 15 minutes.
Hi, how do i calculate the median of these values double g1 = 2;double g2 = 2;double g3 = 4;double g4 = 5;double g5 = 6;double g6 = 6; How to compare them and find the median (witch is g3 and g4. g3+g4/2 the result should be 4,5) via mql4 code?
Hi, I really hate to post this, but what am I doing wrong.??? The very simple code below though obviously false, returns true. If I swap || for && it behaves properly. Please help! void OnTick() {//--- if(Piv1() == true) { Alert("Piv1==true"); }...
So I'm making my first effort into using arrays. I'm simply trying to store close price at certain times to retrieve later in my code. Is this code going to achieve the desired result or have I ballzed up completely. int OnInit() { double EU[6] = {iClose("EURUSD",PERIOD_H1,2), iClose("EURUSD"...
Hello, I have tick data suite, and know how to run a back test by date, with different set file, different balance, change the spread, watch in real time, skip foward,inspect the results. What i would like to be able to do is for example take 3 charts, same EA, make EA slightly different in max lot...
Hello everyone, I am trying to simplify closing order. //+------------------------------------------------------------------+//| |//+------------------------------------------------------------------+void ClosePosition() { index=...
I wanted to code an EA that would enter a trade once the moving averages cross and close when they cross again while entering the opposite trade. However, it runs fine only until it opens the second trade which will not close. Do you have an idea what is wrong with my code? double CurrentFast = iMA
Hi, I am trying to make an EA with many different stoplosses and takeprofits. So I wanted to make functions where I can pass the ticket number and it would automatically do the sl and tp. This will save much time and coding. The code below works properly in that it will modify the order, however...
Hi, Can somebody please tell me if my coding solution is correct in solving a 4 H MTF call for an EA that runs on a 1 H chart, or at least clarify further the following: I run a separate EA to call the 4 H CCI to my 1 H based EA as shown below: double CCI_H4=0; if (iBars(NULL,PERIOD_H4)>14) CCI_H4...
Hello, Thanks for taking the time to look at my question. I guess this is a really simple question for some one that knows it. Say you are running mt4, you install an EA, and like most people here we know we can back test it, you load in the tick data suite, you run the back test giving the date...
I have just created an EA that can read the first line of a text file, to obtain a value. Now, I want to use 2 values: the first one in the first line and the second one in the second line. My question is how I should modify the source code to read only the second line of the text file? The actual...

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.