Code Monkey home page Code Monkey logo

Comments (5)

xmatthias avatar xmatthias commented on May 16, 2024

the only place this may come from is the below - but that's been changed a while ago so make sure to use the latest version of freqtrade (2020.01 or later) and update this repository (git pull).

data = self.dp.get_pair_dataframe(pair=f"{self.stake_currency}/USDT",
timeframe=self.ticker_interval)

Now i would not encourage you to run this strategy - it's VERY basic and is just there to prove the point - not necessarily to be used to make gains.

from freqtrade-strategies.

Prossi79 avatar Prossi79 commented on May 16, 2024

:) yes, just to understand the informative pair topic which I like to implement in one of my strategies

from freqtrade-strategies.

Prossi79 avatar Prossi79 commented on May 16, 2024

Another quick question:

this part of the strategy file I need to change?

    def informative_pairs(self):
        """
        Define additional, informative pair/interval combinations to be cached from the exchange.
        These pair/interval combinations are non-tradeable, unless they are part
        of the whitelist as well.
        For more information, please consult the documentation
        :return: List of tuples in the format (pair, interval)
            Sample: return [("ETH/USDT", "5m"),
                            ("BTC/USDT", "15m"),
                            ]
        """
        return [(f"{self.config['stake_currency']}/USDT", self.ticker_interval)]

to for example:

return [("ETH/USDT", "5m")]

from freqtrade-strategies.

xmatthias avatar xmatthias commented on May 16, 2024

well you can, then it'll use 5m tickers for that "informative" pair.

the example (return [(f"{self.config['stake_currency']}/USDT", self.ticker_interval)]) uses the same interval the strategy uses.

That means for backtesting for example - you can run freqtrade backtesting --strategy InformativeSample -i 1h - and it'll automatically use the 1h ticker of "BTC/USDT".

In your case, it would always use 5m for the informative pair. That means when combining the tickers, you need to be careful so the data is actually matching.

from freqtrade-strategies.

Prossi79 avatar Prossi79 commented on May 16, 2024

mmmh okay, my intention / idea was the following -> using BTC/USDT long time frame (e.g. 1d) as informative pair to get an idea in what direction the market is going (BTC as pull) - for example via EMA50 based on 1d BTC/USDT informative pair. This information I like to use as guard for my 15m strategy which is using 15m data for triggers & guards. With this strategy I like to trade Altcoins.

Is the InformativePair approach viable for this concept? Or better using re-sampling?

And how would I need to adapt the your strategy template? my stake currency is USDT, I like to have as informative pair BTC/USDT and want to trade lets say XRP/USDT

from freqtrade-strategies.

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.