Try replacing IndicatorCounted() with Bars-100 (or whatever number of bars you wish to allow to be calculated on each tick.
But, since the indicator you are using is using data from other time frames, there is no guarantee that it will process just those nnn ars (offline charts are usually not time aligned with regular data and it may cause problems too)
Thanks mladen..., limiting the bars does the trick for now ...
however, it was not possible to add code so that the indi only displays on only (n) number of days as specified by the user in input (extern int ndays)...
there seems to be a problem when a for-loop is added with ndays... this is the only indi I am facing problem with when trying to limit the calc to n days... could be that this indi is referencing diff tfs in the code? possibly... could not figure out the root cause...!
Thanks for your input, as always your wisdom is highly helpful for noob coders...!
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.
Try replacing IndicatorCounted() with Bars-100 (or whatever number of bars you wish to allow to be calculated on each tick.
But, since the indicator you are using is using data from other time frames, there is no guarantee that it will process just those nnn ars (offline charts are usually not time aligned with regular data and it may cause problems too)
Thanks mladen..., limiting the bars does the trick for now ...
however, it was not possible to add code so that the indi only displays on only (n) number of days as specified by the user in input (extern int ndays)...
there seems to be a problem when a for-loop is added with ndays... this is the only indi I am facing problem with when trying to limit the calc to n days... could be that this indi is referencing diff tfs in the code? possibly... could not figure out the root cause...!
Thanks for your input, as always your wisdom is highly helpful for noob coders...!
Best Regards,
Mony