brndnmtthws/thetagang

Setting DTE per symbol in toml

Closed this issue · 4 comments

Hi,
I would like to set individual DTE per symbol, getting an error while setting DTE under symbols in TOML configuration.
is there any way to configure this?

Thanks !

Not currently possible, but this should be easy to add.

I can try.... do you want to assign it to me?

Sure thing!

As a hint to get started, take a look at how functions like get_target_delta() work. It should be as simple as copying that pattern and plugging it into places like this:

roll_when_dte = self.config["roll_when"]["dte"]
.

Done in PR #428