OnFundamentalData()
<< Click to Display Table of Contents >> OnFundamentalData() |
An event driven method which is called for every change in fundamental data for the underlying instrument.
Note: This method is NOT called on historical data (backtest) |
This method does not return a value.
protected override void OnFundamentalData(FundamentalDataEventArgs fundamentalDataUpdate)
{
}
Tip: The NinjaScript code wizards can automatically generate the method syntax for you when creating a new script. |
fundamentalDataUpdate |
FundamentalDataEventArgs representing the recent change in fundamental data |
protected override void OnFundamentalData(FundamentalDataEventArgs fundamentalDataUpdate) |
Tips 1.With multi-time frame and instrument strategies, OnFundamentalData() will be called for all unique instruments in your strategy. Use the BarsInProgress to filter the OnFundamentalData() method for a specific instrument. 2.Do not leave an unused OnFundamentalData() method declared in your NinjaScript object. This will unnecessarily attach a data stream to your script which uses unnecessary CPU cycles. |