I am trying to print some values from a Secondary 5MIN Series to my chart screen. The values on the chart for a specified time do not always agree with the values for the same time in the Output window. For example, on the image attached, the value for 12:40:00 is 18.39 (but that is the 12:35:00 value in the Output window) and 12:35:00 on the chart is -49.17 (but that is the 12:25 value in the Output Window).
This is the section of the output window concerned and I have attached an image of the chart with the values on the screen.
23/05/2017 12:25:00 avgOs-Ob2nd=9.20 Os-Ob2ndBar0=-1.39 %Change=-115.09 ChangeIn%Bar0-Bar1 -49.17 23/05/2017 12:30:00 avgOs-Ob2nd=7.37 Os-Ob2ndBar0=2.84 %Change=-61.43 ChangeIn%Bar0-Bar1 53.66 23/05/2017 12:35:00 avgOs-Ob2nd=4.90 Os-Ob2ndBar0=0.16 %Change=-96.70 ChangeIn%Bar0-Bar1 18.39 23/05/2017 12:40:00 avgOs-Ob2nd=3.06 Os-Ob2ndBar0=0.16 %Change=-94.71 ChangeIn%Bar0-Bar1 1.98 23/05/2017 12:45:00 avgOs-Ob2nd=2.77 Os-Ob2ndBar0=6.02 %Change=117.37 ChangeIn%Bar0-Bar1 214.07 23/05/2017 12:50:00 avgOs-Ob2nd=1.82 Os-Ob2ndBar0=-0.26 %Change=-114.16 ChangeIn%Bar0-Bar1 -231.53 23/05/2017 12:55:00 avgOs-Ob2nd=1.05 Os-Ob2ndBar0=-7.04 %Change=-770.28 ChangeIn%Bar0-Bar1 -656.12 23/05/2017 13:00:00 avgOs-Ob2nd=-0.94 Os-Ob2ndBar0=5.62 %Change=697.38 ChangeIn%Bar0-Bar1 747.08 23/05/2017 13:00:00 avgOs-Ob2nd=7.51 Os-Ob2ndBar0=5.44 %Change=-27.46 ChangeIn%Bar0-Bar1 -151.84 23/05/2017 13:00:00 avgOs-Ob2nd=2.60 Os-Ob2ndBar0=-10.05 %Change=-487.18 ChangeIn%Bar0-Bar1 -243.41
if (BarsInProgress == 1) { Print(Time[0].ToString()+ " " + "avgOs-Ob2nd=" + avgOsObSecondSeries[0].ToString("0.00") +" " + "Os-Ob2ndBar0=" + (My2ndDataSeriesPlots182.PrimaryOS[0] - My2ndDataSeriesPlots182.PrimaryOB[0]).ToString("0.00") + " " + "%Change=" + osObBarOAvDiffSecondSeries[0].ToString("0.00") + " " + "ChangeIn%Bar0-Bar1" + " " + changeFromBar0ToBar1SecondSeries[0].ToString("0.00")); Draw.TextFixed(this, "texttag", "[0]"+" "+Times[1][0].ToString("HH:mm:ss") +" "+ ChangeFromBar0ToBar1SecondSeries[0].ToString("0.00")+"\n" +"[1]"+" "+Times[1][1].ToString("HH:mm:ss")+" "+ ChangeFromBar0ToBar1SecondSeries[1].ToString("0.00")+"\n" +"[2]"+" "+Times[1][2].ToString("HH:mm:ss")+" "+ ChangeFromBar0ToBar1SecondSeries[2].ToString("0.00")+"\n" +"[3]"+" "+Times[1][3].ToString("HH:mm:ss")+" "+ ChangeFromBar0ToBar1SecondSeries[3].ToString("0.00")+"\n" +"[4]"+" "+Times[1][4].ToString("HH:mm:ss")+" "+ ChangeFromBar0ToBar1SecondSeries[4].ToString("0.00"), TextPosition.Center, textColorBrush, textFontA, Brushes.Black, Brushes.White, 10); }
Thank you.
Comment