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

老师看看这个能实现吗 [文华财经]

  • 咨询内容:  X1:=(C+L+H)/3;X2:=EMA(X1,1);X3:=EMA(X2,3);X4:=EMA(X3,13);X5:=EMA(X4,3);STICKLINE(X4>=X5,X4,X5,10,0),COLORRED;STICKLINE(X4<X5,X4,X5,10,0),COLORGREEN;

    N:=25;天机线:EMA(EMA(C,N),N),COLORRED,LINETHICK1;B:=天机线>REF(天机线,1);IF(B-1,天机线,NULL),COLORGREEN,LINETHICK1;
    AA:=EMA(C,N) > EMA(C,N);BB:=EMA(C,N) < EMA(C,N);CC:= EMA(C,N) > EMA(C,N);CC1:=EMA(C,N) < EMA(C,N);DD:=CLOSE<=OPEN;DD1:=CLOSE>OPEN;
    E:=EMA(EMA(C,10),10),COLORRED,LINETHICK2;//PARTLINE1(REF(E,1)>E,E),LINETHICK2,COLOR00FF00;//PARTLINE1(REF(E,1)<E,E),LINETHICK2,COLORRED;
    TY:=CLOSE;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);A:=REF(CLOSE,BARSLAST(HD));B1:=REF(CLOSE,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);VAR3:=LLV(H,240);VAR4:=100*(C-VAR3)/VAR3;VAR5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100;VAR6:=(C-LLV(C,530))/(HHV(C,530)-LLV(C,530))*100;VAR7:=0;VAR8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100;VAR9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100;VARA:=BARSCOUNT(C);VARB:=VAR8<20 AND VAR9<23 AND VARA>35;VARC:=VARB AND COUNT(VARB,1)=1;VARD:=EMA(C,21)-EMA(C,8);VARE:=EMA(VARD,5);VARF:=(361)<4 AND CROSS(VARD,VARE);VAR10:=IF((3161)=0 AND H>L+0.04,4,0);
    LC:=REF(CLOSE,1);WRSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWICON(CROSS(WRSI,15),L,4),VALIGN0;DRAWICON(CROSS(85,WRSI),H,5),VALIGN2;

    只要红绿线, 不要附带的小红色绿色方块了。  


     

     来源:程序化99

  • 文华技术人员:  参考:
     X1:=(C+L+H)/3; X2:=EMA(X1,1); X3:=EMA(X2,3); X4:=EMA(X3,13); X5:=EMA(X4,3);
    N:=25; 天机线:EMA(EMA(C,N),N),COLORRED,LINETHICK1; B:=天机线>REF(天机线,1); IF(B-1,天机线,NULL),COLORGREEN,LINETHICK1;
    AA:=EMA(C,N) > EMA(C,N); BB:=EMA(C,N) < EMA(C,N); CC:= EMA(C,N) > EMA(C,N); CC1:=EMA(C,N) < EMA(C,N); DD:=CLOSE<=OPEN; DD1:=CLOSE>OPEN;
    E:=EMA(EMA(C,10),10),COLORRED,LINETHICK2; //PARTLINE1(REF(E,1)>E,E),LINETHICK2,COLOR00FF00; //PARTLINE1(REF(E,1)<E,E),LINETHICK2,COLORRED;
    TY:=CLOSE; 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); A:=REF(CLOSE,BARSLAST(HD)); B1:=REF(CLOSE,BARSLAST(LD)); T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ; T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD); VAR3:=LLV(H,240); VAR4:=100*(C-VAR3)/VAR3; VAR5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100; VAR6:=(C-LLV(C,530))/(HHV(C,530)-LLV(C,530))*100; VAR7:=0; VAR8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100; VAR9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100; VARA:=BARSCOUNT(C); VARB:=VAR8<20 AND VAR9<23 AND VARA>35; VARC:=VARB AND COUNT(VARB,1)=1; VARD:=EMA(C,21)-EMA(C,8); VARE:=EMA(VARD,5); VARF:=(361)<4 AND CROSS(VARD,VARE); VAR10:=IF((3161)=0 AND H>L+0.04,4,0);
    LC:=REF(CLOSE,1); WRSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWICON(CROSS(WRSI,15),L,4),VALIGN0; DRAWICON(CROSS(85,WRSI),H,5),VALIGN2;

     

     来源: WWW.CXH99.COM

  • 文华客服:  谢谢老师,再麻烦老师加一下条件。
    红色线上,k线用红色空心实心,声音提示;绿色线下,k线用绿色空心实心,声音提示。
    谢谢老师,拜托了!

     

  • 网友回复:  参考:
    X1:=(C+L+H)/3; X2:=EMA(X1,1); X3:=EMA(X2,3); X4:=EMA(X3,13); X5:=EMA(X4,3);
    N:=25; 天机线:EMA(EMA(C,N),N),COLORRED,LINETHICK1; B:=天机线>REF(天机线,1); IF(B-1,天机线,NULL),COLORGREEN,LINETHICK1; DRAWCOLORKLINE(B&&C>天机线&&ISUP,COLORRED,1); DRAWCOLORKLINE(B&&C>天机线&&ISDOWN,COLORRED,0); DRAWCOLORKLINE(NOT(B)&&C<天机线&&ISUP,COLORGREEN,1); DRAWCOLORKLINE(NOT(B)&&C<天机线&&ISDOWN,COLORGREEN,0); C>天机线&&B,SOUND('A'); C<天机线&&NOT(B),SOUND('A');AA:=EMA(C,N) > EMA(C,N);BB:=EMA(C,N) < EMA(C,N);CC:= EMA(C,N) > EMA(C,N);CC1:=EMA(C,N) < EMA(C,N);DD:=CLOSE<=OPEN;DD1:=CLOSE>OPEN;
    E:=EMA(EMA(C,10),10),COLORRED,LINETHICK2;//PARTLINE1(REF(E,1)>E,E),LINETHICK2,COLOR00FF00;//PARTLINE1(REF(E,1)<E,E),LINETHICK2,COLORRED;
    TY:=CLOSE;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);A:=REF(CLOSE,BARSLAST(HD));B1:=REF(CLOSE,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);VAR3:=LLV(H,240);VAR4:=100*(C-VAR3)/VAR3;VAR5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100;VAR6:=(C-LLV(C,530))/(HHV(C,530)-LLV(C,530))*100;VAR7:=0;VAR8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100;VAR9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100;VARA:=BARSCOUNT(C);VARB:=VAR8<20 AND VAR9<23 AND VARA>35;VARC:=VARB AND COUNT(VARB,1)=1;VARD:=EMA(C,21)-EMA(C,8);VARE:=EMA(VARD,5);VARF:=(361)<4 AND CROSS(VARD,VARE);VAR10:=IF((3161)=0 AND H>L+0.04,4,0);
    LC:=REF(CLOSE,1);WRSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWICON(CROSS(WRSI,15),L,4),VALIGN0;DRAWICON(CROSS(85,WRSI),H,5),VALIGN2;  

 

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

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

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

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


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

相关文章

    没有相关内容