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

TA Lib - Stochastic Indicator with FT sample strategies #83

Closed
Prossi79 opened this issue May 23, 2020 · 2 comments
Closed

TA Lib - Stochastic Indicator with FT sample strategies #83

Prossi79 opened this issue May 23, 2020 · 2 comments
Labels

Comments

@Prossi79
Copy link

Step 1: Have you search for this issue before posting it?

If you have discovered a bug in the bot, please search our issue tracker.
If it hasn't been reported, please create a new issue.

Step 2: Describe your environment

Operating system: Ubuntu 18.04
Python Version: 3.7.4
CCXT version: ccxt==1.27.91
Branch: Develop
Last Commit ID: b50d072

Step 3: Describe the problem:

TA lib indicator ta.STOCHF with FT sample strategies (e.g. Scalp, CofiBitStrategy ReinforcedSmoothScalp ...) not working anymore after update

Steps to reproduce:




Observed Results:

  • What happened?
  • What did you expect to happen?

Relevant code exceptions or logs:

2020-05-23 16:57:46,505 - freqtrade.optimize.backtesting - INFO - Running backtesting for Strategy ReinforcedQuickie
2020-05-23 16:57:48,393 - freqtrade.optimize.backtesting - INFO - Backtesting with data from 2020-01-01T00:00:00+00:00 up to 2020-05-15T00:00:00+00:00 (135 days)..
2020-05-23 16:57:49,170 - freqtrade.optimize.backtesting - INFO - Running backtesting for Strategy Scalp
2020-05-23 16:57:49,172 - freqtrade - ERROR - Fatal exception!
Traceback (most recent call last):
File "/home/andreas/freqtrade/freqtrade/main.py", line 36, in main
  return_code = args['func'](args)
File "/home/andreas/freqtrade/freqtrade/commands/optimize_commands.py", line 49, in start_backtesting
  backtesting.start()
File "/home/andreas/freqtrade/freqtrade/optimize/backtesting.py", line 390, in start
  preprocessed = self.strategy.ohlcvdata_to_dataframe(data)
File "/home/andreas/freqtrade/freqtrade/strategy/interface.py", line 502, in ohlcvdata_to_dataframe
  for pair, pair_data in data.items()}
File "/home/andreas/freqtrade/freqtrade/strategy/interface.py", line 502, in <dictcomp>
  for pair, pair_data in data.items()}
File "/home/andreas/freqtrade/freqtrade/strategy/interface.py", line 518, in advise_indicators
  return self.populate_indicators(dataframe, metadata)
File "/home/andreas/freqtrade/user_data/strategies/Scalp.py", line 46, in populate_indicators
  stoch_fast = ta.STOCHF(dataframe, 5.0, 3.0, 0.0, 3.0, 0.0)
File "talib/_abstract.pxi", line 398, in talib._ta_lib.Function.__call__
File "talib/_abstract.pxi", line 277, in talib._ta_lib.Function.set_function_args
File "talib/_abstract.pxi", line 462, in talib._ta_lib.Function.__check_opt_input_value
TypeError: Invalid parameter value for fastk_period (expected int, got float)

@hroff-1902
Copy link
Member

moving it to freqtrade-strategies

@hroff-1902 hroff-1902 transferred this issue from freqtrade/freqtrade May 23, 2020
@xmatthias
Copy link
Member

You must update this (strategy) repository too.

It's related to the ta-lib update - and was fixed in #73 ... (as i knew that was comming ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants