indicator-setup by marketcalls/openalgo-indicator-skills
npx skills add https://github.com/marketcalls/openalgo-indicator-skills --skill indicator-setup为 OpenAlgo 指标分析、图表绘制和仪表盘开发设置完整的 Python 环境。
$0 = Python 版本(可选,默认值:python3)。示例:python3.12,python3.13uname -s 2>/dev/null || echo "Windows"
映射关系:Darwin = macOS,Linux = Linux,MINGW*/CYGWIN*/ = Windows。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
WindowsmacOS / Linux:
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
Windows:
python -m venv venv
venv\Scripts\activate
pip install --upgrade pip
如果用户指定了 Python 版本参数,则使用该参数代替 python3。
安装所有必需的包:
pip install openalgo yfinance plotly dash dash-bootstrap-components streamlit numba numpy pandas python-dotenv websocket-client httpx scipy nbformat matplotlib seaborn ipywidgets
仅创建顶级目录。子目录将由其他技能按需创建。
mkdir -p charts dashboards custom_indicators scanners
5a. 使用 AskUserQuestion 询问用户的 OpenAlgo API 密钥:
5b. 询问 OpenAlgo 主机 URL:
http://127.0.0.1:50005c. 可选询问 WebSocket URL:
5d. 在项目根目录中写入 .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
5e. 将 .env 添加到 .gitignore:
grep -qxF '.env' .gitignore 2>/dev/null || echo '.env' >> .gitignore
python -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.env 文件 — 它们包含 API 密钥python-dotenv 通过 find_dotenv() 加载 .env每周安装数
90
代码仓库
GitHub 星标数
5
首次出现
2026年2月28日
安全审计
安装于
codex90
opencode90
gemini-cli89
cursor88
amp88
cline88
Set up the complete Python environment for OpenAlgo indicator analysis, charting, and dashboard development.
$0 = Python version (optional, default: python3). Examples: python3.12, python3.13uname -s 2>/dev/null || echo "Windows"
Map: Darwin = macOS, Linux = Linux, MINGW*/CYGWIN*/Windows = Windows.
macOS / Linux:
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
Windows:
python -m venv venv
venv\Scripts\activate
pip install --upgrade pip
If user specified a Python version argument, use that instead of python3.
Install all required packages:
pip install openalgo yfinance plotly dash dash-bootstrap-components streamlit numba numpy pandas python-dotenv websocket-client httpx scipy nbformat matplotlib seaborn ipywidgets
Create only the top-level directories. Subdirectories are created on-demand by other skills.
mkdir -p charts dashboards custom_indicators scanners
5a. Ask the user for their OpenAlgo API key using AskUserQuestion:
5b. Ask for the OpenAlgo host URL:
http://127.0.0.1:50005c. Optionally ask about WebSocket URL:
5d. Write the.env file in the project root:
# 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
5e. Add.env to .gitignore:
grep -qxF '.env' .gitignore 2>/dev/null || echo '.env' >> .gitignore
python -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')
"
Print a summary showing:
.env file status/indicator-chart, /custom-indicator, /indicator-dashboard, /indicator-scanner, /live-feed.env files — they contain API keyspython-dotenv is used by all scripts to load .env via find_dotenv()Weekly Installs
90
Repository
GitHub Stars
5
First Seen
Feb 28, 2026
Security Audits
Gen Agent Trust HubPassSocketWarnSnykFail
Installed on
codex90
opencode90
gemini-cli89
cursor88
amp88
cline88
DOCX文件创建、编辑与分析完整指南 - 使用docx-js、Pandoc和Python脚本
51,800 周安装
资深苹果UI设计师助手 - 遵循iOS人机界面指南,打造原生风格移动应用界面
180 周安装
Python数据分析与可视化专家指南:Pandas、Matplotlib、Seaborn、Jupyter最佳实践
179 周安装
ToolUniverse Python SDK:统一访问1000+科学工具的AI科学家系统开发库
174 周安装
Cloudflare故障排除指南:系统化诊断重定向循环、DNS与SSL证书问题
178 周安装
PR评论智能处理与修复工具:自动化代码审查、问题分类与修复计划生成
179 周安装
基因表达与组学数据检索工具 - 生物信息学数据分析与科研工具
176 周安装