📦 SQA::StrategyGenerator::ProfitablePoint¶
Description
Represents a profitable trade opportunity discovered in historical data
🔨 Instance Methods¶
#entry_index()¶
Returns the value of attribute entry_index.
Source Location
#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
#entry_price()¶
Returns the value of attribute entry_price.
Source Location
#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
#exit_index()¶
Returns the value of attribute exit_index.
Source Location
#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
#exit_price()¶
Returns the value of attribute exit_price.
Source Location
#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
#gain_percent()¶
Returns the value of attribute gain_percent.
Source Location
#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
#holding_days()¶
Returns the value of attribute holding_days.
Source Location
#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
#indicators()¶
Returns the value of attribute indicators.
Source Location
#indicators=(value)¶
Sets the attribute indicators
Parameters
| Name | Type | Description |
|---|---|---|
value |
Any |
the value to set the attribute indicators to. |
Source Location
#fpl_min_delta()¶
Returns the value of attribute fpl_min_delta.
Source Location
#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
#fpl_max_delta()¶
Returns the value of attribute fpl_max_delta.
Source Location
#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
#fpl_risk()¶
Returns the value of attribute fpl_risk.
Source Location
#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
#fpl_direction()¶
Returns the value of attribute fpl_direction.
Source Location
#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
#fpl_magnitude()¶
Returns the value of attribute fpl_magnitude.
Source Location
#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
#initialize(entry_index:, entry_price:, exit_index:, exit_price:, fpl_data: = nil)¶
Returns
Type: ProfitablePoint
a new instance of ProfitablePoint
Source Location
#to_s()¶
Source Location
📝 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.