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
}
.. then in Indi_002 I want to retrieve that text. I can get it with a foreach loop looking at all the tags for "tag"
But I know the tag, so I try to read it directly with DrawObjects["tag"] and I can get it semi OK
It shows me the Tag.
But when I try to show DisplayName I get all sorts of errors for bad cast etc. Ive tried all sorts of combinations to get this, and even one that looks right and compiles. But it gives a run-time error of no instance assigned etc.
I need to see DrawObjects["tag"].DisplayName and then Time.
"missing a using or cast.??.."

Comment