RicardoOliveira87 #: Is there a way to exclude the current candle from the counting?
modify line 161...
if(CopyBuffer(ATRHandle,0,X,2,ATRBuffer)<=0)
change X to the candle number that you want the first candle to be counted. for example: currently it is 0. If you want the 2 closed candles to be counted instead: change X to 1.
However, I have an issue whereby, when I set the indicator to a template and then change the timeframes on the chart, it creates another object for the other timeframes on top on the original template/object even though the timeframe on the indicator is sent to current.
Please can you amend or show me how to amend this as I can't see the ATR when I change/flick back-and-forth between multiple timeframes and multiple templates?
Also, please click/(Copy paste the URL on browser.) on the Video-Link below as I had recorded so hopefully making it easier to understand.
(Please wait a few seconds till the video loads) VideoLINK: https://watch.screencastify.com/v/AwKxSD2IthfzLsWM1MUS
However, I have an issue whereby, when I set the indicator to a template and then change the timeframes on the chart, it creates another object for the other timeframes on top on the original template/object even though the timeframe on the indicator is sent to current.
Please can you amend or show me how to amend this as I can't see the ATR when I change/flick back-and-forth between multiple timeframes and multiple templates?
Also, please click/(Copy paste the URL on browser.) on the Video-Link below as I had recorded so hopefully making it easier to understand.
However, I have an issue whereby, when I set the indicator to a template and then change the timeframes on the chart, it creates another object for the other timeframes on top on the original template/object even though the timeframe on the indicator is sent to current.
Please can you amend or show me how to amend this as I can't see the ATR when I change/flick back-and-forth between multiple timeframes and multiple templates?
Also, please click/(Copy paste the URL on browser.) on the Video-Link below as I had recorded so hopefully making it easier to understand.
(Please wait a few seconds till the video loads) VideoLINK: https://watch.screencastify.com/v/AwKxSD2IthfzLsWM1MUS
Warmest Regards
Rohan
I have the same problem. When you save the template with the indicator then load the template with other chart, the problem then occurs. Please check attached image.
P.S.
I found a workaround. Just hide the indicator in one timeframe then cycle between timeframes.
P.S.S.
Problem reoccurs after several minutes have passed.
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.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Is there a way to exclude the current candle from the counting?
modify line 161...
change X to the candle number that you want the first candle to be counted. for example: currently it is 0. If you want the 2 closed candles to be counted instead: change X to 1.
Hi Hossein Nouri,
Thanks you for the indicator, it's a great help.
However, I have an issue whereby, when I set the indicator to a template and then change the timeframes on the chart, it creates another object for the other timeframes on top on the original template/object even though the timeframe on the indicator is sent to current.
Please can you amend or show me how to amend this as I can't see the ATR when I change/flick back-and-forth between multiple timeframes and multiple templates?
Also, please click/(Copy paste the URL on browser.) on the Video-Link below as I had recorded so hopefully making it easier to understand.
(Please wait a few seconds till the video loads) VideoLINK: https://watch.screencastify.com/v/AwKxSD2IthfzLsWM1MUS
Warmest Regards
Rohan
Hi Hossein Nouri,
Thanks you for the indicator, it's a great help.
However, I have an issue whereby, when I set the indicator to a template and then change the timeframes on the chart, it creates another object for the other timeframes on top on the original template/object even though the timeframe on the indicator is sent to current.
Please can you amend or show me how to amend this as I can't see the ATR when I change/flick back-and-forth between multiple timeframes and multiple templates?
Also, please click/(Copy paste the URL on browser.) on the Video-Link below as I had recorded so hopefully making it easier to understand.
(Please wait a few seconds till the video loads) VideoLINK: https://watch.screencastify.com/v/AwKxSD2IthfzLsWM1MUS
Warmest Regards
Rohan
Video not found! Please check that out.
Forum on trading, automated trading systems and testing trading strategies
Indicators: ATR Value Indicator
Rohan Sawant, 2022.04.10 15:21
Hi Hossein Nouri,
Thanks you for the indicator, it's a great help.
However, I have an issue whereby, when I set the indicator to a template and then change the timeframes on the chart, it creates another object for the other timeframes on top on the original template/object even though the timeframe on the indicator is sent to current.
Please can you amend or show me how to amend this as I can't see the ATR when I change/flick back-and-forth between multiple timeframes and multiple templates?
Also, please click/(Copy paste the URL on browser.) on the Video-Link below as I had recorded so hopefully making it easier to understand.
(Please wait a few seconds till the video loads) VideoLINK: https://watch.screencastify.com/v/AwKxSD2IthfzLsWM1MUS
Warmest Regards
Rohan
I have the same problem. When you save the template with the indicator then load the template with other chart, the problem then occurs. Please check attached image.
P.S.
I found a workaround. Just hide the indicator in one timeframe then cycle between timeframes.
P.S.S.
Problem reoccurs after several minutes have passed.