public int SetFirstBar()
{
// Searches the indicators' components to determine the first bar.
firstBar = 0;
foreach (IndicatorSlot slot in indicatorSlot)
foreach (IndicatorComp comp in slot.Component)
if (comp.FirstBar > firstBar)
firstBar = comp.FirstBar;
return firstBar;
}