The chart is initially added with a daily chart displayed. Because I can manually change the time frame on the GUI, I add daily, 30 min and 15min to my strategy so I can program events and it won't change.
I want the arrows/dots I "draw" to display on whatever chart I select on the GUI.
PROBLEM: If I change from a daily chart, all my drawing dots disappear. How can I keep them on the chart if I select 30 min chart to view? (am I assuming that is BarsInProgress == 0 the display)
Initialize()
Add(PeriodType.Day, 1);
Add(PeriodType.Minute, 30);
Add(PeriodType.Minute, 15);
OnBarUpdate()
if(BarsInProgress == 0) // this is the display
if(BarsInProgress == 1) // daily chart
if(BarsInProgress == 2) // 30 min chart
if(BarsInProgress == 3) // 15 min chart
if some logic
drawdot (this code works)
I add the Daily again

ay:1:MFNTMultiTF:Initializing - bars[1], Long period set: 1, Curbar:0, 9/25/12 9:47:30 PM
Comment