金字塔决策交易系统

 找回密码
 

微信登录

微信扫一扫,快速登录

搜索
楼主: 代人发帖

把这个指标转化成金字塔指标,并且出现红柱开多仓

[复制链接]

7

主题

83

帖子

83

积分

等级: 免费版

注册:
2023-2-6
曾用名:
发表于 2023-8-15 12:59 来自手机 | 显示全部楼层
请老师把这个指标转化为金字塔的策略指标,笑脸开多,哭脸开空,并且加上开平仓数量,能够修改的,谢谢老师 公式源码:} X_1:=(20*HIGH+19*REF(HIGH,1)+18*REF(HIGH,2)+17*REF(HIGH,3)+16*REF(HIGH,4)+15*REF(HIGH,5)+14*REF(HIGH,6)+13*REF(HIGH,7)+12*REF(HIGH,8)+11*REF(HIGH,9)+10*REF(HIGH,10)+9*REF(HIGH,11)+8*REF(HIGH,12)+7*REF(HIGH,13)+6*REF(HIGH,14)+5*REF(HIGH,15)+4*REF(HIGH,16)+3*REF(HIGH,17)+2*REF(HIGH,18)+REF(HIGH,20))/210; X_2:=(20*LOW+19*REF(LOW,1)+18*REF(LOW,2)+17*REF(LOW,3)+16*REF(LOW,4)+15*REF(LOW,5)+14*REF(LOW,6)+13*REF(LOW,7)+12*REF(LOW,8)+11*REF(LOW,9)+10*REF(LOW,10)+9*REF(LOW,11)+8*REF(LOW,12)+7*REF(LOW,13)+6*REF(LOW,14)+5*REF(LOW,15)+4*REF(LOW,16)+3*REF(LOW,17)+2*REF(LOW,18)+REF(LOW,20))/210; X_3:=EMA(X_1,90); X_4:=EMA(X_2,90); X_5:=(20*HIGH+19*REF(HIGH,1)+18*REF(HIGH,2)+17*REF(HIGH,3)+16*REF(HIGH,4)+15*REF(HIGH,5)+14*REF(HIGH,6)+13*REF(HIGH,7)+12*REF(HIGH,8)+11*REF(HIGH,9)+10*REF(HIGH,10)+9*REF(HIGH,11)+8*REF(HIGH,12)+7*REF(HIGH,13)+6*REF(HIGH,14)+5*REF(HIGH,15)+4*REF(HIGH,16)+3*REF(HIGH,17)+2*REF(HIGH,18)+REF(HIGH,20))/210; X_6:=(20*LOW+19*REF(LOW,1)+18*REF(LOW,2)+17*REF(LOW,3)+16*REF(LOW,4)+15*REF(LOW,5)+14*REF(LOW,6)+13*REF(LOW,7)+12*REF(LOW,8)+11*REF(LOW,9)+10*REF(LOW,10)+9*REF(LOW,11)+8*REF(LOW,12)+7*REF(LOW,13)+6*REF(LOW,14)+5*REF(LOW,15)+4*REF(LOW,16)+3*REF(LOW,17)+2*REF(LOW,18)+REF(LOW,20))/210; X_7:=X_3-X_4; X_8:=X_3+X_7*2; X_9:=X_4-X_7*2; X_10:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25); X_11:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1; X_12:=X_11>=X_9 AND X_10>=X_8; X_13:=X_10<=X_8 AND X_11<=X_9; X_14:=X_11>=X_9 AND X_10<=X_8; X_15:=(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*3+XMA(XMA(HIGH,60),60); X_16:=XMA(XMA(LOW,60),60)-(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*3; STICKLINE(X_12=1,X_10,X_11,5,0),COLOR000066; STICKLINE(X_13=1,X_10,X_11,5,0),COLOR003300; STICKLINE(X_14=1,X_10,X_11,5,0),COLOR555555; ZK1:(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25),DOTLINE,COLORWHITE; ZD1:XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1,DOTLINE,COLORWHITE; BS:(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*2.2+XMA(XMA(HIGH,60),60),DOTLINE,COLORRED; X_17:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1.5; BD:XMA(XMA(LOW,60),60)-(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*2.8,DOTLINE,COLORGREEN; X_18:=(ZK1+ZD1)/2; STICKLINE(1=1,X_3,X_4,5,0),COLORLIGRAY; X_19:=EMA(EMA(CLOSE,3)-EMA(CLOSE,6),9); X_20:=REF(X_19,1);
回复

使用道具 举报

7

主题

83

帖子

83

积分

等级: 免费版

注册:
2023-2-6
曾用名:
发表于 2023-8-15 13:54 来自手机 | 显示全部楼层
X_21:=EMA(EMA(EMA(CLOSE,3)-EMA(CLOSE,9),3)-EMA(EMA(CLOSE,3)-EMA(CLOSE,9),9),9); X_22:=REF(X_21,1); STICKLINE(X_20<X_19 OR X_22<X_21,LOW,HIGH,0,0),COLORRED; STICKLINE(X_20<X_19 OR X_22<X_21,CLOSE,OPEN,3,1),COLORRED; STICKLINE(X_19<X_20,LOW,HIGH,0,0),COLORGREEN; STICKLINE(X_19<X_20,CLOSE,OPEN,3,1),COLORGREEN; X_23:=LOW<ZD1 AND HIGH>ZD1; X_24:=HIGH>ZK1 AND LOW<ZK1; STICKLINE(X_23=1,LOW,ZD1,3,0),COLORWHITE; STICKLINE(X_24=1,HIGH,ZK1,3,0),COLORWHITE; X_25:=HIGH<ZD1; X_26:=LOW>ZK1; STICKLINE(X_25=1,LOW,HIGH,0,0),COLORWHITE; STICKLINE(X_25=1,CLOSE,OPEN,3,0),COLORWHITE; STICKLINE(X_26=1,LOW,HIGH,0,0),COLORWHITE; STICKLINE(X_26=1,CLOSE,OPEN,3,0),COLORWHITE; X_27:=X_20<X_19 OR X_22<X_21; X_28:=X_20>X_19 OR X_22>X_21; X_29:=X_23=1 AND X_27=1; X_30:=X_24=1 AND X_28=1; STICKLINE(X_29=1,LOW,ZD1,3,0),COLORMAGENTA; STICKLINE(X_30=1,HIGH,ZK1,3,0),COLORMAGENTA; X_31:=X_25=1 AND X_27=1; X_32:=X_26=1 AND X_28=1; STICKLINE(X_31=1,LOW,HIGH,0,0),COLORMAGENTA; STICKLINE(X_31=1,CLOSE,OPEN,3,0),COLORMAGENTA; STICKLINE(X_32=1,LOW,HIGH,0,0),COLORMAGENTA; STICKLINE(X_32=1,CLOSE,OPEN,3,0),COLORMAGENTA; X_33:=CROSS(ZD1,LOW) AND X_12=1; X_34:=CROSS(HIGH,ZK1) AND X_12=1 AND X_14=0; X_35:=CROSS(HIGH,ZK1) AND X_13=1; X_36:=CROSS(ZD1,LOW) AND X_13=1 AND X_14=0; X_37:=CROSS(ZD1,LOW) AND X_14=1; X_38:=CROSS(HIGH,ZK1) AND X_14=1; DRAWTEXT(ISLASTBAR,ZK1,36),COLORWHITE; DRAWTEXT(ISLASTBAR,ZD1,37),COLORWHITE; DRAWTEXT(ISLASTBAR,BS,38),COLORRED; DRAWTEXT(ISLASTBAR,BD,39),COLORGREEN; X_39:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7); X_40:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0); X_41:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0); X_42:=X_41*7; X_43:=X_41*3; X_44:=LARGEINTRDVOL-LARGEOUTTRDVOL; X_45:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*AMOUNT/VOL/10000; X_46:=LARGEINTRDVOL*100/VOL; X_47:=LARGEOUTTRDVOL*100/VOL; X_48:=L2_AMO(0,2)/10000; X_49:=L2_AMO(1,2)/10000; X_50:=L2_AMO(2,2)/10000; X_51:=L2_AMO(3,2)/10000; X_52:=L2_AMO(0,3)/10000; X_53:=L2_AMO(1,3)/10000; X_54:=L2_AMO(2,3)/10000; X_55:=L2_AMO(3,3)/10000; X_56:=X_48+X_49+X_50+X_51-(X_52+X_53+X_54+X_55); X_57:=X_56>0 AND X_39>0 AND X_40>0 AND X_42>0 AND X_43>0 AND X_44>0 AND X_45>0 AND X_46>X_47; STICKLINE(X_57=1 AND HIGH-CLOSE<CLOSE-LOW,LOW,HIGH,0,0),COLORRED; STICKLINE(X_57=1 AND HIGH-CLOSE<CLOSE-LOW,CLOSE,OPEN,3,0),COLORRED; DRAWICON(X_36=1,LOW,3); DRAWICON(X_34=1,HIGH,4); DRAWICON(X_33=1 OR X_37=1,LOW,3); DRAWICON(X_35=1 OR X_38=1,HIGH,4);
回复

使用道具 举报

34

主题

9006

帖子

5万

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
wenarm
发表于 2023-8-15 14:03 | 显示全部楼层
抱歉,没有L2_AMO对应的函数支持。无法完整转化
金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

使用道具 举报

7

主题

83

帖子

83

积分

等级: 免费版

注册:
2023-2-6
曾用名:
发表于 2023-8-15 15:03 来自手机 | 显示全部楼层
只需要开仓平仓交易信号其他的可以去掉
回复

使用道具 举报

7

主题

83

帖子

83

积分

等级: 免费版

注册:
2023-2-6
曾用名:
发表于 2023-8-15 15:05 来自手机 | 显示全部楼层
各种线可以去掉
回复

使用道具 举报

2

主题

544

帖子

585

积分

Rank: 9Rank: 9Rank: 9

等级: 管理员

注册:
2021-5-10
曾用名:
发表于 2023-8-15 15:20 | 显示全部楼层
和线没关系。这是指标计算的过程使用到的函数。你自己的代码应该比我们更清楚。
回复

使用道具 举报

7

主题

83

帖子

83

积分

等级: 免费版

注册:
2023-2-6
曾用名:
发表于 2023-8-15 15:41 来自手机 | 显示全部楼层
这个指标也是我买的通达信的,本人是技术小白。
回复

使用道具 举报

19

主题

1万

帖子

1万

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
FireScript
发表于 2023-8-15 17:14 | 显示全部楼层
这个处理不了的。那个L2_AMO函数金字塔上不支持,就没办法转换的。
如果这个函数在指标里用的少,也许可以去掉,但是你指标里用了很多L2_AMO函数,那就没办法了。
金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

使用道具 举报

7

主题

83

帖子

83

积分

等级: 免费版

注册:
2023-2-6
曾用名:
发表于 2023-8-25 13:09 来自手机 | 显示全部楼层
INPUT:ss(1,1,500,1); 永久日:=1391212; 永久:=IF(DATE<永久日,1,DRAWNULL); 主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)*永久; 警戒线: 80*永久,COLORYELLOW; XIAO1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1)*永久; XIAO2:=SMA(ABS(LOW-XIAO1),13,1)/SMA(MAX(LOW-XIAO1,0),10,1)*永久; XIAO3:=EMA(XIAO2,10)*永久; XIAO4:=LLV(LOW,33)*永久; XIAO5:=EMA(IF(LOW<=XIAO4,XIAO3,0),3)*永久; 主力出没:IF(XIAO5>REF(XIAO5,1),XIAO5,0)*永久,COLORRED,NODRAW; 洗盘:IF(XIAO5<REF(XIAO5,1),XIAO5,0)*永久,COLORGREEN,NODRAW; VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2))*永久; VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2))*永久; VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2))*永久; VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2))*永久; VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2))*永久; VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2))*永久; VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2))*永久; VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2))*永久; VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2))*永久; VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2))*永久; VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2))*永久; VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2))*永久; VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2))*永久; VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1; DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26)*永久; DEA:=EMA(DIFF,9)*永久,COLORFFFF00; MACD:=(DIFF-DEA)*2*永久; A1:=BARSLAST(REF(CROSS(DIFF,DEA),1))*永久; A2:=BARSLAST(REF(CROSS(DEA,DIFF),1))*永久; 底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF> REF(DIFF,A1+1) AND CROSS(DIFF,DEA)*永久; 顶背离:=REF(CLOSE,A2+1)< CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF)*永久; ④:IF(底背离,57,0),LINETHICK3,COLORBROWN; DRAWTEXT(底背离,15,'←MACD 底背离')*永久,COLORWHITE; DRAWTEXT(顶背离,70,'←MACD 顶背离'),COLORGREEN;  buy(XIAO5>REF(XIAO5,1),ss,market);
回复

使用道具 举报

7

主题

83

帖子

83

积分

等级: 免费版

注册:
2023-2-6
曾用名:
发表于 2023-8-25 13:10 来自手机 | 显示全部楼层
老师上次给我转换的指标,只有开仓的信号,能帮我把平仓的信号加上吗,就是开仓以后,等黄线到达警戒线以后平仓
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-16 04:35 , Processed in 0.268195 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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