金字塔决策交易系统

 找回密码
 

微信登录

微信扫一扫,快速登录

搜索
查看: 108|回复: 1

可视化标记

[复制链接]

4

主题

7

帖子

17

积分

Rank: 2

等级: 标准版

注册:
2022-10-26
曾用名:
发表于 2025-4-27 20:16 | 显示全部楼层 |阅读模式
   # 绘制笔结构    for stroke in self.strokes:        start_date = self.data.index[stroke[1][0]]        end_date = self.data.index[stroke[2][0]]        if stroke[0] == 'up':            plt.plot([start_date, end_date],                     [stroke[1][1], stroke[2][1]],                     color='blue', linestyle='--')        else:            plt.plot([start_date, end_date],                     [stroke[1][1], stroke[2][1]],                     color='gray', linestyle='--')[color=rgba(0, 0, 0, 0.9)]    # 绘制趋势线(示例绘制最近2个信号点连线)    if signals['FG0'].iloc[current_bar] and signals['FD0'].iloc[current_bar-1]:        PlotLine(symbol,                 (df.index[current_bar-1], df['Low'].iloc[current_bar-1]),                (df.index[current_bar], df['High'].iloc[current_bar]),                color=COLOR_YELLOW)前面PYTHON代码中的划线,绘图等指令在金字塔如何实现可视化标记[color=rgba(0, 0, 0, 0.9)]极点连接线的绘制方式
回复

使用道具 举报

38

主题

1万

帖子

1万

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
发表于 2025-4-28 08:49 | 显示全部楼层
python这个没办法直接在k线图上展示的
如果你要在图表上显示建议直接用pel去编写
金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 微信登录

本版积分规则

手机版|小黑屋|上海金之塔信息技术有限公司 ( 沪ICP备13035422号 )

GMT+8, 2025-5-24 18:18 , Processed in 0.133452 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表