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

[求助]求大师改改源码,能够用在文华财经里 [文华财经]

  • 咨询内容: 楚河汉界引用公式 {公称名称: CHUS} AAA:=1;TT:=1; RC:=(REF(CLOSE,1)*AAA); XA:=IF((RC>HIGH),RC,0); XB:=IF(((HIGH>=RC) AND (RC>LOW)),HIGH,0); XC:=IF((RC<=LOW),HIGH,0); XD:=((XA+XB)+XC); YA:=IF((RC>HIGH),LOW,0); YB:=IF(((HIGH>=RC) AND (RC>LOW)),LOW,0); YC:=IF((RC<=LOW),RC,0); YD:=((YA+YB)+YC); ATR:=SMA((XD-YD),20,1); TT1: (EMA(CLOSE,20)+(2*ATR)),LINETHICK0; TT2: (EMA(CLOSE,20)-(2*ATR)),LINETHICK0; TT3: ((((TT1+TT1)+TT1)+TT2)/4),LINETHICK0; TT4: ((((TT1+TT2)+TT2)+TT2)/4),LINETHICK0; TT5: EMA(CLOSE,8),LINETHICK0; TT6: EMA(CLOSE,20),LINETHICK0; 楚河汉界决策系统 TT:=1; CHECK:=0; CHECK1:=0; AAA:=IF((((CHECK=0) OR (CHECK1=0)) AND (TT=1)),1,0); TD:=DATATYPE; TT5:=(IF((TD=1),"CHUS.TT1#min5",IF((TD=2),"CHUS.TT1#min15",IF((TD=3),"CHUS.TT1#min60",IF((TD=4),"CHUS.TT1#min60",IF((TD=5),"CHUS.TT1#day",IF((TD=6),"CHUS.TT1#week","CHUS.TT1#year"))))))*TT); TT6:=(IF((TD=1),"CHUS.TT2#min5",IF((TD=2),"CHUS.TT2#min15",IF((TD=3),"CHUS.TT2#min60",IF((TD=4),"CHUS.TT2#min60",IF((TD=5),"CHUS.TT2#day",IF((TD=6),"CHUS.TT2#week","CHUS.TT2#year"))))))*TT); A3:=(IF((TD=1),"CHUS.TT3#min5",IF((TD=2),"CHUS.TT3#min15",IF((TD=3),"CHUS.TT3#min60",IF((TD=4),"CHUS.TT3#min60",IF((TD=5),"CHUS.TT3#day",IF((TD=6),"CHUS.TT3#week","CHUS.TT3#year"))))))*TT); A4:=(IF((TD=1),"CHUS.TT4#min5",IF((TD=2),"CHUS.TT4#min15",IF((TD=3),"CHUS.TT4#min60",IF((TD=4),"CHUS.TT4#min60",IF((TD=5),"CHUS.TT4#day",IF((TD=6),"CHUS.TT4#week","CHUS.TT4#year"))))))*TT); XC:=(IF((TD=1),"CHUS.TT5#min5",IF((TD=2),"CHUS.TT5#min15",IF((TD=3),"CHUS.TT5#min60",IF((TD=4),"CHUS.TT5#min60",IF((TD=5),"CHUS.TT5#day",IF((TD=6),"CHUS.TT5#week","CHUS.TT5#year"))))))*TT); XD:=(IF((TD=1),"CHUS.TT6#min5",IF((TD=2),"CHUS.TT6#min15",IF((TD=3),"CHUS.TT6#min60",IF((TD=4),"CHUS.TT6#min60",IF((TD=5),"CHUS.TT6#day",IF((TD=6),"CHUS.TT6#week","CHUS.TT6#year"))))))*TT); FILLRGN(((XC >= XD) AND (AAA = 1)),EMA(TT5,4),EMA(TT6,4)),color9966CC; FILLRGN(((XC < XD) AND (AAA = 1)),EMA(TT5,4),EMA(TT6,4)),colorFFFF00; FILLRGN(((EMA(CLOSE,8)>=EMA(CLOSE,20)) AND (AAA=1)),EMA(A3,4),EMA(A4,4)),colorFF99CC; FILLRGN(((EMA(CLOSE,8)vh(i) then vh(i)=vo(i) else vh(i)=vh(i) if vo(i) KK:=IF(((FC>=FO) AND ((FC>=REF(FC,1)) OR (REF(FC,1)>=REF(FO,1)))),1,IF(((FCFO) AND (TT=1)) AND (AAA=1)),FH,FL,0.4,0),colorFF; STICKLINE((((FO>FC) AND (TT=1)) AND (AAA=1)),FH,FL,0.4,0),colorFF0000; STICKLINE(((((KK=1) AND (FC>=FO)) AND (TT=1)) AND (AAA=1)),FO,FC,8,0),colorFF; STICKLINE(((((KK=1) AND (FC < FO)) AND (TT=1)) AND (AAA=1)),FO,FC,8,0),colorFF; STICKLINE(((((KK=(0-1)) AND (FC>=FO)) AND (TT=1)) AND (AAA=1)),FO,FC,8,0),colorFF0000; STICKLINE(((((KK=(0-1)) AND (FC=FO)) AND (TT=1)) AND (AAA=1)),FO,FC,8,0),colorFF; STICKLINE(((((KK=0) AND (FC=REF(西楚霸王,1)) AND (AAA=1)),西楚霸王),LINETHICK3,colorFF; PARTLINE(((西楚霸王 

  • 文华技术人员:

    您1楼的源码是不完整,请核实一下。

     

    另外,您这个是什么软件上的源码?

 

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

可联系技术人员 QQ: 1145508240  有需要帮忙请点击这里留言!!!进行 有偿 编写!不贵!点击查看价格!


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

相关文章

    没有相关内容