会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
金记缘
博客园
首页
新随笔
联系
管理
订阅
1
2
3
4
5
下一页
2023年7月11日
四十、区块量化 LON策略
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-import talibimport cross_order as orderimport timeimport pandas as pddef LON(df, n=10): """ 钱龙长线指标是一种描述当前趋
阅读全文
posted @ 2023-07-11 08:58 一生所悟
阅读(195)
评论(0)
推荐(0)
2023年7月10日
三十九、区块量化 BitGet 合约操作文件
摘要: 1、打开新增的cross_order.py 文件 # -*- coding: utf-8 -*-import pandas as pdimport bitget.mix.market_api as marketimport bitget.mix.account_api as accountsimpo
阅读全文
posted @ 2023-07-10 11:03 一生所悟
阅读(300)
评论(0)
推荐(0)
三十八、区块量化 BitGet接口
摘要: 1、接口文档网址:https://bitgetlimited.github.io/apidoc/zh/mix/#03b4e6fa59 2、下载https://github.com/BitgetLimited/V3-bitget-api-sdk/tree/master/bitget-python-sd
阅读全文
posted @ 2023-07-10 11:01 一生所悟
阅读(492)
评论(0)
推荐(0)
2023年7月7日
三十七、KDJ策略
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-import talibimport cross_order as orderimport time# kd指标参数fastk_period = 5slowk_period = 3slowk_matype = 0
阅读全文
posted @ 2023-07-07 17:36 一生所悟
阅读(78)
评论(0)
推荐(0)
三十六、ATR策略
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-import talibimport cross_order as orderimport time# atr周期atr_period = 14# 买卖时高于或低于ATR值的倍数buy_multi_atr = 2
阅读全文
posted @ 2023-07-07 17:32 一生所悟
阅读(249)
评论(0)
推荐(0)
三十五、ADX+DMI 组合策略
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-import talibimport cross_order as orderimport time# ADX、DMI指标数据周期adx_period = 14dmi_period = 14ma_short_pe
阅读全文
posted @ 2023-07-07 17:31 一生所悟
阅读(279)
评论(0)
推荐(0)
三十四、StochRsi 策略
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-import cross_order as orderimport timedef StochRSI(close, lengthRSI=14, lengthStoch=14, smoothK=3, smoothD
阅读全文
posted @ 2023-07-07 17:28 一生所悟
阅读(310)
评论(0)
推荐(1)
2023年6月26日
二十三、区块量化 TD指标
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-import talibimport cross_order as orderimport timedef TDSequential(close): tdlist = [0, 0, 0, 0] # tdlist是
阅读全文
posted @ 2023-06-26 16:13 一生所悟
阅读(132)
评论(0)
推荐(0)
2023年6月21日
二十二、区块量化 其它常用分析指标
摘要: 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
阅读全文
posted @ 2023-06-21 09:53 一生所悟
阅读(128)
评论(0)
推荐(0)
二十一、区块量化 TA-Lib 的形态指标
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-import cross_order as orderimport talibsymbol = 'BTC-USDT-SWAP' # okx# symbol = 'BTCUSDT' # binance# symbo
阅读全文
posted @ 2023-06-21 09:34 一生所悟
阅读(268)
评论(0)
推荐(0)
1
2
3
4
5
下一页