Skip to content

📦 SQA::StrategyGenerator::ProfitablePoint

Description

Represents a profitable trade opportunity discovered in historical data

Source Information

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

Inherits from: Object

🔨 Instance Methods

#entry_index()

Returns the value of attribute entry_index.

Source Location

lib/sqa/strategy_generator.rb:39


#entry_index=(value)

Sets the attribute entry_index

Parameters

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

lib/sqa/strategy_generator.rb:39


#entry_price()

Returns the value of attribute entry_price.

Source Location

lib/sqa/strategy_generator.rb:39


#entry_price=(value)

Sets the attribute entry_price

Parameters

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

lib/sqa/strategy_generator.rb:39


#exit_index()

Returns the value of attribute exit_index.

Source Location

lib/sqa/strategy_generator.rb:39


#exit_index=(value)

Sets the attribute exit_index

Parameters

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

lib/sqa/strategy_generator.rb:39


#exit_price()

Returns the value of attribute exit_price.

Source Location

lib/sqa/strategy_generator.rb:39


#exit_price=(value)

Sets the attribute exit_price

Parameters

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

lib/sqa/strategy_generator.rb:39


#gain_percent()

Returns the value of attribute gain_percent.

Source Location

lib/sqa/strategy_generator.rb:39


#gain_percent=(value)

Sets the attribute gain_percent

Parameters

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

lib/sqa/strategy_generator.rb:39


#holding_days()

Returns the value of attribute holding_days.

Source Location

lib/sqa/strategy_generator.rb:39


#holding_days=(value)

Sets the attribute holding_days

Parameters

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

lib/sqa/strategy_generator.rb:39


#indicators()

Returns the value of attribute indicators.

Source Location

lib/sqa/strategy_generator.rb:39


#indicators=(value)

Sets the attribute indicators

Parameters

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

lib/sqa/strategy_generator.rb:39


#fpl_min_delta()

Returns the value of attribute fpl_min_delta.

Source Location

lib/sqa/strategy_generator.rb:39


#fpl_min_delta=(value)

Sets the attribute fpl_min_delta

Parameters

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

lib/sqa/strategy_generator.rb:39


#fpl_max_delta()

Returns the value of attribute fpl_max_delta.

Source Location

lib/sqa/strategy_generator.rb:39


#fpl_max_delta=(value)

Sets the attribute fpl_max_delta

Parameters

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

lib/sqa/strategy_generator.rb:39


#fpl_risk()

Returns the value of attribute fpl_risk.

Source Location

lib/sqa/strategy_generator.rb:39


#fpl_risk=(value)

Sets the attribute fpl_risk

Parameters

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

lib/sqa/strategy_generator.rb:39


#fpl_direction()

Returns the value of attribute fpl_direction.

Source Location

lib/sqa/strategy_generator.rb:39


#fpl_direction=(value)

Sets the attribute fpl_direction

Parameters

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

lib/sqa/strategy_generator.rb:39


#fpl_magnitude()

Returns the value of attribute fpl_magnitude.

Source Location

lib/sqa/strategy_generator.rb:39


#fpl_magnitude=(value)

Sets the attribute fpl_magnitude

Parameters

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

lib/sqa/strategy_generator.rb:39


#initialize(entry_index:, entry_price:, exit_index:, exit_price:, fpl_data: = nil)

Returns

Type: ProfitablePoint

a new instance of ProfitablePoint

Source Location

lib/sqa/strategy_generator.rb:43


#to_s()

Source Location

lib/sqa/strategy_generator.rb:62


📝 Attributes

🔄 entry_index read/write

Returns the value of attribute entry_index.

🔄 entry_price read/write

Returns the value of attribute entry_price.

🔄 exit_index read/write

Returns the value of attribute exit_index.

🔄 exit_price read/write

Returns the value of attribute exit_price.

🔄 gain_percent read/write

Returns the value of attribute gain_percent.

🔄 holding_days read/write

Returns the value of attribute holding_days.

🔄 indicators read/write

Returns the value of attribute indicators.

🔄 fpl_min_delta read/write

Returns the value of attribute fpl_min_delta.

🔄 fpl_max_delta read/write

Returns the value of attribute fpl_max_delta.

🔄 fpl_risk read/write

Returns the value of attribute fpl_risk.

🔄 fpl_direction read/write

Returns the value of attribute fpl_direction.

🔄 fpl_magnitude read/write

Returns the value of attribute fpl_magnitude.