function CEL_OnTimedBarsAdded(Source, EventID, cqg_timed_bars, varargin)

global m_CEL;

try

    for i = 0:cqg_timed_bars.Count - 1

        RefreshTimedBars(cqg_timed_bars, i);

    end

    % Uncomment the next line to display the TimedBars or comment to hide them.
    DisplayTimedBars(['New TimedBar was Added to symbol "' upper(cqg_timed_bars.Request.Symbol) '" at ' m_CEL.Environment.LineTime]);
    
catch
    CEL_ShutDown;
    disp('An error occurred in CEL_OnTimedBarsAdded.m file.');
end