📦 SQA::StrategyGenerator::PatternContext¶
Description
Pattern Context - metadata about when/where pattern is valid
🔨 Instance Methods¶
#market_regime()¶
Returns the value of attribute market_regime.
Source Location
#market_regime=(value)¶
Sets the attribute market_regime
Parameters
| Name | Type | Description |
|---|---|---|
value |
Any |
the value to set the attribute market_regime to. |
Source Location
#valid_months()¶
Returns the value of attribute valid_months.
Source Location
#valid_months=(value)¶
Sets the attribute valid_months
Parameters
| Name | Type | Description |
|---|---|---|
value |
Any |
the value to set the attribute valid_months to. |
Source Location
#valid_quarters()¶
Returns the value of attribute valid_quarters.
Source Location
#valid_quarters=(value)¶
Sets the attribute valid_quarters
Parameters
| Name | Type | Description |
|---|---|---|
value |
Any |
the value to set the attribute valid_quarters to. |
Source Location
#discovered_period()¶
Returns the value of attribute discovered_period.
Source Location
#discovered_period=(value)¶
Sets the attribute discovered_period
Parameters
| Name | Type | Description |
|---|---|---|
value |
Any |
the value to set the attribute discovered_period to. |
Source Location
#validation_period()¶
Returns the value of attribute validation_period.
Source Location
#validation_period=(value)¶
Sets the attribute validation_period
Parameters
| Name | Type | Description |
|---|---|---|
value |
Any |
the value to set the attribute validation_period to. |
Source Location
#stability_score()¶
Returns the value of attribute stability_score.
Source Location
#stability_score=(value)¶
Sets the attribute stability_score
Parameters
| Name | Type | Description |
|---|---|---|
value |
Any |
the value to set the attribute stability_score to. |
Source Location
#sector()¶
Returns the value of attribute sector.
Source Location
#sector=(value)¶
Sets the attribute sector
Parameters
| Name | Type | Description |
|---|---|---|
value |
Any |
the value to set the attribute sector to. |
Source Location
#volatility_regime()¶
Returns the value of attribute volatility_regime.
Source Location
#volatility_regime=(value)¶
Sets the attribute volatility_regime
Parameters
| Name | Type | Description |
|---|---|---|
value |
Any |
the value to set the attribute volatility_regime to. |
Source Location
#initialize()¶
Returns
Type: PatternContext
a new instance of PatternContext
Source Location
#valid?()¶
Returns
Type: Boolean
Source Location
#summary()¶
Source Location
#valid_for?(date: = nil, regime: = nil, sector: = nil)¶
Check if pattern is valid for given date and conditions
Returns
Type: Boolean
Source Location
📝 Attributes¶
🔄 market_regime read/write¶
Returns the value of attribute market_regime.
🔄 valid_months read/write¶
Returns the value of attribute valid_months.
🔄 valid_quarters read/write¶
Returns the value of attribute valid_quarters.
🔄 discovered_period read/write¶
Returns the value of attribute discovered_period.
🔄 validation_period read/write¶
Returns the value of attribute validation_period.
🔄 stability_score read/write¶
Returns the value of attribute stability_score.
🔄 sector read/write¶
Returns the value of attribute sector.
🔄 volatility_regime read/write¶
Returns the value of attribute volatility_regime.