Skip to content

Commit

Permalink
added definition and implementation for volume get value when referen…
Browse files Browse the repository at this point in the history
…ced function
  • Loading branch information
jocon15 committed Jan 11, 2025
1 parent b7282cd commit 3271596
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/StockBench/indicators/volume/trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def add_to_data_from_rule_value(self, rule_value: str, side: str, data_manager:
# volume does not require any additional data to be added to the data
return

def get_value_when_referenced(self, rule_value: str, data_manager: DataManager, current_day_index,) -> float:
raise NotImplementedError('Volume cannot be referenced in a rule value')

def check_trigger(self, rule_key, rule_value, data_manager, position, current_day_index) -> bool:
"""Trigger logic for volume.
Expand Down

0 comments on commit 3271596

Please sign in to comment.