Hi, 

Is there a way to create a simple algo that do the following:

- buy 95% of the portfolio in SPY
- buy 5% of the portfolio in VXX (or VXXB)

Rebalance VXX on a daily basis to keep the 5% ratio.

It is my firts algo trading experience, any help would be greatly appreciated.

Thank you,

Author