feat: increase risk per trade from 1% to 5%

This commit is contained in:
pie
2026-06-01 16:30:47 +01:00
parent 6010f66323
commit 143cdcd976
3 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -82,7 +82,7 @@ def run_ticker_lifecycle(client, yf_ticker, t212_ticker, tz, num_tickers):
logger.info(f"Bot thread started for {yf_ticker} ({t212_ticker}).")
# Initialize variables outside the retry loop to prevent UnboundLocalError
risk_share = 2.50 / num_tickers
risk_share = 12.50 / num_tickers
capital_share = 250.0 / num_tickers
try:
@@ -127,7 +127,8 @@ def run_ticker_lifecycle(client, yf_ticker, t212_ticker, tz, num_tickers):
actual_balance = float(account_info.get('totalValue', 5000.0))
virtual_balance = max(0, actual_balance - 4750.0)
risk_share = (virtual_balance * 0.01) / num_tickers
# Risk 5% of this adjusted virtual balance
risk_share = (virtual_balance * 0.05) / num_tickers
capital_share = virtual_balance / num_tickers
logger.info(f"Account: {actual_balance:.2f} | Virtual: {virtual_balance:.2f} | Share: {capital_share:.2f}")