亲亲阳光非 发表于 2023-4-21 17:23:38

通达信指标公式源码顶底转折指标公式



顶:=BBI+3*STD(BBI,13),COLOR004AFF;

底:=BBI-3*STD(BBI,13),COLOR67FF00;

KU1:=IF(HIGH=HHV(HIGH,3),1,0);

KD1:=IF(LOW=LLV(LOW,3),1,0);

UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));

DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));

HV:=H > UL AND H > REF(H,1) ;

LV:=L < DL AND L < REF(L,1) ;

GP:=BARSLAST(HV);

DP:=BARSLAST(LV);

IP:=IF(GP=0,DP,GP) > 3;

HHV1:=HV AND IP AND H >=HHV(H,BARSLAST(LV));

LV1:=LV AND IP AND L <=LLV(L,BARSLAST(HV));

DRAWBAND(BBI,RGB(97,95,00),顶,RGB(97,95,00));

DRAWBAND(BBI,RGB(25,75,150),底,RGB(25,75,250));

DRAWLINE(LV1,LOW,HHV1, HIGH,0),COLORYELLOW,LINETHICK2;

DRAWLINE(HHV1,HIGH,LV1, LOW,0),COLORMAGENTA,LINETHICK2;

STICKLINE(CLOSE > REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;

STICKLINE(CLOSE > REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR000055;

STICKLINE(CLOSE > REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000077;

STICKLINE(CLOSE > REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099;

STICKLINE(CLOSE > REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;

STICKLINE(CLOSE > REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;

STICKLINE(CLOSE > REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;

STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;

STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;

STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;

STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;

STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;

STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;

STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;

STICKLINE(CLOSE < REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;

STICKLINE(CLOSE < REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR990000;

STICKLINE(CLOSE < REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLORCC0000;

STICKLINE(CLOSE < REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;

STICKLINE(CLOSE < REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;

风险提示:本指标公式仅作为知识分享,不构成任何投资建议,不作投资依据。




深爱苏菲辽 发表于 2023-4-25 02:26:09

找到好贴不容易,我顶你了,谢了

小马奔腾2017 发表于 2023-5-4 15:58:46

好好 学习了 确实不错

天下非公呵 发表于 2023-6-7 06:22:17

好东西,收了

张家界李泉认 发表于 2023-7-14 08:10:29

这里资源很丰富啊

礼宾天团飙车党 发表于 2023-8-10 16:11:58

功德无量!

回忆天蓝色净 发表于 2023-8-23 17:27:50

好贴不能沉!

人送外号小虎比 发表于 2023-8-27 22:34:01

多谢分享下载收藏了

分分过来腹 发表于 2023-9-13 11:13:46

感谢感谢!楼主功德无量,哈哈!

司马逸靠 发表于 2023-9-15 14:57:39

我是个凑数的。。。
页: [1] 2
查看完整版本: 通达信指标公式源码顶底转折指标公式