In my example the first DrawText works ok, it draws "Top" above the current bar.
the second example, fails. the error is something about a double can't be converted to a string.
Is there a way to create a string that is the a price? ex: 791.4
protected override void OnBarUpdate()
{
TopPrice = Low[0] + 5 * TickSize; //this is a double
DrawText("Top" + CurrentBar, "Top", 0, Low[0] + 5 * TickSize, Color.SlateBlue);
DrawText("Top" + CurrentBar, TopPrice, 0, Low[0] + 5 * TickSize, Color.SlateBlue);
}
thank you

Comment