怎么把同花顺跟着主力走指标改在通达信软件

2024-11-01 01:26:52
推荐回答(1个)
回答(1):

你好,根据你的要求,已经做好了修改,指标代码如下。这个指标使用了未来函数,请认真看下面的图形文字说明后再使用,

VAR1:=HHV(HIGH,9)-CLOSE/HHV(HIGH,9)-LLV(LOW,9)*100-70;

VAR2:=(2*CLOSE+HIGH+LOW)/4;{沟通3385478641}

VAR3:=SMA(CLOSE-LLV(LOW,9)/HHV(HIGH,9)-LLV(LOW,9)*100,3,1);

差值指标:(EMA((VAR2-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,13)-EMA(0.667*REF(EMA((VAR2-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,13),1)+0.333*EMA((VAR2-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,13),2))*25,POINTDOT,COLOR33CC00;

STICKLINE( 差值指标>=0 ,0 ,差值指标,2,0),COLORYELLOW;

STICKLINE( 差值指标>=0 ,0 ,差值指标*0.8,2,0),COLORFFAA66;

STICKLINE( 差值指标>=0 ,0 ,差值指标*0.6,2,0),COLORFFBB99;

STICKLINE( 差值指标>=0 ,0 ,差值指标*0.4,2,0),COLORFFCCCC;

STICKLINE( 差值指标>=0 ,0 ,差值指标*0.2,2,0),COLORFFDDDD;

STICKLINE( 差值指标<=0 ,0 ,差值指标*1,2,0),COLORGREEN;

STICKLINE( 差值指标<=0 ,0 ,差值指标*0.8,2,0),COLOR33CC00;

STICKLINE( 差值指标<=0 ,0 ,差值指标*0.6,2,0),COLOR339900;

STICKLINE( 差值指标<=0 ,0 ,差值指标*0.4,2,0),COLOR337700;

STICKLINE( 差值指标<=0 ,0 ,差值指标*0.2,2,0),COLOR005500;

炒股线:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORMAGENTA,LINETHICK2;

底背离: IF((EMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,30)-LLV(LOW,36))*4,4)*25<10),110,150),COLORYELLOW;

顶背离: IF((EMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,30)-LLV(LOW,36))*4,4)*25>90),40,0), COLORRED;

DRAWTEXT(CROSS((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))),(10)),L,'←底'),COLOR0000FF;

VARD:=(ZIG(3,8)<=REF(ZIG(3,8),1)) AND (REF(ZIG(3,8),1)>=REF(ZIG(3,8),2)) AND (REF(ZIG

(3,8),2)>=REF(ZIG(3,8),3))AND (REF(ZIG(3,8),3)>=REF(ZIG(3,8),4));

STICKLINE((VARD=1),(EMA(((2*C+H+L)/4-LLV(L,21))/(HHV(H,21)-LLV(L,34))*100,5)-2),0,2,0),COLOR00FF00;

DRAWTEXT((VARD=1),(EMA(((2*C+H+L)/4-LLV(L,21))/(HHV(H,21)-LLV(L,34))*100,5)+5),'逃顶'),COLOR00FF00;

选股买点: IF(TROUGHBARS(3,16,1)=1 AND HIGH>LOW+0.04,50,0), COLORYELLOW;

DRAWTEXT(CROSS( 选股买点,1),50,'选股买点'), COLORYELLOW;

股理乾坤为您解答