Hi coders.
I am trying to write a simple piece of code which uses a FOR NEXT Loop that analyses certain conditions of the price close after a predetermined number of intradaybar increments. rather like the STEP command in BASIC.
For example, on a 1 second timeframe chart I might want to return the position of a price every 60th of a second, rather than have a minute chart open at the same time.
I was wondering if there was an easy way around this problem and would be grateful for any advice.
Thank you in advance for your help.
A rough idea:
Count how many times the current Open is different from the previous one, if your count is equal to 60, one minute has passed.
Thank you for your idea Nicolas