您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

[求助]帮忙修改谢谢 [文华财经]

  • 咨询内容:  买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,21)*20+C,42); BU:=CROSS(买线,卖线); SEL:=CROSS(卖线,买线); AMOUNT:=AVPRICE*V;STICKLINE1(买线>=卖线,LOW,HIGH,0,1),COLORRED,LINETHICK3; STICKLINE1(买线>=卖线,CLOSE,OPEN,3.2,1),COLORRED,LINETHICK3; STICKLINE1(买线<卖线,LOW,HIGH,0,1),COLORGREEN; STICKLINE1(买线<卖线,CLOSE,OPEN,3.2,1),COLORGREEN; STICKLINE1(BU,OPEN,CLOSE,3.2,0),COLORYELLOW; STICKLINE1(SEL,OPEN,CLOSE,3.2,0),COLORBLUE; 主力:=EMA(CLOSE,10),COLORRED;散户:=EMA(CLOSE,5),COLORYELLOW;绿降:=(46.18*EMA (CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1; 操盘:=MA(CLOSE,9),COLORFF9C65,LINETHICK2;界点:=MA(CLOSE,20); AH:HHV(H,100),COLORMAGENTA; AL:LLV(L,100);AHL:=AH-AL;//A23,COLORLIGHTRED,LINETHICK2; AL+AHL*0.191,COLORWHITE; A19:AL+AHL*0.191,COLORLIGHTRED; A38:AL+AHL*0.382,COLORGREEN; A50:AL+AHL*0.500,COLORRED; A61:AL+AHL*0.618,COLORFF9CFF; A80:AL+AHL*0.809,COLORCYAN; DRAWTEXT(ISLASTBAR,AH,'最高 ',COLORAAAAAA; DRAWTEXT(ISLASTBAR,A80,'0.809% ',COLORMAGENTA,LINETHICK2; DRAWTEXT(ISLASTBAR,A50,'0.500% ',COLORAAAAAA,LINETHICK2; DRAWTEXT(ISLASTBAR,A61,'0.618% ',COLOR00AAAA,LINETHICK2; DRAWTEXT(ISLASTBAR,A38,'0.382% ',COLOR00AAAA,LINETHICK2; DRAWTEXT(ISLASTBAR,A19,'0.191% ',COLORWHITE,LINETHICK2; DRAWTEXT(ISLASTBAR,AL,'最低 ',COLORAAAAAA,LINETHICK2; F1:=ZIGZAG(C,16,1); VERTLINE(F1<REF(F1,1),2),COLORAA8800; XX1:=EMA(SLOPE(1,1)+C,3),COLORRED,LINETHICK3; YY1:=EMA(SLOPE(1,1)+C,7),COLORBLUE; DRAWTEXT(COUNT (XX1<YY1,5)=4 AND XX1>=YY1,C*0.95,'', COLORRED; 折线:ZIGZAG(C,20,1),COLORWHITE,LINETHICK2; 前波峰值:=PEAK(C,20,1,1); 前波谷值:=TROUGH(C,20,1,1); DRAWNUMBER1(折线>REF(折线,1) AND REF(折线,1)<REF(折线,2),REF(C,1),-(前波峰值-REF(C,1))/前波峰值*100,2); DRAWNUMBER1(折线<REF(折线,1) AND REF(折线,1)>REF(折线,2),REF(C,1),(REF(C,1)-前波谷值)/前波谷值*100,2); MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50; G1:=IF(MMS*-1>95,0,20); UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1); KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100)); KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100); 趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3); AA:=-100*(趋势线-CLOSE)/趋势线; AC:=(EMA(AA,5) ); SSL:=EMA(CLOSE,3); MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55); MM:=MA(MMV,1); STICKLINE1(((SSL>MM)),SSL,MM,0.01,0),COLORRED,LINETHICK3; 买线Q:=ZIGZAG(C,10,1); 卖线Q:=MA(买线,2); BUQ:=CROSS(买线Q,卖线Q); SELQ:=CROSS(卖线Q,买线Q); DRAWTEXT(BUQ,L*0.99,'#39),LINETHICK2,COLOR00FFFF; DRAWTEXT(SELQ,H*1.0,'#39),LINETHICK1,COLOR00FF00; //DRAWTEXT("X09A.T">0,L*0.99,'',LINETHICK6,COLORFFFFFF; //DRAWTEXT("X09A.T1">0,L*0.99,'',LINETHICK6,COLOR0000FF; STICKLINE1(买线Q>=卖线Q,LOW,HIGH,0.1,0),COLOR0000CC; STICKLINE1(买线Q>=卖线Q,CLOSE,OPEN,7,0),COLOR0000CC; STICKLINE1(买线Q<卖线Q,CLOSE,OPEN,7,0),COLORCCCC00; STICKLINE1(买线Q<卖线Q,LOW,HIGH,0.1,0),COLORCCCC00; STICKLINE1(CROSS(买线Q,卖线Q),OPEN,CLOSE,7,0),COLOR00AAFF; STICKLINE1(CROSS(卖线Q,买线Q),OPEN,CLOSE,7,0),COLOR00DD00; DRAWICON(CROSS(ZIGZAG(C,10,1),REF(ZIGZAG(C,10,1),1)),LOW*1.07,7); DRAWTEXT(CROSS(ZIGZAG(C,10,1),REF(ZIGZAG(C,10,1),1)),LOW*1.04,'#39); DRAWICON(CROSS(REF(ZIGZAG(C,10,1),1),ZIGZAG(C,10,1)),HIGH*1.04,8); DRAWTEXT(CROSS(REF(ZIGZAG(C,10,1),1),ZIGZAG(C,10,1)),HIGH*1.01,'#39); VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25); VAR2:=HIGH-REF(HIGH,1); VAR3:=REF(LOW,1)-LOW; VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25); VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25); VAR6:=VAR4*100/VAR1; VAR7:=VAR5*100/VAR1; VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15); VAR9:=(VAR8+REF(VAR8,15))/2; A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25); F:=100*(C-REF(C,1))/REF(C,1); AAA:=REF(CLOSE,1); BBB:=SMA(MAX(CLOSE-AAA,0),5,1)/SMA(ABS(CLOSE-AAA),5,1)*1000; HHH:=BBB-LLV(BBB,10); SS:=(MA(HHH,2)*3+HHH*13)/16; 短线买点:=IF(SS>13,MA(SS,2),SS)/6; 短线出击:IF(CROSS(短线买点,1) AND (短线买点<30),10,0),COLORYELLOW,LINETHICK2; MTM:=C-REF(C,1); DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6); YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0); 蓝:IF(FILTER(YXF=1,5),20,0),COLORBLUE,LINETHICK3; 红: IF(FILTER(YXF=1,5),10,0),COLORRED,LINETHICK2; 黄: IF(FILTER(YXF=1,5),5,0),COLORYELLOW,LINETHICK1; 量能饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100) ,COLORWHITE,LINETHICK3;
    老师这个指标只保留黄金分割线

     

     来源:程序化99

  • 文华技术人员:  参考:
    买线:=EMA(C,2);  卖线:=EMA(SLOPE(C,21)*20+C,42);  BU:=CROSS(买线,卖线);  SEL:=CROSS(卖线,买线);  AMOUNT:=AVPRICE*V; /*STICKLINE1(买线>=卖线,LOW,HIGH,0,1),COLORRED,LINETHICK3;  STICKLINE1(买线>=卖线,CLOSE,OPEN,3.2,1),COLORRED,LINETHICK3;  STICKLINE1(买线<卖线,LOW,HIGH,0,1),COLORGREEN;  STICKLINE1(买线<卖线,CLOSE,OPEN,3.2,1),COLORGREEN;  STICKLINE1(BU,OPEN,CLOSE,3.2,0),COLORYELLOW;  STICKLINE1(SEL,OPEN,CLOSE,3.2,0),COLORBLUE;  */ 主力:=EMA(CLOSE,10),COLORRED; 散户:=EMA(CLOSE,5),COLORYELLOW; 绿降:=(46.18*EMA (CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1;  操盘:=MA(CLOSE,9),COLORFF9C65,LINETHICK2; 界点:=MA(CLOSE,20);  AH:HHV(H,100),COLORMAGENTA;  AL:LLV(L,100); AHL:=AH-AL; //A23,COLORLIGHTRED,LINETHICK2;  AL+AHL*0.191,COLORWHITE;  A19:AL+AHL*0.191,COLORLIGHTRED;  A38:AL+AHL*0.382,COLORGREEN;  A50:AL+AHL*0.500,COLORRED;  A61:AL+AHL*0.618,COLORFF9CFF;  A80:AL+AHL*0.809,COLORCYAN;  DRAWTEXT(ISLASTBAR,AH,'最高 ',COLORAAAAAA;  DRAWTEXT(ISLASTBAR,A80,'0.809% ',COLORMAGENTA,LINETHICK2;  DRAWTEXT(ISLASTBAR,A50,'0.500% ',COLORAAAAAA,LINETHICK2;  DRAWTEXT(ISLASTBAR,A61,'0.618% ',COLOR00AAAA,LINETHICK2;  DRAWTEXT(ISLASTBAR,A38,'0.382% ',COLOR00AAAA,LINETHICK2;  DRAWTEXT(ISLASTBAR,A19,'0.191% ',COLORWHITE,LINETHICK2;  DRAWTEXT(ISLASTBAR,AL,'最低 ',COLORAAAAAA,LINETHICK2;  F1:=ZIGZAG(C,16,1);  XX1:=EMA(SLOPE(1,1)+C,3),COLORRED,LINETHICK3;  YY1:=EMA(SLOPE(1,1)+C,7),COLORBLUE;  DRAWTEXT(COUNT (XX1<YY1,5)=4 AND XX1>=YY1,C*0.95,'', COLORRED;  折线:=ZIGZAG(C,20,1),COLORWHITE,LINETHICK2;  前波峰值:=PEAK(C,20,1,1);  前波谷值:=TROUGH(C,20,1,1);  DRAWNUMBER1(折线>REF(折线,1) AND REF(折线,1)<REF(折线,2),REF(C,1),-(前波峰值-REF(C,1))/前波峰值*100,2);  DRAWNUMBER1(折线<REF(折线,1) AND REF(折线,1)>REF(折线,2),REF(C,1),(REF(C,1)-前波谷值)/前波谷值*100,2);  MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;  G1:=IF(MMS*-1>95,0,20);  UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);  KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));  KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);  趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);  AA:=-100*(趋势线-CLOSE)/趋势线;  AC:=(EMA(AA,5) );  SSL:=EMA(CLOSE,3);  MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);  MM:=MA(MMV,1);  //STICKLINE1(((SSL>MM)),SSL,MM,0.01,0),COLORRED,LINETHICK3;  买线Q:=ZIGZAG(C,10,1);  卖线Q:=MA(买线,2);  BUQ:=CROSS(买线Q,卖线Q);  SELQ:=CROSS(卖线Q,买线Q);  DRAWTEXT(BUQ,L*0.99,'#39),LINETHICK2,COLOR00FFFF;  DRAWTEXT(SELQ,H*1.0,'#39),LINETHICK1,COLOR00FF00;  //DRAWTEXT("X09A.T">0,L*0.99,'',LINETHICK6,COLORFFFFFF;  //DRAWTEXT("X09A.T1">0,L*0.99,'',LINETHICK6,COLOR0000FF;  /*STICKLINE1(买线Q>=卖线Q,LOW,HIGH,0.1,0),COLOR0000CC;  STICKLINE1(买线Q>=卖线Q,CLOSE,OPEN,7,0),COLOR0000CC;  STICKLINE1(买线Q<卖线Q,CLOSE,OPEN,7,0),COLORCCCC00;  STICKLINE1(买线Q<卖线Q,LOW,HIGH,0.1,0),COLORCCCC00;  STICKLINE1(CROSS(买线Q,卖线Q),OPEN,CLOSE,7,0),COLOR00AAFF;  STICKLINE1(CROSS(卖线Q,买线Q),OPEN,CLOSE,7,0),COLOR00DD00;  */ DRAWICON(CROSS(ZIGZAG(C,10,1),REF(ZIGZAG(C,10,1),1)),LOW*1.07,7);  DRAWTEXT(CROSS(ZIGZAG(C,10,1),REF(ZIGZAG(C,10,1),1)),LOW*1.04,'#39);  DRAWICON(CROSS(REF(ZIGZAG(C,10,1),1),ZIGZAG(C,10,1)),HIGH*1.04,8);  DRAWTEXT(CROSS(REF(ZIGZAG(C,10,1),1),ZIGZAG(C,10,1)),HIGH*1.01,'#39);  VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);  VAR2:=HIGH-REF(HIGH,1);  VAR3:=REF(LOW,1)-LOW;  VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);  VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);  VAR6:=VAR4*100/VAR1;  VAR7:=VAR5*100/VAR1;  VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);  VAR9:=(VAR8+REF(VAR8,15))/2;  A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25);  F:=100*(C-REF(C,1))/REF(C,1);  AAA:=REF(CLOSE,1);  BBB:=SMA(MAX(CLOSE-AAA,0),5,1)/SMA(ABS(CLOSE-AAA),5,1)*1000;  HHH:=BBB-LLV(BBB,10);  SS:=(MA(HHH,2)*3+HHH*13)/16;  短线买点:=IF(SS>13,MA(SS,2),SS)/6;  短线出击:=IF(CROSS(短线买点,1) AND (短线买点<30),10,0),COLORYELLOW,LINETHICK2;  MTM:=C-REF(C,1);  DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);  YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);  蓝:=IF(FILTER(YXF=1,5),20,0),COLORBLUE,LINETHICK3;  红:=IF(FILTER(YXF=1,5),10,0),COLORRED,LINETHICK2;  黄:=IF(FILTER(YXF=1,5),5,0),COLORYELLOW,LINETHICK1;  量能饱和度:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100) ,COLORWHITE,LINETHICK3;

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容