Coder Social home page Coder Social logo

Comments (9)

xmatthias avatar xmatthias commented on May 4, 2024

well technical (this module) does provide a fibonacci_retracements() method.

I've not used that myself though.
by the (quick) looks of it - you'll need to be careful as it seems to be using the full history - which means it will have a lookahead bias in backtesting.

from technical.

evo11x avatar evo11x commented on May 4, 2024

But what about the live candles? From what I know freqtrade returns only the last 200 or 400 candlesticks in live mode, is there a way to get more than 200 in live mode? So the strategy can lookback more days on a 5min candlestick?

from technical.

xmatthias avatar xmatthias commented on May 4, 2024

The exact number of candlesticks varies by exchange - but it's usually around 1000 for most supported exchanges.

the really available amount can also be changed (within reason) by startup_candle_count.

from technical.

evo11x avatar evo11x commented on May 4, 2024

Thanks, but 1000 x 5min = 3.4 days, still not enough for fibonacci or trend lines, to convert to 1h..4h and also apply indicators on that.

Also it is not a good idea to read 500-1000 candles at every cycle, it may trigger a rate limit on the exchange for too many requests.

The best solution would be to have the entire selected candle history in memory and just append the new ones, this would also speed up the the reading cycles and can be combined with batch reading of multiple assets which in turn will leave room for more order requests.

from technical.

xmatthias avatar xmatthias commented on May 4, 2024

1000 candles is usually one request.
If you need longer data, best use informative pairs.

from technical.

evo11x avatar evo11x commented on May 4, 2024

I know it's one request, but it slows down the bot cycle speed.
what you mean informative pairs?

from technical.

xmatthias avatar xmatthias commented on May 4, 2024

you're wrong in thinking that 1 request for 1 candle + combining the data reliably (!) is faster than getting 1 request. the slow part is the request - which is always 1. This is however not the place to discuss this - therefore i consider this topic concluded.

Please refer to the documentation if you don't understand something. We try to have most possibilities listed there.

from technical.

evo11x avatar evo11x commented on May 4, 2024

It is not specified in the documentation how can I have longer than 1000 candles in live mode with informative pairs

from technical.

xmatthias avatar xmatthias commented on May 4, 2024

You can use a longer timeframe - which will still give you 1000 candles, but can look back multiple years (assuming 1d candles).

from technical.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.