Skip to content

Commit

Permalink
More bugs fixed...
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   Base/Library/CONDoanda.py
  • Loading branch information
rapmd73 committed Aug 21, 2024
1 parent a43628b commit e55e262
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Base/Library/CONDoanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e55e262

Please sign in to comment.