九毛八公式指标
RSV:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*200-100; 长K:SMA(RSV,25,1); 长D:SMA(长K,7,1),LINETHICK2; 长J:3*长K-2*长D; RS:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*200-100; 中K:SMA(RS,5,1); 中D:SMA(中K,3,1),COLORRED,LINETHICK2; 中J:3*中K-2*中D,COLORCYAN; AA:="KDJ.K#WEEK"; BB:="KDJ.D#WEEK"; AAA:="KDJ.K#MONTH"; BBB:="KDJ.D#MONTH"; 60分钟金叉:IF(CROSS("KDJ.K#MIN60","KDJ.D#MIN60"),-75,-100),COLOR00FFFF; 日金叉:IF((CROSS("KDJ.K#DAY","KDJ.D#DAY") AND ("KDJ.K#DAY" < 20)),-50,-100),COLOR00FF33; 周金叉:IF(CROSS(AA,BB),-25,-100),COLOR0000FF; 月金叉:IF(CROSS(AAA,BBB),0,-100),COLORFF9999; DRAWTEXT(60分钟金叉=-75,-70,'60分钟金叉')COLOR00FFFF; DRAWTEXT(日金叉=-50,-40,'日金叉')COLOR00FF33; DRAWTEXT(周金叉=-25,-20,'周金叉')COLORRED; DRAWTEXT(月金叉=0,2,'月金叉')COLORFF9999;
公式模块:
你好:
不用改,这段源码是为60分钟特制的。 必须在60分钟周期使用,其它周期无显示。