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

修改指标,麻烦 [文华财经]

  • 咨询内容:  画出的线,不用加粗N:=340;P:=15;地:MA((LOW+HIGH+CLOSE*2)/4,7),COLORGREEN,LINETHICK2;天:HHV(地,9),COLORFF8000,LINETHICK2;人:IF(地<天,(地-(天-地)),天),COLORYELLOW,LINETHICK1;V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY:=REF(EMA(V1,3),1);X2:=C;X3:=HY;RSV1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;KK1:=SMA(RSV1,3,1);DD1:=SMA(KK1,3,1);JJ:=3*KK1-2*DD1;RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100; K12:=SMA(RSV12,3,1); D12:=SMA(K12,3,1); J12:=3*K12-2*D12; RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; K24:=SMA(RSV24,3,1); D24:=SMA(K24,3,1); J24:=3*K24-2*D24; 顶线:=IF(CROSS(J24,JJ),H,REF(H,BARSLAST(CROSS(J24,JJ)))),COLORFF80C9,POINTDOT;底线:=IF(CROSS(JJ,J24),L,REF(L,BARSLAST(CROSS(JJ,J24)))),COLORGREEN,POINTDOT;ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE1(ZDF>9.5,O,C,6,0),COLORRED;STICKLINE1(ZDF<-9.5,O,C,6,0),COLORBLUE;TY:=C;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10); A1:=REF(C,BARSLAST(HD));B:=REF(C,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波浪顶:=IF(T1,A1,A1),COLORFF00FF,POINTDOT,LINETHICK1;STICKLINE1(T1,A1,A1,9,0),COLORFF00FF;波浪底:=IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1; LC:=REF(CLOSE,1);RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); K:=SMA(RSV,3,1);D:=SMA(K,3,1);YX:=((CLOSE > LC) AND ISUP);KK:=HHV(K,5);DD:=HHV(D,5);D1:=REF(D,1);K1:=REF(K,1);DRAWTEXT((((D1 < 30) AND CROSS(K,D)) AND YX),(LOW * 1),'△'),COLORYELLOW;上收:=C;VA1:=EMA(上收,8); VA2:=EMA(上收,20); MID : = MA(CLOSE,N);UPPER: =MID + P*STD(CLOSE,N);LOWER:= MID - P*STD(CLOSE,N);M5:=MA(C,IF(BARSCOUNT( C)>5,5,0));M15:=MA(C,IF(BARSCOUNT( C)>15,15,0));M30:=MA(C,IF(BARSCOUNT( C)>30,30,0));M60:=MA(C,IF(BARSCOUNT( C)>60,60,0));A:=IF(M5>=M15,1,0)+IF(M5>=M30,1,0)+IF(M5>=M60,1,0)+IF(M15>=M30,1,0)+IF(M15>=M60,1,0)+IF(M30>=M60,1,0)+IF(M60>=REF(M60,1),1,0);用于定位:=5 , COLOR000000,POINTDOT ; 

     

  • 文华技术人员:  参考:
    N:=340;P:=15;地:MA((LOW+HIGH+CLOSE*2)/4,7),COLORGREEN;天:HHV(地,9),COLORFF8000;人:IF(地<天,(地-(天-地)),天),COLORYELLOW;V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY:=REF(EMA(V1,3),1);X2:=C;X3:=HY;RSV1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;KK1:=SMA(RSV1,3,1);DD1:=SMA(KK1,3,1);JJ:=3*KK1-2*DD1;RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100; K12:=SMA(RSV12,3,1); D12:=SMA(K12,3,1); J12:=3*K12-2*D12; RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; K24:=SMA(RSV24,3,1); D24:=SMA(K24,3,1); J24:=3*K24-2*D24; 顶线:=IF(CROSS(J24,JJ),H,REF(H,BARSLAST(CROSS(J24,JJ)))),COLORFF80C9,POINTDOT;底线:=IF(CROSS(JJ,J24),L,REF(L,BARSLAST(CROSS(JJ,J24)))),COLORGREEN,POINTDOT;ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE1(ZDF>9.5,O,C,6,0),COLORRED;STICKLINE1(ZDF<-9.5,O,C,6,0),COLORBLUE;TY:=C;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10); A1:=REF(C,BARSLAST(HD));B:=REF(C,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波浪顶:=IF(T1,A1,A1),COLORFF00FF,POINTDOT;STICKLINE1(T1,A1,A1,9,0),COLORFF00FF;波浪底:=IF(T2,B,B),COLOR80FF00,POINTDOT; LC:=REF(CLOSE,1);RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); K:=SMA(RSV,3,1);D:=SMA(K,3,1);YX:=((CLOSE > LC) AND ISUP);KK:=HHV(K,5);DD:=HHV(D,5);D1:=REF(D,1);K1:=REF(K,1);DRAWTEXT((((D1 < 30) AND CROSS(K,D)) AND YX),(LOW * 1),'△'),COLORYELLOW;上收:=C;VA1:=EMA(上收,8); VA2:=EMA(上收,20); MID : = MA(CLOSE,N);UPPER: =MID + P*STD(CLOSE,N);LOWER:= MID - P*STD(CLOSE,N);M5:=MA(C,IF(BARSCOUNT( C)>5,5,0));M15:=MA(C,IF(BARSCOUNT( C)>15,15,0));M30:=MA(C,IF(BARSCOUNT( C)>30,30,0));M60:=MA(C,IF(BARSCOUNT( C)>60,60,0));A:=IF(M5>=M15,1,0)+IF(M5>=M30,1,0)+IF(M5>=M60,1,0)+IF(M15>=M30,1,0)+IF(M15>=M60,1,0)+IF(M30>=M60,1,0)+IF(M60>=REF(M60,1),1,0);用于定位:=5 , COLOR000000,POINTDOT ; 

     

  • 文华客服:  三线数值一样是,也就是合一时,线型改为红色虚线 

     

  • 网友回复:  参考:
    N:=340;P:=15;地:MA((LOW+HIGH+CLOSE*2)/4,7),COLORGREEN;天:HHV(地,9),COLORFF8000;人:IF(地<天,(地-(天-地)),天),COLORYELLOW;IF(天=地&&地=人,天,NULL),COLORRED;V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY:=REF(EMA(V1,3),1);X2:=C;X3:=HY;RSV1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;KK1:=SMA(RSV1,3,1);DD1:=SMA(KK1,3,1);JJ:=3*KK1-2*DD1;RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100; K12:=SMA(RSV12,3,1); D12:=SMA(K12,3,1); J12:=3*K12-2*D12; RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; K24:=SMA(RSV24,3,1); D24:=SMA(K24,3,1); J24:=3*K24-2*D24; 顶线:=IF(CROSS(J24,JJ),H,REF(H,BARSLAST(CROSS(J24,JJ)))),COLORFF80C9,POINTDOT;底线:=IF(CROSS(JJ,J24),L,REF(L,BARSLAST(CROSS(JJ,J24)))),COLORGREEN,POINTDOT;ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE1(ZDF>9.5,O,C,6,0),COLORRED;STICKLINE1(ZDF<-9.5,O,C,6,0),COLORBLUE;TY:=C;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10); A1:=REF(C,BARSLAST(HD));B:=REF(C,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波浪顶:=IF(T1,A1,A1),COLORFF00FF,POINTDOT;STICKLINE1(T1,A1,A1,9,0),COLORFF00FF;波浪底:=IF(T2,B,B),COLOR80FF00,POINTDOT; LC:=REF(CLOSE,1);RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); K:=SMA(RSV,3,1);D:=SMA(K,3,1);YX:=((CLOSE > LC) AND ISUP);KK:=HHV(K,5);DD:=HHV(D,5);D1:=REF(D,1);K1:=REF(K,1);DRAWTEXT((((D1 < 30) AND CROSS(K,D)) AND YX),(LOW * 1),'△'),COLORYELLOW;上收:=C;VA1:=EMA(上收,8); VA2:=EMA(上收,20); MID : = MA(CLOSE,N);UPPER: =MID + P*STD(CLOSE,N);LOWER:= MID - P*STD(CLOSE,N);M5:=MA(C,IF(BARSCOUNT( C)>5,5,0));M15:=MA(C,IF(BARSCOUNT( C)>15,15,0));M30:=MA(C,IF(BARSCOUNT( C)>30,30,0));M60:=MA(C,IF(BARSCOUNT( C)>60,60,0));A:=IF(M5>=M15,1,0)+IF(M5>=M30,1,0)+IF(M5>=M60,1,0)+IF(M15>=M30,1,0)+IF(M15>=M60,1,0)+IF(M30>=M60,1,0)+IF(M60>=REF(M60,1),1,0);用于定位:=5 , COLOR000000,POINTDOT ; 

     

  • 网友回复: 这么译对不 地:MA((LOW+HIGH+CLOSE*2)/4,7),COLORGREEN,LINETHICK2;//7天内的最高价,最低价,2倍盘价的算数平均,画线天:HHV(地,9),COLORFF8000,LINETHICK2;//9个地线的最高价,画线人:IF(地<天,(地-(天-地)),天),COLORYELLOW,LINETHICK1;//如果,地小于天,画线(地-(天-地)),否则画线和天一样

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


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

相关文章

    没有相关内容