A histogram would not require that every plot be set. A line plot can only draw a line between two consecutive plots. If there aren't values set on every bar, the line will not appear because it does not have two or more points to connect.
Are you certain this plot is being set on every bar?
It seems it plots when there is a downtrend or an uptrend. What if there is neither?
If you print the value that you have set on every bar, does every bar have a -1 or 1?
if (Close[1][0] > SuperTrend(BarsArray[1],longuitud, multiplicador, true).UpTrend[0])
{
CalculatedValues.Set(1);
}
if (Close[1][0] < SuperTrend(BarsArray[1],longuitud, multiplicador, true).DownTrend[0])
{
CalculatedValues.Set(-1);
}
Print(CalculatedValues[0]);
Comment