Technical Indicators - page 10

Hi all, I am a beginner and I'm trying to port in MQL5 an indicator I know in Pinescript and MQL4, the G-Channel made by god coder Alex Grover. I think I've done all I had to, but the indicators doesn't work as it should... Here is the code
Why there is not a MTF HULL MT5 inidicator ? There is MA, DEMA, ZERO LAG, JMA (even Bollinger , Dochian and etc ) Multi Time Frame MT5 indicators But when you look for Hull is imposible to find a funtional indicator. Anyone could give me a tecnical (good) explanation whay
I want to know is there an indicator or expert advisor in mt5 that can show candles by contracts e.g. one candle to represent 1000 contracts of any forex pair, metal, energy, etc. ??? If not can it be coded in MT5??? This is because trend lines are more accurate when bars represent contracts rather
Hello everybody, i'm a developer, i've just arrived on mql5 language, i would like to practice on the language, so i've encounter a problem in the mt5 UI it's possible to merge two indicators in a same window, i'm wondering about how can i know that for example, the RSI has cross the MACD
I was brainstorming the other day wondering how one would go about coding something like this logically. I had an idea involving plotting a 1 period sma on the highest highs of each candle (for example's sake) then with a vwap on a higher timeframe create a variable which runs through each possible
Hello, I'm trying to create an indicator to show some basic info but I have problems with text objects. It only draws the last text label like it's overwriting it, I suspect it's because of the indicator buffers but I'm not sure
I am trying to code an indicator (lets say a MA for simplicity) that is calculated in higher time frame data to be displayed in a lower TF chart. For this code, I have recycle several codes available in the code base, but I am falling short to find a way to color code the direction of the line. Say
Hello, I think simple question, how to change the OVB indicator showing the line mirror way. Going the other direction. Thanks
Hello - I have written an indicator that uses the OnChartEvent event that draws lines onto the chart. When this indicator is loaded by an EA using IndicatorCreate, drawing the indicator on the chart is not required. Although not drawn on the chart, the function for drawing the lines is still run
Dear Members I am iBars() in a indicator Class and it was working perfectly fine even on Saturday (Weekend). I than updated MT5 to the latest update released and after starting again, I was getting 0 values from iBars(). I wasted couple of hours to find cause in my code, just to realize that iBar()
Hi! I understand that the Average Daily Range is calculated over several days where each day's range (hi - lo) is averaged. Can someone explain to me what people mean when they say Weekly ADR or Monthly ADR or 180day ADR? How is it calculated? e.g. Does Weekly ADR = last week's ADR of the week's 5...
Hello all, I am unable to change the color of the indicator on my MT5 downloaded on my MAc book Air. Does anyone know how to do this? Would love any assistance. thanks all
I notice a refresh problem in the indicator when switching timeframe. I'm confused at what might be causing it. The buffers don't update properly when switching timeframe, and when right clicking the chart and clicking "refresh", everything updates in just one second. Even if I try ChartRedraw()
Hello,anyone who knows how to track the last bull/bear candle? I kindly ask for your help. simply,am looking forward to create an indicator that gives buy signals whenever the current bull candle closes above the last bear candle AND sell signals whenever a bear candle closes bolow the last bull
  Can't Plot Arrows  (10)
Hello, this code should plot some arrows but it doesn't. It only prints the correct values in the journal, please can you help me? #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Red #property indicator_color2 Blue // Inputs input int max_bars = 1000 ;
i want to show pivots in histogram in seperated window.i want it shows only recent 100 candles.but it doesnt show anythinh #property indicator_separate_window #property indicator_minimum 0.0 #property indicator_maximum 100.0 #property indicator_buffers 1 #property indicator_color1 Yellow #property
  Time and Price  (4)
Hello everyone, I recently wrote this indicator to return buffers of the previous weekly high and low, but for some reason, it keeps being off. Some bars on the lower timeframe do not have buffers that correspond to the weekly high/ low. I tried to correct this by using this PeriodSeconds () but it
Hi. I am trying and failing to create custom comparers for generic collections of objects in MQL5. Can someone please help me work out what I'm doing wrong? Here is a minimal example of what I've tried. #property indicator_chart_window #include <Generic/ArrayList.mqh> #include
Dear Members Seeking advise to improve my code writing for the attached file, where I want to find VSA concept Efforts High and REsult Low. Currently I am using if statements and many conditions are repeated in different section of method. I am sure there should be a better way to achieve same
[Deleted]
hi,everybody. this error what`s the mean? "no indicator plot defined for indicator" warning 1 have a good weekend.
  make it faster  (1)
created an indicator to move the obj by chartevent mouse move. problem is that object is moving asynchronously and lagging. how to make it faster? #property strict #property indicator_chart_window #property indicator_buffers 0 #property indicator_plots 0 double tmpPrice; datetime tmpTime=- 1 ; int
Hello everyone, How much it's difficult to convert for MT5 this indicator that is wrote in pine script? Seems very good indicator. Anyone have time to translate it? It's open source with Mozilla license. Thanks M
Hi All, I've searched everywhere for the answer to how to draw a MA on a newly opened chart . The chart opens as expected, but no MA. Here is the code, but I'm missing something somewhere. void OnStart () { long _longchart = ChartOpen ( "AUDUSD.a" , 60 ); // Open the chart of interest on the
I'm Looking for help on how to initialize terminal data before OnCalculate is called. Attached is a sample indicator and associated log file showing the errors posted - I thought that after calling CopyRates for an 'old' bar, eventually the data would download and things would start working - but...
  Sleep() within a while() Loop  (21   1 2 3)
Why is the sleep function not working properly within a while loop? bool loaded = false ; while (!loaded) { if ( CopyTime (BCIndex, PERIOD_CURRENT , time[start_pos - 1 ], time[rates_total - 1 ], BCtime) != - 1 && CopyTime (PCIndex, PERIOD_CURRENT , time[start_pos - 1 ], time[rates_total - 1
I am intrigued why among the many properties available to query for any position after closing, its highest Drawdown is no readily available? I noted such a data is plotted in one of the MQL5 reports for an EA, but in the list of entries such data in not available. In TradingView this information is
Hi, I am a concerned trader who has been using the stochastic oscillator . While upgrading to MT5, I note the settings lack the k% & d% period and slowing feature which are essential parts of my strategy and present on MT4. Please let me know why they are missing on mt5 and if this is something that
I am developing a function to create a list of unique pairs with open positions. Say USDJPY has a long and short position and GBPJPY has a long positions, the result should be "USDJPY" and "GBPJPY". For this I create an empty array to store the names. First I loop through all open positions, then
[Deleted]
  CopyRates Fail!  (3)
Both failed when i try to load in M1 chart and want to copy D1 date. Error 4401 //+------------------------------------------------------------------+ //| Copytest.mq5 | //| Copyright 2022 | //|
I need someone who can guide me on how to code indicators or who can teach me mql5 coding language. I tried to do some searching but I can't get the simple and fast way as a beginner. Thanks in advance for anyone who can give a helping hand