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

[GPT] enable historical signals fetch #1089

Merged
merged 7 commits into from
Oct 27, 2023
Merged

[GPT] enable historical signals fetch #1089

merged 7 commits into from
Oct 27, 2023

Conversation

GuillaumeDSM
Copy link
Member

@GuillaumeDSM GuillaumeDSM requested a review from Herklos October 25, 2023 21:26
@GuillaumeDSM GuillaumeDSM self-assigned this Oct 25, 2023
@GuillaumeDSM GuillaumeDSM changed the title [GPT] enable historical signals fetch WIP [GPT] enable historical signals fetch Oct 25, 2023
def get_version(self):
# later on, identify by its specs
# return f"{self.gpt_model}-{self.source}-{self.indicator}-{self.period}-{self.GLOBAL_VERSION}"
return "0.0.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why the version should contains all these data and not just a number (here GLOBAL_VERISON)

Comment on lines 114 to 118
self.max_confidence_threshold = self.UI.user_input(
"max_confidence_threshold", enums.UserInputTypes.INT,
self.max_confidence_threshold, inputs, min_val=0, max_val=100,
title="Maximum confidence threshold: % confidence value starting from which to return 1 or -1."
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be a min confidence value ?

return self._get_signal_from_stored_signals(exchange, symbol, time_frame, version, candle_open_time)
if self.use_stored_signals_only():
return await self._fetch_signal_from_stored_signals(exchange, symbol, time_frame, version, candle_open_time)
return await self._get_signal_from_gpt(messages, model, max_tokens, n, stop, temperature)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines 217 to 219
def _get_open_candle_timestamp(self, time_frame: commons_enums.TimeFrames, base_timestamp: float):
tf_seconds = commons_enums.TimeFramesMinutes[time_frame] * commons_constants.MINUTE_TO_SECONDS
return base_timestamp - (base_timestamp % tf_seconds)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we have already this code somewhere else?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added in commons

@GuillaumeDSM GuillaumeDSM changed the title WIP [GPT] enable historical signals fetch [GPT] enable historical signals fetch Oct 27, 2023
@GuillaumeDSM GuillaumeDSM enabled auto-merge (rebase) October 27, 2023 20:14
@@ -55,7 +55,7 @@ def __init__(self, tentacles_setup_config):
self.indicator = None
self.source = None
self.period = None
self.min_confidence_threshold = 0
self.min_confidence_threshold = 100
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the default value?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we don't want to round to 1 below 100% confidence by default

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand. I haven't seen any 100% confidence value sent by gpt

@GuillaumeDSM GuillaumeDSM merged commit f2f8a78 into dev Oct 27, 2023
5 checks passed
@GuillaumeDSM GuillaumeDSM deleted the gpt branch October 27, 2023 21:26
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.

2 participants