int x=0;
drOb = DrawObjects.Count;
if(drOb >0){
foreach (DrawingTool draw in DrawObjects.ToList()){
foreach(ChartAnchor myAnchor in draw.Anchors.ToList()){
if(draw.IsUserDrawn){
Print(myAnchor.Price +" " + myAnchor.BarsAgo);
}
}
}
}
int =0;
drOb = DrawObjects.Count;
if(drOb >0){
foreach (DrawingTool draw in DrawObjects.ToList()){
foreach(ChartAnchor myAnchor in draw.Anchors.ToList()){
if(draw.IsUserDrawn){
x=CurrentBar - Bars.GetBar(myAnchor.Time);
Print(myAnchor.Price +" " + x);
}
}
}
}

Comment