About this template
"Wave Rider" for a couple reasons: 1) Hopefully this bot will allow you to ride the physical waves at the beach without worrying about that potential crash, 2) it's designed to ride the wave of the market in any direction, and harness the power of those waves for your benefit.
The scanner uses a simple gap direction and amount block, to decide which side to enter and how aggressively. Since the primary job of this bot is to make money in a crash, I allowed the aggressive downside path to open at any time of the day (the rest of the paths only fire through 1pm to avoid opening ahead of the common intraday reversal). This version also closes all positions at EOD, but that could easily be removed if desired.
Besides the different contract amounts for the conservative/aggressive paths, there's also the difference of allowing multiple positions. For the more conservative path, I only allow a new "double position" to be opened if there's no other short spread and only up to 1 long spread currently open. For the aggressive path, on the other hand, I allow sequential opens and only control that at the bot "Total Positions" level.
Strategy:
Sell DITM spreads, then buy OTM spreads for ~10% of the credit from the short spread, closing the short spread after you've captured most of the cost of the long spread. This will effectively make your long positions really cheap or even "free."