2024-10-23 18:48:35 +00:00
# Swing Trading Dashboard
2024-10-23 19:03:49 +00:00
## Dependencies
The dashboard depends on the following Python packages which can be installed via ```pip install```:
```shell
dash
dash-ag-grid
dash-bootstrap-components
dash-bootstrap-templates
pandas
plotly
python-dotenv
```
2024-11-27 20:43:54 +00:00
It also depends on the following modules hosted here:
2024-10-23 19:03:49 +00:00
* [OHLC ](https://moshferatu.dev/moshferatu/ohlc )
* [Plotting ](https://moshferatu.dev/moshferatu/plotting )
2024-11-27 20:43:23 +00:00
* [Strategies ](https://moshferatu.dev/moshferatu/strategies )
2024-10-23 19:03:49 +00:00
2024-10-23 19:06:59 +00:00
## Running the Dashboard
2024-10-23 19:13:45 +00:00
The OHLC data used by the dashboard comes from IQFeed.
2024-10-23 20:07:25 +00:00
Assuming a connection has been established to IQFeed (via [IQLink.exe ](https://moshferatu.dev/moshferatu/windows-automation/src/branch/main/iqfeed.bat ), for example), create a file named ```.env``` with the following contents:
2024-10-23 19:13:45 +00:00
```shell
IQFEED_HOST=localhost
IQFEED_PORT=9100
```
Then, run the following command to launch the dashboard:
2024-10-23 19:06:59 +00:00
```shell
python ./dashboard.py
```
2024-10-23 18:48:35 +00:00
---