Technical Indicators - page 19

I want to add two moving averages on the same sub-window, but because they do have not `inherit scale` so the mt5 draws them almost in the wrong way
Hello, In my MQL5 Expert Advisor I use iMA function to create Movie averages needed for logic. These MA lines are plotted using ObjectCreate() function using price and time values data generated with iMA. When I try to Backtest this EA in Visual Mode on Strategy tester these lines automatically show
I'm trying to convert the https://www.mql5.com/en/code/14410 indicator from mql4 to mql5, but I'm having problems using MqlDateTime and/or TimeToStruct. I know there is a free version for mt5, but I am using a 32-bit version of mt5 and it is no longer supported. Could you help me to adjust/change
Hi, a good day to everybody. Can someone help me? I want to let the user modify the color in the Example indicator ZigZag, so I added this code to it: enum Colors { color1= clrBlack , // Black color2= clrBrown , // Brown color3= clrLimeGreen , // LimeGreen color4= clrMediumSeaGreen , //
I'm a quite new to MetaTrader and I'm trying to start using MetaTrader 5 after a few months with MetraTrader 4. Unfortunately, there is no an original MT5 version of my the most needed indicator iExposure from MT4. Fortunately, on this site I found a homemade converter from MT4 to MT5 version for
Dear Freiends I wrote an Indicator which should run in 5 minutes timeframe but use daily ATR , so when I run it in daily time frame and bigger its ok, but in lower time frame should I refresh The chart, Can you please check it, I attached it
Hi, From what I see in https://www.mql5.com/en/forum/448388 it is not possible to set visualization properties of indicators programmatically, specifically #property indicator_level1 30.0 #property indicator_level2 70.0 for iRsi, or Rsi either with iCustom or iRse as they are not parameters
Hello , This custom indicator should draw 7 & 20 period SMA #property indicator_chart_window #property indicator_buffers 2 #property indicator_plots 2 #property indicator_label1 "iMA1" #property indicator_type1 DRAW_LINE #property indicator_color1 clrWhite #property indicator_style1
Unable to calculate Chaikin Volatility in Expert only for current bar double hl[30]; double emahl[30]; for ( int i= 0 ; i< 30 ; i++) hl[i] = iHigh ( _Symbol , _Period , i) - iLow ( _Symbol , _Period , i); ArraySetAsSeries (emahl, true ); ExponentialMAOnBuffer( ArraySize
I need help in one of my project that is in MT5 using MQL5 language. I have started learning MQL5 recently. So, b asic summary of task is; I need a custom indicator that incorporates 2 other standard indicators. For example, take the range of the SMA50H & SMA50L, and add/substract the SMA50Range
[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 );
  MT5 sensitivity  (9)
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 ;