Thanks for the clarification Peter, I think i’m getting it!. Some problem I have are due to not knowing the limits and thinking beyond them.
Say this, if entering a maze you have the option to go left, right or straight on, but the only way to the center is to go right. Confident and care free, and NOT knowing that, allows you go left and waste your time and effort on something that can’t be done, but you don’t know that at that point.
Having been totally lost you end up back at the beginning, and filled with some relief, decides to go straight on. This time, more seriously, with a plan to logically map all the paths, this feels good, but as time goes on there’s, a growing feeling in the back of your mind thinking I didn’t do that when I went left, did I miss something!. By the time your efforts get you back to the beginning you’ve talked yourself into going left again and systematically mapping all those paths, more time and effort.
When finally, you get to the point when the only path left is the right path, and, you haven’t given up by then, your tired and frustrated etc and think it wasn’t worth it and may not do it again.
If there’s anything to be taken from my little story is that the thousand of wrong paths build your knowledge in deciding on which direction you take next time, and usually that is more useful in the long run, than your original goal you set out on. It would be a waste of time if you did not try again.
Just for clarity’s sake, take 3.
The vertical line @ 25 bars back from current bar on the 5min chart 100 units, will disappear if you duplicate the chart then change the time frame to 1 sec. This, because firstly, the chart is still set to 100 units, and basic 100 unit charts only loads 600/ bars with 100 displayed, this may vary depending on any additional bar that have accumulated and zoom altered before duplication. And secondly.
5min = 300sec and 25 x 5min equates to 25 x 300 = 7500sec + a few from current bar.
This can be overcome by increasing the charts units but, your application doesn’t require this because you only want to use the functionality of the indicator, ‘the line’, in a second chart and position and not to display the position of the 5min line, on the 1 sec chart.
Now in concept terms, the indicator just draws a vertical line, you want a line in a couple of places, you do this by adding the indicator to all charts that require it, introduce the dynamic variable, you can manually offset a value say ‘1’ and by multiplying 25 for the 5min to get the 25 bars position and then multiplying by 100 on the 1 sec to get 100 bars position. Job done!
This reminds me, you can lead a horse to water, but you can’t make it drink!
A thing I’ve come across while trekking the maze and expanded on while looking it to this, poses this question,
‘What is a bar!’
Until recently I thought a bar was a fixed period of time, however, it appears, to be a bar it needs at least 1 tick of market data, and the barindex count doesn’t increment if it doesn’t see this how ever long it takes . This is more likely to happen on smaller time frames since the time period of a bar is small enough to be exceed by a period of no market activity. Today while working through you comments Iv’e notice that the ‘Ruler’ tool doesn’t seem to follow this concept but counts a bar as a fixed period of time. I wonder how I get confused at times!
Thanks. All the Best.