Closed owinoalfred closed 10 months ago
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.
(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
(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
(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>
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
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
(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
(venv) C:\dev\autotrader-demo-main\autotrader-demo-main>
anything i can try!? 'autotrader-demo-main\macd_strategy.py' this too doesnt exist
whenever you can please consider making a video! i beg! thanks!
I have tried for days to run this thing tried everything, which part of the docs explains installation and commands to run locally.