EarningsPerShareTTM ( Symbol symbol, int fiscalPeriod);
symbol: current symbol
EarningsPerShareTTM function returns the value of trailing 12-month earnings per share for the specified symbol. The trailing 12-month earnings per share is calculated as the ratio of company's profit to the number of its outstanding shares of common stock over the last 12 months. By default, the value is returned for the currently selected symbol and based on the annual reporting data. To specify a different symbol for this function, modify the value of the
symbol input parameter. To use quarterly data instead of annual, assign the
fiscalPeriod.QUARTER constant to the
fiscalPeriod input parameter.