Fix missing return statement in calculate_position_size
This commit is contained in:
1 parent
30847aa237
commit
94a9a02962
1 file changed
+1
@@ -808,6 +808,7 @@ def calculate_position_size(equity, stop_loss, current_price):
|
||||
if position_value > max_position:
|
||||
position_value = max_position
|
||||
debug_print(f"Position capped at 25% equity: ${position_value:.2f}")
|
||||
return position_value
|
||||
|
||||
class ORFVGState:
|
||||
def __init__(self):
|
||||
|
||||
Reference in new issue
Block a user