基于Binance SDK的BTC 1小时趋势策略,策略使用了KDJ、RSI、OVB指标
Blog iconhongkongpay.dao
Apr 26
import time from binance.client import Client import numpy as np import talib设置Binance API key和secretapi_key = 'YOUR_API_KEY' api_secret = 'YOUR_API_SECRET'创建Binance客户端client = Client(api_key, api_secret)定义指标计算函数def calculate_indicators(klines): closes = np.array([float(kline[4]) for kline in klines])# 计算KDJ指标 high_prices = np.array([float(kline[2]) for kline in klines]) low_prices = np.array([float(kline[3]) for kline in klines]) close_prices = np.array([float(kline[4]) f...

hongkongpay.dao

Written by
hongkongpay.dao

You can use cryptocurrency to pay to the address: hongkongpay.dao [donate BTC, Eth, LTC, XRP, XLM, Ray, Sol, Matic] to support this project

Subscribe

2025 Paragraph Technologies Inc

PopularTrendingPrivacyTermsHome
Search...Ctrl+K

hongkongpay.dao

Subscribe