{"action":"closed","issue":{"url":"https://api.github.com/repos/mementum/backtrader/issues/134","repository_url":"https://api.github.com/repos/mementum/backtrader","labels_url":"https://api.github.com/repos/mementum/backtrader/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/mementum/backtrader/issues/134/comments","events_url":"https://api.github.com/repos/mementum/backtrader/issues/134/events","html_url":"https://github.com/mementum/backtrader/issues/134","id":173921703,"number":134,"title":"[request] Sizer for portfolio rebalancing","user":{"login":"cnimativ","id":4794839,"avatar_url":"https://avatars.githubusercontent.com/u/4794839?v=3","gravatar_id":"","url":"https://api.github.com/users/cnimativ","html_url":"https://github.com/cnimativ","followers_url":"https://api.github.com/users/cnimativ/followers","following_url":"https://api.github.com/users/cnimativ/following{/other_user}","gists_url":"https://api.github.com/users/cnimativ/gists{/gist_id}","starred_url":"https://api.github.com/users/cnimativ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnimativ/subscriptions","organizations_url":"https://api.github.com/users/cnimativ/orgs","repos_url":"https://api.github.com/users/cnimativ/repos","events_url":"https://api.github.com/users/cnimativ/events{/privacy}","received_events_url":"https://api.github.com/users/cnimativ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mementum/backtrader/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/mementum/backtrader/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-30T03:24:03Z","updated_at":"2016-09-02T07:31:00Z","closed_at":"2016-09-02T07:31:00Z","body":"Dro,\r\n\r\nLooking at the sizer portion of the documentation, what is the best way to implement a periodic rebalancing algorithm; i.e., say, periodic dividend reinvestment, or rolling the whole portfolio from SPY+QQQ into TLT+GLD?\r\n\r\nFor Quantopian/Zipline, there's a function `order_target_percent`.  What would be the equivalent on backtrader?\r\n\r\nThanks again for the great work!\r\n\r\nHCL\r\n\r\n"}}
{"actor":{"display_login":"mementum"}}