Guys, I really want to know how do you work with indicators that changes behaviour multiple times per bar. Most of custom indicators are like this, are they made to be used with at least 1 bar shift?
Don't make it to complicated. You don't need to calculate the 'size' of the bar o something else. Remember your math lessons at school and how to calc the slope of a graph. All you need is really the difference of two bar closes. slope=close*-close*. And you need to be aware of the scale of the x-axis which means you must stay in the same timeframe.
"Weekday filter" with combination with other time filters from the same category.
If the day is Friday, hour is after 23:00 and minute is after :30 - close what it's to be closed.
Indicators also changes because of ticks. Everything changes only because of ticks, so there is no need to repeat something when there are no ticks. If you repeat some conditions 10 times between two ticks, the results will be the same, because indicators depends on ticks.
If you want to repeat something say 10 times within a tick, find a block named "Free loop...". There is also one named "Sleep". But I can't find any reason to do this 🙂