Giter Club home page Giter Club logo

Comments (5)

kieran-mackle avatar kieran-mackle commented on June 16, 2024

Hi - what exactly are you having trouble with?

Could you please tell me what you have tried and what the error messages are?

Installation instructions are on the README of this repo, as well as on the documentation site, linked multiple times throughout this repo and on the sidebar.

There is also an entire repo with example strategies, also linked on the README and on the docs site.

If are not sure how to run AutoTrader, there is both a condensed tutorial and a very detailed walkthrough on the docs site.

If you need any more information, let me know.

from autotrader.

owinoalfred avatar owinoalfred commented on June 16, 2024

(venv) C:\dev\autotrader-demo-main\autotrader-demo-main>python runfile.py

░█████╗░██╗░░░██╗████████╗░█████╗░████████╗██████╗░░█████╗░██████╗░███████╗██████╗░
██╔══██╗██║░░░██║╚══██╔══╝██╔══██╗╚══██╔══╝██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗
███████║██║░░░██║░░░██║░░░██║░░██║░░░██║░░░██████╔╝███████║██║░░██║█████╗░░██████╔╝
██╔══██║██║░░░██║░░░██║░░░██║░░██║░░░██║░░░██╔══██╗██╔══██║██║░░██║██╔══╝░░██╔══██╗
██║░░██║╚██████╔╝░░░██║░░░╚█████╔╝░░░██║░░░██║░░██║██║░░██║██████╔╝███████╗██║░░██║
╚═╝░░╚═╝░╚═════╝░░░░╚═╝░░░░╚════╝░░░░╚═╝░░░╚═╝░░╚═╝╚═╝░░╚═╝╚═════╝░╚══════╝╚═╝░░╚═╝
[100%%*] 1 of 1 completed

1 Failed download:
['AUDJPY=X']: Exception('%ticker%: 1h data not available for startTime=1609459200 and endTime=1651363200. The requested range must be within the last 730 days.')
Traceback (most recent call last):
File "C:\dev\autotrader-demo-main\autotrader-demo-main\runfile.py", line 9, in
at.run()
File "C:\dev\AutoTrader-main\autotrader\autotrader.py", line 1142, in run
self._main()
File "C:\dev\AutoTrader-main\autotrader\autotrader.py", line 1613, in _main
bot = AutoTraderBot(
File "C:\dev\AutoTrader-main\autotrader\autobot.py", line 223, in init
self._refresh_data(deploy_dt)
File "C:\dev\AutoTrader-main\autotrader\autobot.py", line 449, in _refresh_data
data, multi_data, quote_data, auxdata = self.Stream.refresh(timestamp=timestamp)
File "C:\dev\AutoTrader-main\autotrader\utilities.py", line 1174, in refresh
data = data_func(
File "C:\dev\AutoTrader-main\autotrader\autodata.py", line 783, in _yahoo
if data.index.tzinfo is None:
AttributeError: 'Index' object has no attribute 'tzinfo'

(venv) C:\dev\autotrader-demo-main\autotrader-demo-main>

also this pops up when i run the demo

(venv) C:\dev\autotrader-demo-main\autotrader-demo-main>autotrader demo
Loading demo files...
Done.
Traceback (most recent call last):
File "C:\dev\autotrader-demo-main\autotrader-demo-main\macd_strategy.py", line 3, in
from finta import TA
ModuleNotFoundError: No module named 'finta'

(venv) C:\dev\autotrader-demo-main\autotrader-demo-main>pip install finta
Requirement already satisfied: finta in c:\dev\autotrader-main\venv\lib\site-packages (1.3)
Requirement already satisfied: numpy in c:\dev\autotrader-main\venv\lib\site-packages (from finta) (1.26.1)
Requirement already satisfied: pandas in c:\dev\autotrader-main\venv\lib\site-packages (from finta) (2.1.1)
Requirement already satisfied: python-dateutil>=2.8.2 in c:\dev\autotrader-main\venv\lib\site-packages (from pandas->finta) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in c:\dev\autotrader-main\venv\lib\site-packages (from pandas->finta) (2023.3.post1)
Requirement already satisfied: tzdata>=2022.1 in c:\dev\autotrader-main\venv\lib\site-packages (from pandas->finta) (2023.3)
Requirement already satisfied: six>=1.5 in c:\dev\autotrader-main\venv\lib\site-packages (from python-dateutil>=2.8.2->pandas->finta) (1.16.0)

(venv) C:\dev\autotrader-demo-main\autotrader-demo-main>

from autotrader.

kieran-mackle avatar kieran-mackle commented on June 16, 2024

As it says in the message above, 1h data is not available for date range requested, from yfinance. You must update this date range to something more recent, or provide your own data.

The other message also says that you are missing the finta package. You can install this as usual:

pip install finta

from autotrader.

owinoalfred avatar owinoalfred commented on June 16, 2024

I did that already,

(venv) C:\dev\autotrader-demo-main\autotrader-demo-main>autotrader demo
Loading demo files...
Done.
Traceback (most recent call last):
File "C:\dev\autotrader-demo-main\autotrader-demo-main\macd_strategy.py", line 3, in
from finta import TA
ModuleNotFoundError: No module named 'finta'

(venv) C:\dev\autotrader-demo-main\autotrader-demo-main>pip install finta
Requirement already satisfied: finta in c:\dev\autotrader-main\venv\lib\site-packages (1.3)
Requirement already satisfied: numpy in c:\dev\autotrader-main\venv\lib\site-packages (from finta) (1.26.1)
Requirement already satisfied: pandas in c:\dev\autotrader-main\venv\lib\site-packages (from finta) (2.1.1)
Requirement already satisfied: python-dateutil>=2.8.2 in c:\dev\autotrader-main\venv\lib\site-packages (from pandas->finta) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in c:\dev\autotrader-main\venv\lib\site-packages (from pandas->finta) (2023.3.post1)
Requirement already satisfied: tzdata>=2022.1 in c:\dev\autotrader-main\venv\lib\site-packages (from pandas->finta) (2023.3)
Requirement already satisfied: six>=1.5 in c:\dev\autotrader-main\venv\lib\site-packages (from python-dateutil>=2.8.2->pandas->finta) (1.16.0)

(venv) C:\dev\autotrader-demo-main\autotrader-demo-main>autotrader demo
Loading demo files...
Done.
Traceback (most recent call last):
File "C:\dev\autotrader-demo-main\autotrader-demo-main\macd_strategy.py", line 3, in
from finta import TA
ModuleNotFoundError: No module named 'finta'

(venv) C:\dev\autotrader-demo-main\autotrader-demo-main>

##if you notice i already installed all the necessary tools, libraries e.t.c
anything i can try!?
'autotrader-demo-main\macd_strategy.py' this too doesnt exist

from autotrader.

owinoalfred avatar owinoalfred commented on June 16, 2024

whenever you can please consider making a video! i beg! thanks!

from autotrader.

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.