FundamentalDataEventArgs

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > OnFundamentalData() >

FundamentalDataEventArgs

Previous page Return to chapter overview Next 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

CurrentRatio

DividendAmount

DividendPayDate

DividendYield

EarningsPerShare

FiveYearsGrowthPercentage

High52Weeks

High52WeeksDate

HistoricalVolatility

Low52Weeks

Low52WeeksDate

MarketCap

NextYearsEarningsPerShare

PercentHeldByInstitutions

PriceEarningsRatio

RevenuePerShare

SharesOutstanding

ShortInterest

ShortInterestRatio

VWAP

LongValue

A long value representing fundamental data

ToString()

A string representation of the FundamentalDataEventArgs object

 

Examples

ns


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

 
Tips

1.Not all connectivity providers support all FundamentalDataTypes.
2.EarningsPerShare on eSignal is a trailing twelve months value. On IQFeed it is the last quarter's value.
3.RevenuePerShare is a trailing twelve months value.