Alpha model that uses an EMA cross to create insights
More...
|
virtual string | Name [get, set] |
| Defines a name for a framework model More...
|
|
string | Name [get] |
| Defines a name for a framework model More...
|
|
Alpha model that uses an EMA cross to create insights
Definition at line 28 of file EmaCrossAlphaModel.cs.
◆ EmaCrossAlphaModel()
QuantConnect.Algorithm.Framework.Alphas.EmaCrossAlphaModel.EmaCrossAlphaModel |
( |
int |
fastPeriod = 12 , |
|
|
int |
slowPeriod = 26 , |
|
|
Resolution |
resolution = Resolution.Daily |
|
) |
| |
Initializes a new instance of the EmaCrossAlphaModel class
- Parameters
-
fastPeriod | The fast EMA period |
slowPeriod | The slow EMA period |
resolution | The resolution of data sent into the EMA indicators |
Definition at line 46 of file EmaCrossAlphaModel.cs.
◆ Update()
override IEnumerable<Insight> QuantConnect.Algorithm.Framework.Alphas.EmaCrossAlphaModel.Update |
( |
QCAlgorithm |
algorithm, |
|
|
Slice |
data |
|
) |
| |
|
virtual |
Updates this alpha model with the latest data from the algorithm. This is called each time the algorithm receives data for subscribed securities
- Parameters
-
algorithm | The algorithm instance |
data | The new data available |
- Returns
- The new insights generated
Reimplemented from QuantConnect.Algorithm.Framework.Alphas.AlphaModel.
Definition at line 67 of file EmaCrossAlphaModel.cs.
◆ OnSecuritiesChanged()
override void QuantConnect.Algorithm.Framework.Alphas.EmaCrossAlphaModel.OnSecuritiesChanged |
( |
QCAlgorithm |
algorithm, |
|
|
SecurityChanges |
changes |
|
) |
| |
|
virtual |
◆ SymbolDataBySymbol
readonly Dictionary<Symbol, SymbolData> QuantConnect.Algorithm.Framework.Alphas.EmaCrossAlphaModel.SymbolDataBySymbol |
|
protected |
The documentation for this class was generated from the following file: