About this template
This is my first bot, so of course I wanted to try to make a synthetic backratio spread which is itself a synthetic long stock position. It should always sell a monthly at least 30 DTE with delta .70/.50 debit spread and a matching .70 delta long call of the same quantity. Typically, this results in 2 positions total at all times.
It will try to open the debit spread first with 33% of its available net liquid value before opening the long call position. In future versions, I'd like to make this some kind of input or controlled variable balancing the two positions to get closer to full allocation. Right now, there could definitely be a poor fit or even an error trying to setup the contract qty.
Closing the open position manually using the event button would result in it opening a new position at the next scanning. Otherwise, it should just do so at the first check when there's less than 15 DTE. I haven't actually watched it do that yet.
There is an input variable for underlying security, and I was thinking on a 1 bot per position sort of arrangement. I have a few going to try out different scenarios.