i trying this commands.... however, it allows you to select and only after it removes the selection. I want to not allow selecting or even double clicking to edit.
string novaString = "Baixa_50"+draw.Tag.Substring(5);
double perc_50_baixa = (maior + menor)/2;
Rectangle myRec = Draw.Rectangle(this,draw.Tag, false, firstAnchorTime, maior, Time[0], menor, Brushes.Transparent, Brushes.Red, 20, false);
myRec.IsSelected = false;
myRec.IsLocked = true;
if(Ativar50){
NinjaTrader.NinjaScript.DrawingTools.Line linha = Draw.Line(this,novaString, false, firstAnchorTime, perc_50_baixa, Time[0], perc_50_baixa, Brushes.Red, DashStyleHelper.DashDot, 1,false);
linha.IsLocked = true;
}

Comment