Could anyone please help me to convert DrawText sample from NT7 to NT8?
if (drawValue){ string newValue = Math.Round(Close[0] + (Close[0] * (0.5/ 100)),2).ToString(); DrawLine("Line", true, 0, (Close[0] + (Close[0] * (0.5/ 100))), -8, (Close[0] + (Close[0] * (0.5/ 100))), bullTrend, DashStyle.Solid, 1); using (Font fontTextFont = new Font(FontFamily.GenericMonospace, 8.0f, FontStyle.Bold)) { DrawText("Tag", true, "Value", -14, (Close[0] - (Close[0] * (0.5/ 100))), 0, bullTrend, fontTextFont, StringAlignment.Near, Color.Empty, Color.Empty, 0);Color.Empty, 0); DrawText("Tag, true, newValue, -8, (Close[0] + (Close[0] * (0.5/ 100))), 0, bullTrend, fontTextFont, StringAlignment.Near, Color.Empty, Color.Empty, 0); } }
Comment