NinjaScript > Language Reference > Data >

FundamentalDataEventArgs

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Represents a change in fundamental data and is passed as a parameter in the OnFundamentalData() method.
 

Methods and Parameters

DateTimeValue

A DateTime structure representing the time

DoubleValue

A double value representing fundamental data

FundamentalDataType

Possible values:

 

AverageDailyVolume

Beta

CalendarYearHigh

CalendarYearHighDate

CalendarYearLow

CalendarYearLowDate

CurrentYearsEarningsPerShare

FiveYearsGrowthPercentage

High52Weeks

High52WeeksDate

HistoricalVolatility

Low52Weeks

Low52WeeksDate

NextYearsEarningsPerShare

PercentHeldByInstitutions

PriceEarningsRatio

SharesOutstanding

LongValue

A long value representing fundamental data

ToString()

A string representation of the FundamentalDataEventArgs object

 

 
Examples

protected override void OnFundamentalData(FundamentalDataEventArgs e)
{
    // Print some data to the Output window
    if (e.FundamentalDataType == FundamentalDataType.AverageDailyVolume)
         Print("Average Daily Volume = " + e.LongValue);
    else if (e.FundamentalDataType == FundamentalDataType.PriceEarningsRatio)
         Print("P/E Ratio = " + e.DoubleValue);
}

 
Tips

1.Not all connectivity providers support all FundamentalDataTypes.