Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify write thresholds as sigma #319

Merged
merged 1 commit into from Oct 1, 2023
Merged

Conversation

brndnmtthws
Copy link
Owner

Rather than specifying the writing thresholds as a percentage of price, we can use historical data to calculate standard deviation, and then express the threshold in terms of sigma (i.e., relative to the standard deviation).

For example, with write_threshold_sigma = 1.0, we'll write contracts when the daily change is more (or less) than 1 times the daily standard deviation for the last 30 days.

The amount of history used to compute the stddev can be altered using the constants.daily_stddev_window setting. Refer to thetagang.toml for more details.

Rather than specifying the writing thresholds as a percentage of price,
we can use historical data to calculate standard deviation, and then
express the threshold in terms of sigma (i.e., relative to the standard
deviation).

For example, with `write_threshold_sigma = 1.0`, we'll write contracts
when the daily change is more (or less) than 1 times the daily standard
deviation for the last 30 days.

The amount of history used to compute the stddev can be altered using
the `constants.daily_stddev_window` setting. Refer to thetagang.toml for
more details.
@brndnmtthws brndnmtthws merged commit 4e57774 into main Oct 1, 2023
7 checks passed
@brndnmtthws brndnmtthws deleted the sigma-based-thresholds branch October 1, 2023 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant