function CEL_OnTimedBarsInserted(Source, EventID, cqg_timed_bars, index_, varargin)

global m_CEL;

try    
    
    RefreshTimedBars(cqg_timed_bars, index_);
    
    % Uncomment the next line to display the TimedBars or comment to hide them
    DisplayTimedBars(['Index ' num2str(index_ + 1) ' of symbol "' upper(cqg_timed_bars.Request.Symbol) '" was Inserted at ' m_CEL.Environment.LineTime]);
    
catch
    CEL_ShutDown;
    disp('An error occurred in CEL_OnTimedBarsInserted.m file.');
end