barsAgo = Bars.GetBar(new DateTime(Current.Year,1,1,0,0,0));
Yhigh = HighestBar(High,barsAgo);
Print(Yhigh+", "+barsAgo);
Ylow = LowestBar(Low,barsAgo);
Print(Ylow+", "+barsAgo);
Yopen = Open[barsAgo];
Print(Yopen+", "+barsAgo);
barsAgo = Bars.GetBar(new DateTime(Current.Year,Current.Month,1,0,0,0));
Mhigh = HighestBar(High,barsAgo);
Print(Mhigh+", "+barsAgo);
Mlow = LowestBar(Low,barsAgo);
Print(Mlow+", "+barsAgo);
Mopen = Open[barsAgo];
Print(Mopen+", "+barsAgo);
barsAgo = Bars.GetBar(new DateTime(Current.Year,Current.Month,Current.Day,0,0,0));
Whigh = HighestBar(High,barsAgo);
Print(Whigh+", "+barsAgo);
Wlow = LowestBar(Low,barsAgo);
Print(Wlow+", "+barsAgo);
Wopen = Open[barsAgo];
Print(Wopen+", "+barsAgo);
barsAgo = Bars.GetBar(new DateTime(Current.Year,Current.Month,Current.Day,0,0,0));
Dhigh = HighestBar(High,barsAgo);
Print(Dhigh+", "+barsAgo);
Dlow = LowestBar(Low,barsAgo);
Print(Dlow+", "+barsAgo);
Dopen = Open[barsAgo];
Print(Dopen+", "+barsAgo);
barsAgo = Bars.GetBar(new DateTime(Current.Year,Current.Month,Current.Day,0,0,0));
Phigh = HighestBar(High,barsAgo);
Print(Phigh+", "+barsAgo);
Plow = LowestBar(Low,barsAgo);
Print(Plow+", "+barsAgo);
Popen = Open[barsAgo];
Print(Popen+", "+barsAgo);
DrawHorizontalLine("Yhigh",Yhigh, Color.Red, DashStyle.Solid,1);
DrawHorizontalLine("Ylow",Ylow, Color.Blue, DashStyle.Solid,1);
DrawHorizontalLine("Yopen",Yopen, Color.Green, DashStyle.Solid,1);
DrawHorizontalLine("Mhigh",Mhigh, Color.Red, DashStyle.Dash,1);
DrawHorizontalLine("Mlow",Mlow,Color.Blue,DashStyle.Dash,1);
DrawHorizontalLine("Mopen",Mopen,Color.Green,DashStyle.Dash,1);
DrawHorizontalLine("Whigh",Whigh,Color.Red,DashStyle.DashDot,1);
DrawHorizontalLine("Wlow",Wlow,Color.Blue,DashStyle.DashDot,1);
DrawHorizontalLine("Wopen",Wopen,Color.Green,DashStyle.DashDot,1);
DrawHorizontalLine("Dhigh",Dhigh,Color.Red,DashStyle.DashDotDot,1);
DrawHorizontalLine("Dlow",Dlow,Color.Blue,DashStyle.DashDotDot,1);
DrawHorizontalLine("Dopen",Dopen,Color.Green,DashStyle.DashDotDot,1);
DrawHorizontalLine("Phigh",Phigh,Color.Red,DashStyle.Dot,1);
DrawHorizontalLine("Plow",Plow,Color.Blue,DashStyle.Dot,1);
DrawHorizontalLine("Popen",Popen,Color.Green,DashStyle.Dot,1);
DrawText("YhighText","Years High",20,Yhigh,Color.Black);
DrawText("YlowText","Years Low",20,Ylow,Color.Black);
DrawText("YhighText","Years Open",20,Yopen,Color.Black);
DrawText("MhighText","Months High",20,Mhigh,Color.Black);
DrawText("MlowText","Months Low",20,Mlow,Color.Black);
DrawText("MhighText","Months Open",20,Mopen,Color.Black);
DrawText("WhighText","Weeks High",20,Whigh,Color.Black);
DrawText("WlowText","Weeks Low",20,Wlow,Color.Black);
DrawText("WhighText","Weeks Open",20,Wopen,Color.Black);
DrawText("DphighText","Previous Days High",20,Phigh,Color.Black);
DrawText("DplowText","Previous Days Low",20,Plow,Color.Black);
DrawText("DphighText","Previous Days Open",20,Popen,Color.Black);
DrawText("DhighText","Days High",20,Dhigh,Color.Black);
DrawText("DlowText","Days Low",20,Dlow,Color.Black);
DrawText("DhighText","Days Open",20,Dopen,Color.Black);
0, 0
0, 0
1113.75, 0
0, 9993
0, 9993
I suppose I have Horizontal lines but not at 1113.75!

Comment