Hi,

Brand new to this. I'm looking for a few code snippets to get me pointed in the right direction. I went through the boot camp already, but I'm still feeling unclear about how the system works overall.

As a basic setup to get started on my ideas, I'd like to see if something like this is accomplishable:

1: Create a universe of, say, 5 stocks using coarse & fine filtering (any arbitrary filter will work for now)

2: Invest evenly between those stocks

3: Hold on to those stocks until it increases or decreases by a certain amount (say 10% in either direction)

4: Sell that stock and re-invest in a new stock provided by the universe

 

I've looked at some universe samples available here, so I can accomplish items 1 and 2, but I have no idea where to get started with items 3 & 4. Any help would be greatly appreciated!

As a starting point, you can reference the sample provided by Micheal at this link

Thanks in advance!

Author