Skip to content
New issue

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

Trailing Stop Losses Not working #22

Open
Vampirebat opened this issue May 24, 2020 · 0 comments
Open

Trailing Stop Losses Not working #22

Vampirebat opened this issue May 24, 2020 · 0 comments

Comments

@Vampirebat
Copy link

I cant get the trailing stop loss to work in any order, either when i make the order or even to modify an order... some of the errors i get are.

raceback (most recent call last):
File "/home/vamp/opt/v20-python-samples/env/bin/v20-order-stop-loss", line 11, in
load_entry_point('v20-python-samples', 'console_scripts', 'v20-order-stop-loss')()
File "/home/vamp/opt/v20-python-samples/src/order/stop_loss.py", line 47, in main
orderArgs.parse_arguments(args)
File "/home/vamp/opt/v20-python-samples/src/order/args.py", line 54, in parse_arguments
parser(args)
File "/home/vamp/opt/v20-python-samples/src/order/args.py", line 67, in
lambda args: self.parse_trade_id(args)
File "/home/vamp/opt/v20-python-samples/src/order/args.py", line 75, in parse_trade_id
if args.trade.id[0] == '@':
AttributeError: 'Namespace' object has no attribute 'trade'

everything has been working fine, just not trailing stop losses, any help would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant