From e55e262dda3cdb810a6af45c2d4a077986038bd9 Mon Sep 17 00:00:00 2001 From: Rose Heart Date: Wed, 21 Aug 2024 19:12:31 +0000 Subject: [PATCH] More bugs fixed... Changes to be committed: modified: Base/Library/CONDoanda.py --- Base/Library/CONDoanda.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Base/Library/CONDoanda.py b/Base/Library/CONDoanda.py index 01d8979..1411f7a 100755 --- a/Base/Library/CONDoanda.py +++ b/Base/Library/CONDoanda.py @@ -255,8 +255,7 @@ def OrderProcessor(Orphan): MarginStrike=False if float(relay.Broker.Summary['account']['marginAvailable'])<=0: oldestTrade=GetOldestTrade(relay,relay.Order['Asset']) - relay.JRLog.Write(f"{id} -> {cid}: {json.dumps(oldest)}",stdOut=False) - if oldestTrade!=None and oldestTrade['ID']==cid: + if oldestTrade!=None and oldestTrade['id']==cid: MarginStrike=True # Manage average and close extire position