Update mt5-xau-lstm-ppo-stoch-adx-bot.py

This commit is contained in:
Vittus Mikiassen
2026-06-07 18:58:34 +02:00
committed by GitHub
parent 9b6b3dd93e
commit ce44dae018
+14 -12
View File
@@ -1116,16 +1116,16 @@ def train_bot(df, symbol="XAUUSD"):
print("================================================")
print(f"[{symbol}] WEEKLY PPO TRAINING")
print("================================================")
print(f"Trades: {len(trade_returns)}")
print(f"Weekly PnL: {weekly_pnl:.2f} pips")
print(f"Winrate: {winrate*100:.2f}%")
print(f"Mean Win: {mean_win:.2f} pips")
print(f"Mean Loss: {mean_loss:.2f} pips")
print(f"Max DD: {max_dd:.2f} pips")
print(f"PF: {profit_factor:.2f}")
print(f"R profit: {R_pnl:.2f}")
print(f"Sharpe: {sharpe:.2f}")
print(f"Sortino: {sortino:.2f}")
print(f"Trades: {len(trade_returns)}")
print(f"Weekly PnL: {weekly_pnl/4:.2f} pips")
print(f"Winrate: {winrate*100:.2f}%")
print(f"Mean Win: {mean_win*4:.2f} pips")
print(f"Mean Loss: {mean_loss*4:.2f} pips")
print(f"Max DD: {max_dd/(SL_PIPS*4):.2f}R")
print(f"PF: {profit_factor:.2f}")
print(f"Weekly R profit: {R_pnl:.2f}")
print(f"Sharpe: {sharpe:.2f}")
print(f"Sortino: {sortino:.2f}")
print("================================================")
print()
@@ -1551,7 +1551,9 @@ def test_bot(symbol="XAUUSD"):
f"[{symbol}] PPO HOLD"
)
time.sleep(10)
now = datetime.now()
sleep_seconds = 60 - now.second - now.microsecond / 1_000_000
time.sleep(sleep_seconds)
def main():
@@ -1563,4 +1565,4 @@ def main():
train_bot(df, "XAUUSD")
main()
main()