I want to scan the history of the trades to check if I had 3 consecutive wins or 3 consecutive losses I wrote a code and this one scan only the last two trades even if I increased the Bistory and make it equal to 4 or 5 extern int Bistory =3; int OrdHistory = OrdersHistoryTotal ( )
[Deleted]
Hello all.. I'm going to make this as short as possible. When i came across a blog. I saw this trading screenshot and curious with the indikator that he use. Please help identify me what is the name of the indikator and if you could also provide me the information on where to get the indicator.
Can someone please tell me how to delete a group? I opened an MT4 chat group many years ago and have tried everything possible to get it deleted, without success. It seems one can create a group without a problem, add and delete members, but remove the group when it's no longer in use? Has anyone
Hey there ! I have a question on how to boost a bit the looks of an oscillator line that I coded - I was wondering if changing line colors based on price levels is possible - meaning the further it gets from 0 - the more it's color changes. Anyone tried to do that with MQL4 without creating infinite
I have written an EA, but the prices going into the EA on the Strategy Tester are different to the ones on the History data, for the same date and time. Can anyone help
I am still new to coding and I was trying to make my arrow system stop repainting. what do I need to add or remove from my code because right now it always repaints
I'd like to open up my latest development idea to other members of the forum. I started out with a simple EMA Cross EA and started chopping and changing it. What I now have is an EA that checks the current trend my confirming up or down trend against M5, M15, M30 and H1 timeframes. When al four TF
counted=IndicatorCounted(); if(counted < 1) for(i=Bars - StartBar; i < Bars; i++) { TrLevelSlow[i]=0.0; AtrRsi[i]=0.0; MaAtrRsi[i]=0.0; Rsi[i]=0.0; RsiMa[i]=0.0; } counted=Bars - counted -1; //---- for(i=counted; i>=0; i--) Rsi[i]=iRSI(NULL, 0, RSI_Period, PRICE_CLOSE, i); for(i=counted; i>=0; i--)
[Deleted]
Hi, i'm trying to get this to work on a 5 min time frame. Period the iHighest function should be searching for is PERIOD_D1. int HC() { for ( int i= 0 ; i< WHOLE_ARRAY ; i++) { int BarShift = iBarShift ( NULL , PERIOD_D1 ,time[i], false ); } int IV = iHighest ( _Symbol
[Deleted]
Hello there. Indicator gives me totaly 4 variables, which are drawn in indicator window. But i need only 1 of them to be avaible in Data Window. How can i hide variables i do not want to see in Data Window? Thanks.
This book https://book.mql4.com is great but I need it in epub format so can I read it on my mobile in large and clear font because my eyesight is weak. PDF format does not provide the feature to enlarge the font and the feature of the magnifying glass in the mobile is tiring I wonder why the book
Hi, I am creating an EA which scans all the symbols in the market watch. In that, every symbol runs a set of custom indicator which I developed. From this, I am getting " indicator is too slow, 5640 ms. rewrite the indicator, please " this issue in most of the indicators. I am using " int Nbars =
Dear all, The 'Sleep' command doesn't work in indicator. Is someone has a solution to make a sleep in a custom indicator ? Thanks in advance for your answer!
Good morning, Anyone know this mt5 problem? "look at image" Every time I stop the cursor this long message comes out. It is very annoying and prevents me from correctly selecting objects on the chart. Thanks
Dear mql coders, how could I avoid dragging lines behind the dialog / window ? 1) I do not want to move or drag accidentally the stop loss or take profit behind the CDialog. 2) I do not want to move or drag accidentally the object (line in green) behind the CDialog. The line in green was created
Hello to all, I've seen several posts but no one has helped me .... I made an EA that open several orders, I wish to calculate to the whole order with a specific magic number, the algebraic sum of profit or loss in pips . I set a cycle for scanning all orders, and for each one: If buy I calculated...
[Deleted]
How do I convert Mq4 files into Ex4 files so I can run the Ex4 file as an EA?
Hello traders. I'm trying to learn how to get data feed from a website into mt4 (or mt5), and use it to build an indicator. Google search isn't giving me good results. Please can someone point me in the right direction, maybe an article I can read, or videos I can watch? I would greatly appreciate
Hello, I'm Italian and I write badly in English but give me help anyway, In strategic tester, when during the test I open the DIARY it does not update in real time and the various lines appear only at the end of the test. What should I do
Hi! I have a histogram and I only want to trade the signal on candle close, or next candles open. I tried to capture the previous histogram value, hoping that the EA would only place a buy order as soon as it switched but it did not work and provided weird behavior. I'm really lost here, attatched
Hi everyone, I'm trying to install MT4 on my PC but I got the MT5 one, the setup file frome metatrader is the same for both MT4 and MT5 Any help plz
The following three blocks of codes are meant to find the initial coefficients of the expansion of a binomial expression up to power 6. That is, since (x + y)^6 = x^6 + 6x^5y + 15x^4y^2 + 20x^3y^3 + 15x^2y^4 + 6xy^5 + y^6, the program is meant to obtain the numbers 1, 6, 15, 20, 15, 6, 1 given only
[Deleted]
I am studying mql4 programming. Now I want to plot sin wave in separate window. My code as below,It does not work,it shows nothing. Anyone help to revise ? Thanks a lot. //+------------------------------------------------------------------+ //|...
Hi, I am sure you used to be able to add a _symbol to SendNotifications as well as the string. in MQL4 REFERENCE it only shows a string as being the parameters. any ideas how to get the notification to tell me which currency pair the notification is when it sends it too your mobile. SendNotification
I have a class with some drawing functions in an indicator - How can I stop terminal output when a function is called especially when its numerous times - I don't want to expose underlying class structure in a debug window. define LOGGER_SET_DEBUG 0 has been set in a dependant include
When the alert window pops up and you use the scroll feature on the top half it does not work, in fact if you use the scroll feature on the bottom the top half creates a BIG space for what?? See attached. HOW CAN I GET RID OF THAT BIG SPACE THAT DOES NOTHING, IN FACT HOW CAN I TURN OFF ALERTS
Hi guys , my mt4 is closing down straight after I run it. I have found an article saying that I should delete some community.ini file which I could only access via metaeditor as mt4 itself doesn't give me enough time to access the data folder. Anyway I have deleted the file and the issue persists. I
A bit of a weird issue here. I write a lot of EA's and indicators, and I compile all the time of course. Sometimes, I apply the EA and indicators to a chart using a template. Now what I see is that the previous version of said code is running, until I hit recompile - until I apply the template that
Morning all, Quick question on the FileWrite() function; I currently have a FileWrite() function in my EA to a CSV-formatted spreadsheet, which works perfectly, however, is there a way in which you can write data to a spreadsheet template and to a certain cell reference within that spreadsheet? For

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.