Comments (5)
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.
(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.
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.
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.
whenever you can please consider making a video! i beg! thanks!
from autotrader.
Related Issues (20)
- ' Broker' object has no attribute '_allow_dancing_bears '
- Question about divergence indicator HOT 3
- config["API"] using Oanda not found HOT 1
- Questions regarding AutoTrader
- Add Support for Partially and Canceled order callback functions
- Cannot find GetData function HOT 1
- How to properly close a position in a strategy
- Not clear how to login, needing simple example template HOT 2
- multi-time frame data not working
- \
- help with issue HOT 1
- 'Index' object has no attribute 'tzinfo', and so on ~ HOT 1
- Running paper trade mode in Oanda
- Display statistics in backtesting mode
- Peer closed connection. clientId 3 already in use?
- Integrate existing indicator library HOT 2
- Custom xml plot path
- Divergencies not plot again HOT 1
- Can't use crypto exchange as feed?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autotrader.