Created
July 22, 2019 22:08
-
-
Save mementum/ea28bae7c98003491ea54cf0f4c9c007 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rebalance those already top ranked and still there | |
for d in (d for d in posdata if d in rtop): | |
self.log('Rebal {} - Rank {:.2f}'.format(d._name, rtop[d][0])) | |
self.order_target_percent(d, target=self.perctarget) | |
del rtop[d] # remove it, to simplify next iteration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment