Lean
$LEAN_TAG$
|
Defines the scores given to a particular insight More...
Public Member Functions | |
InsightScore () | |
Initializes a new, default instance of the InsightScore class More... | |
InsightScore (double direction, double magnitude, DateTime updatedTimeUtc) | |
Initializes a new instance of the InsightScore class More... | |
void | SetScore (InsightScoreType type, double value, DateTime algorithmUtcTime) |
Sets the specified score type with the value More... | |
void | Finalize (DateTime algorithmUtcTime) |
Marks the score as finalized, preventing any further updates. More... | |
double | GetScore (InsightScoreType type) |
Gets the specified score More... | |
override string | ToString () |
Returns a string that represents the current object. More... | |
Properties | |
DateTime | UpdatedTimeUtc [get] |
Gets the time these scores were last updated More... | |
double | Direction [get] |
Gets the direction score More... | |
double | Magnitude [get] |
Gets the magnitude score More... | |
bool | IsFinalScore [get] |
Gets whether or not this is the insight's final score More... | |
Defines the scores given to a particular insight
Definition at line 25 of file InsightScore.cs.
QuantConnect.Algorithm.Framework.Alphas.InsightScore.InsightScore | ( | ) |
Initializes a new, default instance of the InsightScore class
Definition at line 54 of file InsightScore.cs.
QuantConnect.Algorithm.Framework.Alphas.InsightScore.InsightScore | ( | double | direction, |
double | magnitude, | ||
DateTime | updatedTimeUtc | ||
) |
Initializes a new instance of the InsightScore class
direction | The insight direction score |
magnitude | The insight percent change score |
updatedTimeUtc | The algorithm utc time these scores were computed |
Definition at line 64 of file InsightScore.cs.
void QuantConnect.Algorithm.Framework.Alphas.InsightScore.SetScore | ( | InsightScoreType | type, |
double | value, | ||
DateTime | algorithmUtcTime | ||
) |
Sets the specified score type with the value
type | The score type to be set, Direction/Magnitude |
value | The new value for the score |
algorithmUtcTime | The algorithm's utc time at which time the new score was computed |
Definition at line 77 of file InsightScore.cs.
void QuantConnect.Algorithm.Framework.Alphas.InsightScore.Finalize | ( | DateTime | algorithmUtcTime | ) |
Marks the score as finalized, preventing any further updates.
algorithmUtcTime | The algorithm's utc time at which time these scores were finalized |
Definition at line 102 of file InsightScore.cs.
double QuantConnect.Algorithm.Framework.Alphas.InsightScore.GetScore | ( | InsightScoreType | type | ) |
Gets the specified score
type | The type of score to get, Direction/Magnitude |
Definition at line 113 of file InsightScore.cs.
override string QuantConnect.Algorithm.Framework.Alphas.InsightScore.ToString | ( | ) |
Returns a string that represents the current object.
<filterpriority>2</filterpriority>
Definition at line 131 of file InsightScore.cs.
|
get |
Gets the time these scores were last updated
Definition at line 31 of file InsightScore.cs.
|
get |
Gets the direction score
Definition at line 37 of file InsightScore.cs.
|
get |
Gets the magnitude score
Definition at line 43 of file InsightScore.cs.
|
get |
Gets whether or not this is the insight's final score
Definition at line 49 of file InsightScore.cs.