Skip to content

📦 SQA::StrategyGenerator::Pattern

Description

Represents a discovered indicator pattern

Source Information

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

Inherits from: Object

🔨 Instance Methods

#conditions()

Returns the value of attribute conditions.

Source Location

lib/sqa/strategy_generator.rb:70


#conditions=(value)

Sets the attribute conditions

Parameters

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

lib/sqa/strategy_generator.rb:70


#frequency()

Returns the value of attribute frequency.

Source Location

lib/sqa/strategy_generator.rb:70


#frequency=(value)

Sets the attribute frequency

Parameters

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

lib/sqa/strategy_generator.rb:70


#avg_gain()

Returns the value of attribute avg_gain.

Source Location

lib/sqa/strategy_generator.rb:70


#avg_gain=(value)

Sets the attribute avg_gain

Parameters

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

lib/sqa/strategy_generator.rb:70


#avg_holding_days()

Returns the value of attribute avg_holding_days.

Source Location

lib/sqa/strategy_generator.rb:70


#avg_holding_days=(value)

Sets the attribute avg_holding_days

Parameters

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

lib/sqa/strategy_generator.rb:70


#success_rate()

Returns the value of attribute success_rate.

Source Location

lib/sqa/strategy_generator.rb:70


#success_rate=(value)

Sets the attribute success_rate

Parameters

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

lib/sqa/strategy_generator.rb:70


#occurrences()

Returns the value of attribute occurrences.

Source Location

lib/sqa/strategy_generator.rb:70


#occurrences=(value)

Sets the attribute occurrences

Parameters

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

lib/sqa/strategy_generator.rb:70


#context()

Returns the value of attribute context.

Source Location

lib/sqa/strategy_generator.rb:70


#context=(value)

Sets the attribute context

Parameters

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

lib/sqa/strategy_generator.rb:70


#initialize(conditions: = {})

Returns

Type: Pattern

a new instance of Pattern

Source Location

lib/sqa/strategy_generator.rb:74


#to_s()

Source Location

lib/sqa/strategy_generator.rb:84


📝 Attributes

🔄 conditions read/write

Returns the value of attribute conditions.

🔄 frequency read/write

Returns the value of attribute frequency.

🔄 avg_gain read/write

Returns the value of attribute avg_gain.

🔄 avg_holding_days read/write

Returns the value of attribute avg_holding_days.

🔄 success_rate read/write

Returns the value of attribute success_rate.

🔄 occurrences read/write

Returns the value of attribute occurrences.

🔄 context read/write

Returns the value of attribute context.