Loading...
Loading...
Set up the Python environment for OpenAlgo indicator analysis. Installs openalgo, plotly, dash, streamlit, numba, yfinance, matplotlib, seaborn, and creates the project folder structure.
npx skill4agent add marketcalls/openalgo-indicator-skills indicator-setup$0python3python3.12python3.13uname -s 2>/dev/null || echo "Windows"DarwinLinuxMINGW*CYGWIN*Windowspython3 -m venv venv
source venv/bin/activate
pip install --upgrade pippython -m venv venv
venv\Scripts\activate
pip install --upgrade pippython3pip install openalgo yfinance plotly dash dash-bootstrap-components streamlit numba numpy pandas python-dotenv websocket-client httpx scipy nbformat matplotlib seaborn ipywidgetsmkdir -p charts dashboards custom_indicators scannershttp://127.0.0.1:5000.env# OpenAlgo API Configuration
OPENALGO_API_KEY={user_provided_key or "your_openalgo_api_key_here"}
OPENALGO_HOST={user_provided_host or "http://127.0.0.1:5000"}
# WebSocket (optional - auto-derived from host if not set)
# OPENALGO_WS_URL=ws://127.0.0.1:8765.env.gitignoregrep -qxF '.env' .gitignore 2>/dev/null || echo '.env' >> .gitignorepython -c "
import openalgo
from openalgo import ta
import plotly
import dash
import streamlit
import numba
import numpy as np
import pandas as pd
import yfinance as yf
import matplotlib
import seaborn
import nbformat
from dotenv import load_dotenv
print('All packages installed successfully')
print(f' openalgo: {openalgo.__version__}')
print(f' plotly: {plotly.__version__}')
print(f' dash: {dash.__version__}')
print(f' streamlit: {streamlit.__version__}')
print(f' numba: {numba.__version__}')
print(f' numpy: {np.__version__}')
print(f' pandas: {pd.__version__}')
print(f' matplotlib: {matplotlib.__version__}')
print(f' seaborn: {seaborn.__version__}')
# Quick indicator test
close = np.array([100.0, 101.0, 102.0, 103.0, 104.0, 105.0, 104.0, 103.0, 102.0, 101.0])
ema = ta.ema(close, 3)
rsi = ta.rsi(close, 5)
print(f' ta.ema test: {ema[-1]:.2f}')
print(f' ta.rsi test: {rsi[-1]:.2f}')
print('Indicator library ready')
".env/indicator-chart/custom-indicator/indicator-dashboard/indicator-scanner/live-feed.envpython-dotenv.envfind_dotenv()