Skip to content

Commit

Permalink
Update variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaveiga committed Sep 27, 2024
1 parent c4c8d57 commit 7f5928f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions optionlab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
Inputs,
OptionType,
OptionInfo,
OptionStrategy,
Option,
Outputs,
ClosedPosition,
ProbabilityOfProfitArrayInputs,
ProbabilityOfProfitInputs,
BlackScholesInfo,
Distribution,
Strategy,
StrategyLeg,
StrategyType,
StockStrategy,
Stock,
Country,
Action,
)
Expand Down
2 changes: 1 addition & 1 deletion optionlab/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def _run(data: EngineData) -> EngineData:
data.profit_target_probability = get_pop(data._profit_target_range, pop_inputs)

if inputs.loss_limit is not None:
data._loss_limit_rangesm = get_profit_range(
data._loss_limit_ranges = get_profit_range(
data.stock_price_array, data.strategy_profit, inputs.loss_limit + 0.01
)
data.loss_limit_probability = 1.0 - get_pop(data._loss_limit_ranges, pop_inputs)
Expand Down

0 comments on commit 7f5928f

Please sign in to comment.