Lean
$LEAN_TAG$
|
Represents an entire factor file for a specified symbol More...
Public Member Functions | |
abstract decimal | GetPriceFactor (DateTime searchDate, DataNormalizationMode dataNormalizationMode, DataMappingMode? dataMappingMode=null, uint contractOffset=0) |
Gets the price scale factor for the specified search date More... | |
IEnumerable< string > | GetFileFormat () |
Writes this factor file data to an enumerable of csv lines More... | |
void | WriteToFile (Symbol symbol) |
Write the factor file to the correct place in the default Data folder More... | |
IEnumerator< IFactorRow > | GetEnumerator () |
Returns an enumerator that iterates through the collection. More... | |
Public Attributes | |
DateTime | MostRecentFactorChange |
Gets the most recent factor change in the factor file More... | |
Protected Member Functions | |
FactorFile (string permtick, IEnumerable< T > data, DateTime? factorFileMinimumDate=null) | |
Initializes a new instance of the FactorFile<T> class. More... | |
Properties | |
List< DateTime > | ReversedFactorFileDates [get] |
Keeping a reversed version is more performant that reversing it each time we need it More... | |
SortedList< DateTime, List< T > > | SortedFactorFileData [get, set] |
The factor file data rows sorted by date More... | |
DateTime? | FactorFileMinimumDate [get, set] |
The minimum tradeable date for the symbol More... | |
string | Permtick [get] |
Gets the symbol this factor file represents More... | |
Properties inherited from QuantConnect.Data.Auxiliary.IFactorProvider | |
string | Permtick [get] |
Gets the symbol this factor file represents More... | |
DateTime? | FactorFileMinimumDate [get, set] |
The minimum tradeable date for the symbol More... | |
Represents an entire factor file for a specified symbol
T | : | IFactorRow |
Definition at line 29 of file FactorFile.cs.
|
protected |
Initializes a new instance of the FactorFile<T> class.
Definition at line 68 of file FactorFile.cs.
|
pure virtual |
Gets the price scale factor for the specified search date
Implements QuantConnect.Data.Auxiliary.IFactorProvider.
Implemented in QuantConnect.Data.Auxiliary.CorporateFactorProvider, and QuantConnect.Data.Auxiliary.MappingContractFactorProvider.
IEnumerable<string> QuantConnect.Data.Auxiliary.FactorFile< T >.GetFileFormat | ( | ) |
Writes this factor file data to an enumerable of csv lines
Definition at line 106 of file FactorFile.cs.
void QuantConnect.Data.Auxiliary.FactorFile< T >.WriteToFile | ( | Symbol | symbol | ) |
Write the factor file to the correct place in the default Data folder
symbol | The symbol this factor file represents |
Definition at line 115 of file FactorFile.cs.
IEnumerator<IFactorRow> QuantConnect.Data.Auxiliary.FactorFile< T >.GetEnumerator | ( | ) |
Returns an enumerator that iterates through the collection.
<filterpriority>1</filterpriority>
Definition at line 124 of file FactorFile.cs.
DateTime QuantConnect.Data.Auxiliary.FactorFile< T >.MostRecentFactorChange |
Gets the most recent factor change in the factor file
Definition at line 57 of file FactorFile.cs.
|
getprotected |
Keeping a reversed version is more performant that reversing it each time we need it
Definition at line 35 of file FactorFile.cs.
|
getset |
The factor file data rows sorted by date
Definition at line 40 of file FactorFile.cs.
|
getset |
The minimum tradeable date for the symbol
Some factor files have INF split values, indicating that the stock has so many splits that prices can't be calculated with correct numerical precision. To allow backtesting these symbols, we need to move the starting date forward when reading the data. Known symbols: GBSN, JUNI, NEWL
Definition at line 52 of file FactorFile.cs.
|
get |
Gets the symbol this factor file represents
Definition at line 63 of file FactorFile.cs.