Skip to content

Enhance position sizing and stock selection #39

Description

@gzls90

First of all, very cool project. When i launched on my paper trading account, i noticed few things that i would like to improve:

  1. Position perc. cap and cash balance is hardcoded in few places as is 10%, no easy way to change it as parameter
  2. Position is always selected as max, no position handling logic, maybe some proportional parameter based on VIX, buy - sell distance (Kelly Criterion) and etc would be better? I understand this (position sizing) could be separate topic by itself, so at least global parametrization (as described in 1. ) to change it during run-time could be helpful functionality IMO
  3. In trading_client.py there is a loop for ticker in ndaq_tickers: now i have noticed it has bias in cases where are many buy options: few first stocks fill up whole portfolio budget (due to 10%) and it becomes biased as looping over same sorted ndaq_tickers means first stocks will always eat up all budget and last ones in the list will rarely be bought, i would suggest: 1) either do buy/sell selection after looping through all tickers and sorting by buy-sell (for buy) or sell-buy (for sell) gap, that way guaranteeing best selections to be prioritized first; 2) or more simpler but maybe less optimal - just shuffle ndaq_tickers list before looping, this will bring diversity in stock selection every time. I believe 1) option would be more efficient if we trust that larger buy-sell gap means better probability of success.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions