Skip to content

Instantly share code, notes, and snippets.

@mementum
Created July 22, 2019 22:08
Show Gist options
  • Save mementum/d310bacbf2ae8d4d7999176ecd222a34 to your computer and use it in GitHub Desktop.
Save mementum/d310bacbf2ae8d4d7999176ecd222a34 to your computer and use it in GitHub Desktop.
# issue a target order for the newly top ranked stocks
# do this last, as this will generate buy orders consuming cash
for d in rtop:
self.log('Enter {} - Rank {:.2f}'.format(d._name, rtop[d][0]))
self.order_target_percent(d, target=self.perctarget)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment