We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8aa3f0f commit 81f4f76Copy full SHA for 81f4f76
1 file changed
tests/test_core/test_risk.py
@@ -2,7 +2,7 @@
2
import pandas as pd
3
from src.risk_manager import RiskManager
4
5
-def test_risk_buy_logic(mock_uptrend):
+def test_risk_buy_logic(market_uptrend):
6
"""Verifica calcolo Size e Stop Loss per un ordine BUY."""
7
rm = RiskManager(risk_per_trade=0.02, stop_atr_multiplier=2.0)
8
@@ -36,7 +36,7 @@ def test_risk_buy_logic(mock_uptrend):
36
assert order['stop_loss'] == 90.0 # 100 - 10
37
assert order['take_profit'] == 120.0 # 100 + (10 * 2) Default 2R
38
39
-def test_risk_contract_compliance(mock_uptrend):
+def test_risk_contract_compliance(market_uptrend):
40
"""Verifica che l'ordine rispetti il CONTRATTO (Schema Validation)."""
41
rm = RiskManager()
42
0 commit comments