Hi everyone,

Still new and still learning! I'm working my way through a backtest right now where I sell puts only when the VIXRank is higher than 25%,. I set my initial cash to 100k however it seems like I can make ridiculous orders such as selling 200 SPY put contracts, am I missing something or is this not supposed to be possible?

I've implemented the example brokerage model from github as I thought it would prevent an order if my buying power went to 0 but supposedly it is not doing that?

 

Author