摘要:
#!/usr/bin/env python# -*- coding: utf-8 -*-import talibimport cross_order as orderimport timeimport pandas as pddef LON(df, n=10): """ 钱龙长线指标是一种描述当前趋 阅读全文
摘要:
1、打开新增的cross_order.py 文件 # -*- coding: utf-8 -*-import pandas as pdimport bitget.mix.market_api as marketimport bitget.mix.account_api as accountsimpo 阅读全文
摘要:
1、接口文档网址:https://bitgetlimited.github.io/apidoc/zh/mix/#03b4e6fa59 2、下载https://github.com/BitgetLimited/V3-bitget-api-sdk/tree/master/bitget-python-sd 阅读全文
摘要:
#!/usr/bin/env python# -*- coding: utf-8 -*-import talibimport cross_order as orderimport time# kd指标参数fastk_period = 5slowk_period = 3slowk_matype = 0 阅读全文
摘要:
#!/usr/bin/env python# -*- coding: utf-8 -*-import talibimport cross_order as orderimport time# atr周期atr_period = 14# 买卖时高于或低于ATR值的倍数buy_multi_atr = 2 阅读全文
摘要:
#!/usr/bin/env python# -*- coding: utf-8 -*-import talibimport cross_order as orderimport time# ADX、DMI指标数据周期adx_period = 14dmi_period = 14ma_short_pe 阅读全文
摘要:
#!/usr/bin/env python# -*- coding: utf-8 -*-import cross_order as orderimport timedef StochRSI(close, lengthRSI=14, lengthStoch=14, smoothK=3, smoothD 阅读全文
摘要:
#!/usr/bin/env python# -*- coding: utf-8 -*-import talibimport cross_order as orderimport timedef TDSequential(close): tdlist = [0, 0, 0, 0] # tdlist是 阅读全文
摘要:
talib 不是万能的、有些其它指标 如:BBI、PSY、BIAS等这些指标是没有的 def BBI(df, n1=3, n2=6, n3=12, n4=24): """ 多空指数 """ bbi = (MA(df["close"], n1) + MA(df["close"], n2) + MA(d 阅读全文
摘要:
#!/usr/bin/env python# -*- coding: utf-8 -*-import cross_order as orderimport talibsymbol = 'BTC-USDT-SWAP' # okx# symbol = 'BTCUSDT' # binance# symbo 阅读全文