freqsignals/freqtrade-strategies

Send signal from local python code

Opened this issue · 1 comments

Hey, sorry if this question is not relevant or in the correct place.
I have a piece of code that generates signal based on an external factor.

Would it be possible with your code to enter on this signal provided by native python code?
The signal will be provided in real time (so i cannot wait for 1 minute to pass)

Thanks in advance

Hi Theo,
It should be doable. Assuming you're uploading your signal to FreqSignals and your Freqtrade bot inherits from the FreqSignalsStrategy, it pulls signals from FreqSignals each Freqtrade loop (not candle, see here https://github.com/freqsignals/freqtrade-strategies/blob/main/strategies/freqsignals.py#L361), so it should pick up the signal as your loop begins. The loop frequency is the internals.process_throttle_secs setting in your FreqTrade config (https://www.freqtrade.io/en/stable/configuration/), I think many people run a 5 or 15 second loop.

Hope that helps!