[Request] Market Session Indicator - page 4

 

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

Reason: