Is it true thatfunctions like iRSI returns 0 (zero) if you haven’t yet open that symbol in thegraph window or downloaded its historical data? In the nextsimplified code theRsi returns 0 for some symbol/timeframe combinations. Is there away to avoid this? string theSymbol = "";int theTimeframe =...
Hi, there is an indicator in sub-window. I want to make arrow signal in main windows not sub-window. In the followings: #property indicator_separate_window #property indicator_buffers 7 #property indicator_color1 Red #property indicator_color2 Blue If I make arrow signal buffers, It shows up in a
Hi The 2 lines below are braking my code: #include <windows.h>#include <stdio.h> Error: can't open "C:\Users\myname\AppData\Roaming\MetaQuotes\Terminal\someid\MQL4\Experts\windows.h" I tried to locate the files manually on my system for no avail Any suggestions? Thanks
Hi The code below is expected to take the screen shot of the chart window as is, but when I shift the chart window x number of bars, it still takes the image as if the chart is not shifted, It also shifts my custom indicator so that it does not align with the chart bars correctly, which is not...
Hi all, Say that I have more than one order open and I just want to get the profit, commission or any other information regarding the state of the last order. Is the following code the right way to get it ? void OrderGetProfit() { Profit = 0; for(int...
ok so im new to programing in mt4 so i don't know a lot of the functions yet but i think i understand most of it but i don't see where it adds the rsi value after the short name that gets displayed in the top left corner i also added a rigged up alarm there probably is a better way to do the...
ok so the first ObjectCreate puts it in window 0 (main) and the second ObjectCreate puts it in the 2 i dont know why??? ObjectCreate ( "m5" , OBJ_LABEL , 0 , 0 , 0 ); ObjectSetText ( "m5" , "M5 " + iRSI ( NULL , 5 , 14 , PRICE_CLOSE , 0 )); ObjectSet ( "m5" , OBJPROP_CORNER , 0 );
Dear programmers, How to get market End time and Start time by mql4? I seen post about MODE_STARTING and MODE_EXPIRATION. But i can not able to get that information into chart. Please help me. Thank you.
Hi there, I tried this program, and has the following problem with it. When the price comes close to the action time, I get several buy or sell actions all ending in losses, they are not that big, but they all add up... Once the price have moved away from the cross, it is more stable and remains in...
[Deleted]
Hi all, I was just wondering if anyone could let me know if i am on the right track. I am trying to make an EA which measures the highest point and lowest point for the first 4 (1 hour) bars of each new day. I know how to check for new day : bool IsNewDay() { static datetime OldDay = 0 ; if (OldDay
Not going to argue about this. It's a bug. It's been confirmed by others. I'm done with this. MT4 is problematic, and I don't see it changing any time soon. So i'm deleting the original message.
Hello I'm beginner. I had many questions on this site. Always thank you. I have some ploblem about Interlocking Expert and Indicator. I'm using function of iMA in Expert. But chart and tester don't display graph. but If I push the stop button in tester, that display graph. I want to see the graph as...
Trying to figure out how to find the high between two points in time. From January 1st to March 1st. Going in circles. Perhaps someone could look at the following code and tell me if I'm headed in the right direction. Thanks!...
Hi, in just found this strategy: https://www.mql5.com/en/blogs/post/712016 Does anyone know as if there is allready a ea for mt4 for this, which gives automated signals`? Thanks!! LISA
hello, is it possible to add a new column to Optimization Results? : I would like to add "Loss Trades". I can use TesterStatistics(STAT_LOSS_TRADES) in Ontester() or Deinit() functions but I do not know how to add the value to Optimization results. thanks in advance.
Hi For some reason I can not get to MQL5. I have a job posted over there that i am trying to complete. I keep getting a not authorized error. I have a separate profile and have money deposited there waiting to complete this project. Is anyone else having an issue getting over there today. Thanks
[Deleted]
Dear Friends, I have a problem, in putting MACD indicator to the chart. As shown in the picture, why can not appears 2 line and 1 histogram as in theory (babypips)? Can anyone help me? Sorry, my question may be very easy for some people, but I am still a newbie. thank you
hi friends, I searched a lot for a code to prevent the EA from drawing arrow objects on opening new trades, without any success. I think it is compulsory to prevent the EA from drawing arrows on opening new trades as it is highly source intensive and would slow the process of back-testing. So I'd...
Hi I want to loop over the open positions in my account and not the open orders. How is that done as OrdersTotal() gives the total number of working orders plus the open positions. Thanks
I opened this topic because I'm searching for a list of different font types To display text with Objectsettext on Chart Who knows where I can find such a list with font types like "Verdana", "Arial",.....
Hello, do someone can help me to fix the code of this Grid EA please ? Its cannot be compiled due to errors.
i have attached indie Pollan.mq4. The problem with this language, is the point that vendors, traders who post their code, invariably use the language to enable the indicator to cheat, i.e., repaint, such that results are flawed, deliberately! That's a constant problem. Now here again, re the...
Hi guys, I am not advanced coder in mql4 but I am learning the basic. Here I would like to an help about how i have adapt the code that I tested on currencies for index, metals and commodities . My broker has 5 digits so I fixed SL and TP at xxx points. examples for German 30 I have this price...
Hi!, I would like to stop my EA on News Hour. so that i want to implement to stop trading in before and after 30 news time. Eg: NewsHour1=15:30; NewsHour2=11:30; When NewsHour1 is 15:30 EA should stop from 15:00 to 16:00 When NewsHour1 is 11:30 EA should stop from 11:00 to 12:00 Please give me...
A squeeze indicator on its own is useless , the amateur versions are free , they are no good unless it gives a trend direction.Where can I get the professional versions? All squeeze amateur versions , say is when market is directionless.
Good afternoon you all,I have this Expert Advisor in which I can set take profit and stop loss in points. I want to change this parameter with the percentage of the investiment. For example, when the profit is at 25% of the amount invested or when the loss is at -70% of the amount invested the...
in code does, shift=Bars-counted_bars-1; return -1, if there are 500 bars in data history? so.. then if =-1 does close[shift+.05] reference the 4th bar counting back from the current bar, c1=current bar, so c4 is 4th bar back in series. or does shift=Bars-counted_bars-1= 0?
As the title suggests, I am trying to strategy test a custom indicator of mine but it cannot seem to get passed certain dates due to an error that reads "Array out of range" immediately followed by "Testing pass stopped due to a critical error in EA" then followed by "2 tick events processed in...
Hi, I'm using HalfTrend-1.02, And I have indicator's .mq4 file. My problem is if indicator's line is blue, give me 1 value, or if it's red give me 0 value. How can i do that? example; if line is red { Sell = True} if line is blue {Buy = True}
This function shall have to create a vertical line by any cross between the two moving average, instead how it works now after any cross it prints a line for all the following candles. Have someone have an idea to how to solve that issue? I repeat, I need only a line for each cross. In the...

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.