brndnmtthws / thetagang

ThetaGang is an IBKR bot for collecting money
GNU Affero General Public License v3.0
1.89k stars 248 forks source link

Position not rolled - conditions met #387

Closed robby28-11 closed 3 months ago

robby28-11 commented 3 months ago

Currently have a position that is just ITM but with a positive P&L. Still not beeing rolled.

│ │ Roll options when │ │ │ either condition is │ │ │ true │ │ │ Days to expiry <= 15 and P&L >= 0.0 │ │ │ (0%)


SBUX │ │ │ │ │ │ │ │ │ │ │ │ │ │ │P │ -1 │$0.85 │$0.93 │ $-85 │$-93 │ $8 │9.0% │$92.… │202… │ 3 │✔️ │ └──────┴──┴────┴──────┴──────┴──────┴─────┴──────┴─────┴──────┴─────┴────┴─────┘


0 puts can be rolled

Full log in the attachment.

SBUX_NoRoll.txt

brndnmtthws commented 3 months ago

Set roll_when.puts.itm = true. See:

https://github.com/brndnmtthws/thetagang/blob/cdea558ce00ca5a1de95f282ca59bfb742638b76/thetagang.toml#L165-L167

By default, it won't roll an ITM put.

robby28-11 commented 3 months ago

Sorry, my bad.

Now it is working of course.