To speedup Draw.Region() I using approach like this:
public class iHostedDrawRegion : Indicator
{
Region My_Region;
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Name = "iHostedDrawRegion";
}
else if( State == State.DataLoaded )
{
My_Region = Draw.Region(this, "Region", 0, 0, Low, High, null, WmBrushes.LimeGreen, 70 );
}
}
protected override void OnBarUpdate()
{
My_Region.EndAnchor.DrawnOnBar = CurrentBar;
}
But, if to add indicator in strategy - it not draw.
Is there any way to let it work?
Comment