a while back as per this thread https://www.mql5.com/en/forum/108481
u have suggested some code for finding min and max atr value but as price keep moving on, the min atr value does not update its value eg. if when first launched ea let's say min atr is at 0.25 but after iVisible bars passed and the new min atr in that portion of the displayed is at 0.45 but the ea still keeps its first found min atr at 0.25
i couldn't figure out your second part of the code guessing it's updating the new min and max value but how it works with the 1st part and what does a and b stand for, please help
and here's your original suggested codes
holygrailseeker: What I need to do is figure out the visible range that's on the ATR indicator window.
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.
hi whroeder1 and all,
a while back as per this thread https://www.mql5.com/en/forum/108481
u have suggested some code for finding min and max atr value but as price keep moving on, the min atr value does not update its value eg. if when first launched ea let's say min atr is at 0.25 but after iVisible bars passed and the new min atr in that portion of the displayed is at 0.45 but the ea still keeps its first found min atr at 0.25
this is the code i used from your suggestion
i couldn't figure out your second part of the code guessing it's updating the new min and max value but how it works with the 1st part and what does a and b stand for, please help
and here's your original suggested codes
What I need to do is figure out the visible range that's on the ATR indicator window.