The code that I have only creates the last added line and deletes the previous one.
protected override void OnBarUpdate()
{
if(cont>=_max){
levelChangeList.Add(LastPrice); // Add to a list the prices that meet a certain condition
}
if(levelChangeList.Count > 0){
for (int i = 0; i < levelChangeList.Count ; i++)
{
Draw.HorizontalLine(this, "tag1", levelChangeList[i], Brushes.Black); // what I need is that each price is printed in a continuous line and not erased.
// With this code the previous ones are deleted every time there is a new one.
// I need all the lines to be pushed all the time.
}
}
}
Comment