您现在的位置:程序化交易>> 股票公式>> 通达信>> 通达信知识>>正文内容

[求助]请修改公式 [通达信]

  • 咨询内容: 请把下面公式修改成金叉买多,死叉卖空的选股公式: RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; 强势区:90, COLORFF8888; 弱势区:10, COLOR808040; VAR1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100; VAR2:=SMA(VAR1,3,1); VAR3:=SMA(VAR2,3,1); VAR4:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV (LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); BQ:=IF(CROSS(10,VAR4),1,1); VAR5:=CROSS(VAR4,10) AND VAR3<12; 抄底:IF(VAR5,10,0), COLORFF00DD; VAR6:=(2*CLOSE+HIGH+LOW)/4; VAR7:=LLV(LOW,N); VAR8:=HHV(HIGH,N); VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,N1); VAR10:=EMA(0.667*REF(VAR9,1)+0.337*VAR9,N2); VARR:=EMA(VAR10,48); STICKLINE(VARR>=REF(VARR,1),VARR,REF(VARR,1),6,0),COLORRED; STICKLINE(VARR85,90,100), COLOR0088EE; STICKLINE(VAR9>=VAR10,VAR9,VAR10,3.900,0), COLORRED; STICKLINE(VAR9CLOSE,OPEN,CLOSE); LT:=IF(OPENA,1,-1); B11:=B-REF(B,1); BB2:=REF(B1,1); KF:=(EMA(CLOSE,24)-EMA(CLOSE,4))/2*0.950; DF:=(EMA(CLOSE,4)-EMA(CLOSE,24))/2*0.950; DT:=DF; KT:=KF; JL:=DF-KF; JL1:=MA(JL,1); STICKLINE(DF>KF,48.5,51.5,2.800,0),COLORRED; STICKLINE(KF>DF,48.5,51.5,2,0), COLORGREEN;

     

     来源:C X H 9 9 .C O M )

  • 通达信技术部: 公式编写帮助,可参考官网的红宝书http://help.tdx.com.cn/book.asp

 

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

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


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

相关文章

    没有相关内容