Technical Indicators - page 13

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 | //|
How do you apply an indicator on a multi-buffered indicator in MQL5 in general? For example, Moving Average applied on Bollinger Bands. First, I create the variables: int Bands_handle; int MA_handle; double MA[]; Then I create the indicator handles in the OnInit() function (note that Bands_handle
  TickValue in mq5  (19   1 2)
please what is the correct formula for mq5 when mq4 is like this ? MarketInfo(ExtSymbols[i], MODE_TICKVALUE)
Hello. So I have an indicator and a structure I'm using in it. In OnChartEvent() function I call for some function of the structure. This function changes some variables inside the structure object. It works for the first time, and for the second one constructor of the structure object is called for
Hello, Basically I would like to use a symbol as an indicator in another chart. For example, in my EURUSD chart, i'd like to have an indicator below that rapresent GBPUSD price. Simple as that. I couldn't fine the code in the codebase section... Can you help me with this? Thanks
Hello guys, I am testing in custom indicator to get screenshots of all currency pairs and all time frames in a chart open. I used CharOpen() function. But some price charts take too long time to load prices and bar data. I only got the " Loading " message in screenshot. I use Sleep(5000); to wait
Hi everyone, this is my first post and im asking experienced programmers if its possible to be able to change the indicator moving average in steps of .25 the EMA SHIFT instead in steps of 1. ? If my question is not clear , please let me know. cheers Serge
Hello. In MT4 I had a MTF MA indicator and it is working nice. The problem is that I can't find any sample in MT5 which works the similar. Simply, I want to use 1 min chart and I want to attach to that chart SMA calculated on 15 min chart. I can't solve that. Any help will be very useful. Thanks
Is it feasible on a theoretical level?: A chart that uses control points during active trading
There may be a common bug in MQL5 indicator functions or I'm missing something. The problem arises when I try to apply any indicator on any custom indicator. For example, in MQL4, you calculate the moving average of any indicator by first filling an array with the indicator and then calling the
The Indicator I'm making works this way, it reads the Histogram bars of this custom indicator I made (MACD from TradingView). It finds the previous 4 chunks of bars separated by groups of above or below 0, then inside each group it finds the highest candle in the Price chart (if bars are above 0)
I am having trouble coming up with the specific code that I need. What I am desiring is for an up Arrow for the below condition: On the 15 min time frame, when the candlestick closes above a given EMA by a certain Pip range. Say, 1-10 Pips for example. Any help would be greatly appreciated