Skip to content

📦 SQA::StrategyGenerator::PatternContext

Description

Pattern Context - metadata about when/where pattern is valid

Source Information

Defined in: lib/sqa/strategy_generator.rb:91

Inherits from: Object

🔨 Instance Methods

#market_regime()

Returns the value of attribute market_regime.

Source Location

lib/sqa/strategy_generator.rb:92


#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

lib/sqa/strategy_generator.rb:92


#valid_months()

Returns the value of attribute valid_months.

Source Location

lib/sqa/strategy_generator.rb:92


#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

lib/sqa/strategy_generator.rb:92


#valid_quarters()

Returns the value of attribute valid_quarters.

Source Location

lib/sqa/strategy_generator.rb:92


#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

lib/sqa/strategy_generator.rb:92


#discovered_period()

Returns the value of attribute discovered_period.

Source Location

lib/sqa/strategy_generator.rb:92


#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

lib/sqa/strategy_generator.rb:92


#validation_period()

Returns the value of attribute validation_period.

Source Location

lib/sqa/strategy_generator.rb:92


#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

lib/sqa/strategy_generator.rb:92


#stability_score()

Returns the value of attribute stability_score.

Source Location

lib/sqa/strategy_generator.rb:92


#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

lib/sqa/strategy_generator.rb:92


#sector()

Returns the value of attribute sector.

Source Location

lib/sqa/strategy_generator.rb:92


#sector=(value)

Sets the attribute sector

Parameters

Name Type Description
value Any the value to set the attribute sector to.
Source Location

lib/sqa/strategy_generator.rb:92


#volatility_regime()

Returns the value of attribute volatility_regime.

Source Location

lib/sqa/strategy_generator.rb:92


#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

lib/sqa/strategy_generator.rb:92


#initialize()

Returns

Type: PatternContext

a new instance of PatternContext

Source Location

lib/sqa/strategy_generator.rb:96


#valid?()

Returns

Type: Boolean

Source Location

lib/sqa/strategy_generator.rb:107


#summary()

Source Location

lib/sqa/strategy_generator.rb:111


#valid_for?(date: = nil, regime: = nil, sector: = nil)

Check if pattern is valid for given date and conditions

Returns

Type: Boolean

Source Location

lib/sqa/strategy_generator.rb:121


📝 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.