David902 发表于 2023-5-12 12:30:32

2023长短大小顶底 牛熊逆转有序《通达信+指标+公式+副图+源码》分享


副图公式源码支持 手机/电脑

CHP1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;

CHP2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;

CHP3:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;

CHP4:=(CHP1+CHP2+CHP3)/3;

CHPMA3:=MA(CHP4,3);

CHPMA10:=MA(CHP4,10);

TJ1:=CHPMA3-CHPMA10>0;

CZ:=CHPMA3-CHPMA10;

STICKLINE(TJ1,CZ,0,0,0),COLOR0000FF;

STICKLINE(TJ1,CZ,0,3,0),COLOR000099;

STICKLINE(TJ1,CZ,0,2,0),COLOR0000BB;

STICKLINE(TJ1,CZ,0,1,0),COLOR0000DD;

STICKLINE(TJ1,CZ,0,0.3,0),COLOR0000FF;

TJ2:=CHPMA3-CHPMA10<0;

STICKLINE(TJ2,CZ,0,0,0),COLOR00FF00;

STICKLINE(TJ2,CZ,0,3,0),COLOR009900;

STICKLINE(TJ2,CZ,0,2,0),COLOR00BB00;

STICKLINE(TJ2,CZ,0,1,0),COLOR00DD00;

STICKLINE(TJ2,CZ,0,0.3,0),COLOR00FF00;

STICKLINE(CHP4>9 AND FILTER(CHP4
DRAWTEXT(CHP4>9 AND FILTER(CHP4
CHA2:=HHV(CHP4>20,10);

CHA3:=COUNT(CHP4<-20,10)>=1;

STICKLINE(FILTER(CHP4<-9 AND CHP4>REF(CHP4,1),18),CZ*1.5,0,1,0),colormagenta;

DRAWTEXT(FILTER(CHP4<-9 AND CHP4>REF(CHP4,1),18),CZ*1.2,'小底'),COLOR0000FF;

STICKLINE(CHP4<-20 AND FILTER(CHP4> REF(CHP4,1),5),CZ*1.5,0,1,0),coloryellow;

DRAWTEXT(CHP4<-20 AND FILTER(CHP4> REF(CHP4,1),5),CZ*1.3,'大底'),coloryellow;

STICKLINE(CHP4>20 AND FILTER(CHP4
DRAWTEXT(CHP4>20 AND FILTER(CHP4
STICKLINE(CHA2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),CZ*1.5,0,1,0),COLOR00FFFF;

DRAWTEXT(CHA2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),CZ*1.4,'降'),COLOR00FFFF;

STICKLINE(CHA3 AND CROSS(MA(CLOSE,20)-2*STD(CLOSE,20),(REF(HIGH,1)+REF(LOW,1))/2),CZ*1.5,0,1,0),COLOR00FFFF;

DRAWTEXT(CHA3 AND CROSS(MA(CLOSE,20)-2*STD(CLOSE,20),(REF(HIGH,1)+REF(LOW,1))/2),CZ*1.4,'涨'),COLOR00FFFF;



选股公式源码



{选股公式一:小底}

CHP1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;

CHP2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;

CHP3:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;

CHP4:=(CHP1+CHP2+CHP3)/3;

CHPMA3:=MA(CHP4,3);

CHPMA10:=MA(CHP4,10);

TJ1:=CHPMA3-CHPMA10>0;

CZ:=CHPMA3-CHPMA10;

小底:FILTER(CHP4<-9 AND CHP4>REF(CHP4,1),18);



{选股公式二:大底}

CHP1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;

CHP2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;

CHP3:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;

CHP4:=(CHP1+CHP2+CHP3)/3;

CHPMA3:=MA(CHP4,3);

CHPMA10:=MA(CHP4,10);

TJ2:=CHPMA3-CHPMA10<0;

大底:CHP4<-20 AND FILTER(CHP4> REF(CHP4,1),5);

{选股公式三:涨}

CHP1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;

CHP2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;

CHP3:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;

CHP4:=(CHP1+CHP2+CHP3)/3;

CHPMA3:=MA(CHP4,3);

CHPMA10:=MA(CHP4,10);

TJ1:=CHPMA3-CHPMA10>0;

CZ:=CHPMA3-CHPMA10;

TJ2:=CHPMA3-CHPMA10<0;

CHA2:=HHV(CHP4>20,10);

CHA3:=COUNT(CHP4<-20,10)>=1;

涨:CHA3 AND CROSS(MA(CLOSE,20)-2*STD(CLOSE,20),(REF(HIGH,1)+REF(LOW,1))/2);

转寰 发表于 2023-5-17 15:08:47

相当不错,感谢无私分享精神!

小三说要灭婊婊r 发表于 2023-8-9 14:33:10

已收藏,以后会常来!

平淡744 发表于 2023-9-16 05:04:07

尝试一下

朔原衔 发表于 2023-10-21 14:50:35

群众力量就是大,分享万岁!
页: [1]
查看完整版本: 2023长短大小顶底 牛熊逆转有序《通达信+指标+公式+副图+源码》分享