I have drawn rectangles successfully in a custom function that I call in OnBarUpdate(). I am very limited with this way since I can not draw texts next to my recatngles. OnRender() would be a perfect solution, but before modifying my huge code, I would like to have some help here on how to deal with it.
I have the following:
protected override void OnBarUpdate()
{
if(NewBar() == true)
{
DrawMyRectangles();
}
}
#region Helpers
void DrawMyRectangles()
{}
#endregion
Also, I use to draw texts in OnRender(), but these texts are till now fixed texts. Is there a documentation on how to draw texts in OnRender() base on Time[0] for example? That mean, these texts would be dynamic. What could be the syntax of the function writing the dynamic text in OnRender()?
Many thanks!

Comment