since it requires custom code, I moved discussion here...
The goal is to place vertical lines on a (tick) chart at specified time intervals. It helps map the tick movement to the bar development on my neighboring chart.
So I need a marker to compare to the bar time to know whether or not the draw the vertical line. I do not have a known DateTime variable to use during the Initialize() method.
I can initialize the marker at the first tick of the session using Time[0]; however, the behavior is odd. It works after everything has started and new bars are being created (tested in replay) but all previous bars get a vertical line on every single bar. Ugh!
How do I initialize my marker to the session start time or the beginning of the chart? preferably during Initialize() and how to avoid the behavior shown in the NT example below?
Comment