We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
👀 Some source code analysis tools can help to find opportunities for improving software components. 💭 I propose to increase the usage of augmented assignment statements accordingly.
diff --git a/examples/martingale.py b/examples/martingale.py index dcbcf7a..f4ffcfa 100644 --- a/examples/martingale.py +++ b/examples/martingale.py @@ -176,7 +176,7 @@ class MartingaleTrader(object): target_value = total_buying_power - self.last_price target_qty = int(target_value / self.last_price) if self.streak_increasing: - target_qty = target_qty * -1 + target_qty *= -1 self.send_order(target_qty) # Update our account balance self.equity = float(self.api.get_account().equity)
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there an existing issue for this?
Is your feature request related to a problem? Please describe.
👀 Some source code analysis tools can help to find opportunities for improving software components.
💭 I propose to increase the usage of augmented assignment statements accordingly.
Describe the solution you'd like.
Describe an alternate solution.
No response
Anything else? (Additional Context)
No response
The text was updated successfully, but these errors were encountered: