以下是通达信黑马起步源码牛熊波段指标公式(无源码的请下载附件导入)
VAR1:=EMA(CLOSE,8);
VAR2:=EMA(VAR1,20);
VAR3:=CROSS(VAR1,VAR2);
VAR4:=VAR1< EMA(CLOSE,120);
VAR5:=EMA(SMA((CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100,8,1),3);
天河过江龙: STICKLINE(VAR5>20 AND VAR5<80,VAR5,VAR5,6,1), , COLORYELLOW;
STICKLINE(VAR5>80,VAR5,VAR5,6,1), , COLORBLUE;
STICKLINE(VAR5<20,VAR5,VAR5,6,1), , COLORRED;
风险区: 80, , COLORMAGENTA;
牛熊线: 50, , COLORWHITE;
安全区: IF(VAR3 AND VAR4,50,20), , COLORGREEN;
649322393.png
|