Skip to content

Commit

Permalink
Another bug in position flipping fixed.
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   Base/OANDA-PlaceOrder
  • Loading branch information
rapmd73 committed May 15, 2024
1 parent b238337 commit 8f251ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Base/OANDA-PlaceOrder
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def main():
else:
step=1

if relay.Order['Action']=='buy':
if relay.Order['Action']=='buy' and ((amount>0 and units>0) or (amount<0 and units<0)):
amount=LowestLotSize(relay,relay.Order['Asset'],amount,step)
elif 'Ticket' in relay.Order:
amount=GetTicket(relay,relay.Order['Asset'],relay.Order['Ticket'],amount)
Expand Down

0 comments on commit 8f251ae

Please sign in to comment.