• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
金记缘
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 下一页
2023年6月21日
二十、区块量化 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:32 一生所悟 阅读(595) 评论(0) 推荐(0)
十九、区块量化 形态策略
摘要: 1、形态指常用的K线形态 如:早晨之星、黄昏十字星、乌云盖顶、三只乌鸦、白三兵、刺透形态等常用的几个主要形态 下面看代码: 新增 cross_modal_order.py #!/usr/bin/env python# -*- coding: utf-8 -*-import talibimport c 阅读全文
posted @ 2023-06-21 09:21 一生所悟 阅读(167) 评论(0) 推荐(0)
2023年6月18日
十八、区块量化 CCI策略
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-import talibimport cross_order as orderimport timeCCI_TIMEPERIOD = 84 # CCI计算周期CCI_OVER_SOLD_THRESH = -250 阅读全文
posted @ 2023-06-18 15:45 一生所悟 阅读(76) 评论(0) 推荐(0)
十七、区块量化 鳄鱼线策略
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-import talibimport cross_order as orderimport timeimport numpy as np"""鳄鱼线原理: 鳄鱼线是根据几何学以及非线性动力学总结出来的一套技术分析 阅读全文
posted @ 2023-06-18 15:37 一生所悟 阅读(162) 评论(0) 推荐(0)
十六、区块量化 MACD策略
摘要: 新增cross_macd_order.py # -*- coding: utf-8 -*-import talibimport cross_order as orderimport timedef main(): print("任务开始时间:", time.strftime('%Y-%m-%d %H 阅读全文
posted @ 2023-06-18 15:27 一生所悟 阅读(176) 评论(0) 推荐(0)
十五、区块量化 双均线策略
摘要: 新增cross_dualma_order.py # -*- coding: utf-8 -*-import cross_order as orderimport timeSHORT_WIN = 50 # 短周期窗口LONG_WIN = 200 # 长周期窗口def main(): print("任务 阅读全文
posted @ 2023-06-18 15:04 一生所悟 阅读(112) 评论(0) 推荐(0)
十四、区块量化 dual thrust策略
摘要: 新增cross_dual_thrust_order.py文件 # -*- coding: utf-8 -*-import cross_order as orderimport timeSHORT_WIN = 10 # 短周期窗口SHORT_K1 = 0.5SHORT_K2 = 0.5def dual 阅读全文
posted @ 2023-06-18 14:55 一生所悟 阅读(121) 评论(0) 推荐(0)
十三、区块量化 gate.io 合约操作文件续
摘要: def create_order(symbol='EOS_USDT', quantity='1', message=''): """ 全仓合约市价下单 @param symbol:交易对 @param quantity:委托数量 正数为买入,负数为卖出 @param message: 判断依据 @r 阅读全文
posted @ 2023-06-18 14:44 一生所悟 阅读(136) 评论(0) 推荐(0)
十二、区块量化 gate.io 合约操作文件
摘要: 新增cross_order.py 文件 # -*- coding: utf-8 -*-import pandas as pdfrom gate_api import ApiClient, Configuration, FuturesApi, FuturesOrderfrom gate_api.exc 阅读全文
posted @ 2023-06-18 14:36 一生所悟 阅读(148) 评论(0) 推荐(0)
十一、区块量化 gate.io 接口
摘要: 1、接口文档网址:https://www.gate.ac/docs/developers/apiv4/zh_CN/#futures 2、安装python工具:pip3 install gateapi-python 3、下载https://github.com/gateio/gateapi-pytho 阅读全文
posted @ 2023-06-18 14:30 一生所悟 阅读(681) 评论(0) 推荐(0)
上一页 1 2 3 4 5 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3