how can I use the ChartAnchor Propertie DrawOnBar for a Draw.VerticalLine like the example in the NT HelpGuide?
Text myText;
protected override void OnBarUpdate()
{
if(CurrentBar == 50)
myText = Draw.Text(this, "tag", "test", 0, High[0]);
if(myText != null)
{
Print(myText.Anchor.DrawnOnBar); // drawn on bar 50
}
}
Thanks for your support
Comment