[Deleted]
Here : '' Number of Bars barsToDraw " instead of starting from last price , it starts from an entered hour and minutes. Example 16:04 -(***) how many bars it draws from this time or any other ! Or in the ''Custom candles by numbers.mq4 '' version it uses as a counter starting from the hour and
I'm trying to code an indicator that can change the colour of a particular candlestick (e/g candle stick at position 0 = current candle) ONLY. I tried using the chartsetinterger function but it changed the color of all the candlesticks in the charts (There is no option to specify the exact candle
hi i creat an indicator who recognize the hammer config on the chart and dessin an arrow, now i need to add the letter "H" behind each arrow detected there is my code int OnCalculate ( const int rates_total, const int prev_calculated, const datetime & time[]
Hi folks, I need some help with my indicator, because the indicator drawing is flatten in weekly and monthly chart as shown below : This is typically how it looks like in time frame H1 : And here is my code : #include <MovingAverages.mqh> #property indicator_separate_window #property
Hi, I get an error: '{' - function definition unexpected datetime currentDay = TimeCurrent (); { if (currentDay != lastDay) // Update maximum drawdown if necessary } I have no clue what I am doing wrong, it's about the first bracket that the system just does not want to do. Please
Good day, I am writing a script for changing all the chart with the same symbol. All is ok BUT... if I drag and Drop the script not on the 1st terminal chart, the script change the 1st terminal chart timeframe, with the timeframe of the chart where it was dragged and dropped...why ? Can you gelp me
Hi, is it possible for my indicator to get the buffer value from another indicator which is placed on the chart? I don't want to call it with iCustom(...) because the parameter for this indicator is unknown or can be changed in the meantime. I only want to get the values I can see in the data
[Deleted]
Hi guys so I have created 2 indicators; 1 that draws levels, the 2nd combines MACD, MA and the levels, MA is based off MACDs data "Previous Indicator Data" but now how I can check if the values are above the levels. For instance if you drag the rsi, then the moving average to the same window as rsi
Hi Everyone I need an indicator to be displayed only on specified timeframe. Currently I have to do it manually by setting visualization property. Is there a way I can do it programmatically? Thanks in advance. Update: ........................ From one of the forum's post I got the following
I had a glitch on one of my indicator plotting lines which is meant only to be shown for the last 2 bars, which would sometimes show itself in historical bars when restarting MT5 after it was closed for a long time. Hitting refresh would fix it, but eventually I decided to head the problem off at
Hi everyone I'm a beginner and I'm wondering how to use this function, how can I retrieve the function's return or a concrete example of its use? int OnInit () { int var01 = SetIndexBuffer ( 0 ,IndicateurBuffer, INDICATOR_DATA ); int var02 = IndicatorSetDouble ( INDICATOR_MINIMUM , 0 );
I think my MT5 is hacked, the sensitivity of the charts is wanting e,g the Relative Strength indexes have not touched the overbought and oversold lines,this is a breach of security can someone help me with identifying this person
Good morning I had several indicators eurx jpyx gbpx etc which were on the main window (offline maybe) on an old version of mt4 on which I can put my indicators. do these indicators still exist and if so, do you have the link
The normal solution if ( TimeCurrent ()>expiry_date) return INIT_FAILED ; does not apply in backtest mode! Do you think there is a solution
i want to creat like this code but to scan engulfing configuration , the probleme is how to get the open high last and close for the 3 last candles pls. int OnCalculate ( const int rates_total, const int prev_calculated, const datetime &time[], const
Hello, I have a custom indicator and I would like to read it 2 times, the first for the current time and the second for a different time, when I call the indicator I change the time to the second as shown in the image, but it returns the same value for the current time frame. Can someone help me
Please look to this picture and help me why array 0 to 5 is same . I just need value[0]
I would like to repeat a task every 20 seconds is that how to do it? int timeToWaitInSeconds = 20 ; datetime LastTimeRecorded = LONG_MIN ; int OnCalculate ( const int rates_total, const int prev_calculated, const datetime &time[], const double &open[]
I'm new to MQL5/programming so forgive me in advance: In the process of modifying a clock indicator that gets updated in OnTimer() I found that I needed to do a ChartRedraw() in order to make sure it visually updated the label chart object in a timely manner. This got me to thinking... if there's a
Good morning, There is an error that I don't understand. Maybe I'm doing it wrong. I would like to have an indicator that returns me ADX values in a larger unit of time. input int PeriodADX= 14 ; input int ADXTrendLevel= 22 ; input ENUM_TIMEFRAMES HTF = PERIOD_H1 ;
Hi, Could someone tell me what lines should I write into the basic RSI indicator's code to get the result on the pic? At moment I draw rectangles to get the colored zones. Basically I want colored zones at the backround of the indicator regardless of the timeframe. I hope it's not difficult. Thanx
Hi guys, I recently develop an indicator that detects support and resistance levels of the 100 previous peaks and troughs. I am trying to implement the data and calculations of this indicator to an EA I am trying to develop but I am having some problems. Since the indicator detects structure levels
Good day, I tried for days to code a master candle indicator by myself, with no success. I need to draw the high/low of each master candle available on historical datas. Can someone help me very please. here is the function OnCalculate Regards. int shift, bar, limit= 0 ; //--- if
I found something strange in copybuffer atr indicator. the value return EMPTY_VALUE if shift is far from current. Anyone get this problem? //+------------------------------------------------------------------+ //| TestCopyATR.mq5 | //|
Good afternoon! I'm trying to build an indicator that stores the price of each second ago in an array. Then, I intend to get the price of, for example, 5 seconds ago, accessing the array L[5].... I made this code below, but I can't access the array. If it's L[0], then it works.... Where am I going
I am idealizing an indicator with two plots, where one plot would be attached to the chart window (indicator_chart_window) and the other plot to its own subwindow (indicator_separate_window). Is it possible to do this in a single code or do I need to build different indicators
ExtMapBuffer1[i] = giao dịch == 1 && giao dịch[ 1 ] != 1 ? 1.0 : giao dịch == - 1 && giao dịch[ 1 ] != - 1 ? - 1 , 0 : 0 , 0 ; ExtMapBuffer2[i] = giao dịch == 1 && giao dịch[ 1 ] != 1 ? 1.0 : giao dịch == - 1 && giao dịch[ 1 ] != - 1 ? - 1 , 0 : 0 , 0 ; please fix me
[Deleted]
Hello, I am writing a function to get 10 RSI values from copybuffer, how do return the function as an array/pointer? double RSI[] ( int Position, int RSI _Period , int RSI_Apply) { int Handle; double Values; Handle = iRSI ( Symbol (), Period (), RSI _Period , RSI I_Apply); CopyBuffer
Hello guys I hope anyone know the name of this indicator I used to have it on my mt5 . after I changed my pc I lost all my data so I don't remember from which site I download it from. so by seeing these picture anyone know what is this indicator ?? It may look like super signals but it's not . I
Hello, I try to get data ( a value of a moving from another M5 ) and use it with data in Current time frame but it has repaint please help me to solve the problem double moving_val_M1 = 0 , moving_val_M5 = 0 ; for ( int i = candles; i>= 0 ; i--) // Bars-1 { int m1 = iBarShift ( NULL

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.