Waco TX.
Experience: Advanced
Platform: retired ...maybe
Trading: anything with the slightest edge..
Posts: 242 since Jul 2011
Thanks Given: 335
Thanks Received: 176
|
I know that bars in a chart are counted from left to right and was wondering if anyone know a way to code a reset for the count ? For example if I opened a one minute chart at the end of the day with one only one day of history there should be 1440 candles and the count would look like 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16....etc.
I was wondering if somehow I can put a reset in the middle of the count so it goes like 1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7... etc.
does anyone have a idea of what code snippet may do that ? basically I am trying create a bar counter to loop so that it would end at the seventh bar and start over with 1 after every 7th bar.
I am guessing this can only be done by making an array of some sort...
Thanks Quantismo..
|