About this template
I created this bot a while ago just to test an idea that I had. I don't have a backtest for it but it has paper traded pretty consistently since inception almost 6 months ago. Slow and steady uptrend. It's a KISS bot at heart. I've been running it on SPY but you can change the ticker if you want.
Allocation:
I started this bot with a $3000 allocation. It rarely exceeds 50-60% of allocation.
Entry:
Everyday at noon, open a new 7 DTE position. 1 contract (customizable).
If the ticker has increased 0.2% (customizable), open a SPS. Default set to -0.25 delta short leg, $5 wide wing (customizable).
Else, if the ticker has decreased 0.2% (customizable), open a SCS. Default set to 0.25 delta short leg, $5 wide wing (customizable).
Else, open an IC. Default set to +/-0.15 delta short legs, $5 wide wings (customizable).
Updated Monitor to use Exit Options
Exiting Positions:
All values are customizable by setting the corresponding Exit Options, but these are the defaults.
Profit Taking:
-Accelerated PT: Close positions that reach 50% profit if open for Accelerated PT Days Open market day or less (default is 1 market day).
-PT High: Close positions at 75% profit if expiration is more than Reduced PT 1 DTE market days away (default is 2 market days). Uses a trail of 60%/15%, trail turns off below 45%.
If position return is below PT Nearing Expiration (%) (default is 45%),
-Reduced PT 1: Close positions at 40% if expiration is Reduced PT 1 DTE market days away or less (default is 3 market days).
-Reduced PT 2: Close positions at 25% if expiration is Reduced PT 2 DTE market days away or less (default is 2 market days).
-PT Low: Close positions at 5% if expiration is PT Low DTE market day away or less (default is 1 market days).
Stop Loss:
The monitor has 2 toggles to control stop loss exits. One continuously checks for stop conditions (stop loss and breached strikes); the other only checks at the EOD (at 3:30 pm and after). Here are the default values.
-Close positions at 200% stop loss if expiration is 1 market day away or less at EOD.
-Close positions if short strike is breached and expiration is 1 market day away or less at EOD.
At Expiration:
The bot will attempt to close positions at 3:30 pm and after on expiration day, if:
-Position return is < PT Expiration Close @ EOD (%) (default is 75%) OR
-Short leg chance of ITM is > Chance of ITM Expiration Close @ EOD (%) (default is 15%) OR
-Short leg OTM amount is < OTM Expiration Close @ EOD ($) (default is $2)
PDT:
This is a PDT safe bot (make sure Exit Options are set accordingly).
Performance:
Updated 9/16/23