beyond202104 发表于 2023-8-28 16:41:18

波段提款机,波段类公式(通达信公式 副图 主图 测试图)


波段提款机,波段类公式
公式解释:红绿飘带有未来函数,虽然有未来,但是也是很好用的,适合波段。
红绿变色K线的柱子没有未来函数。
{波段提款机}SJ:=1; DRAWKLINE(H,O,L,C);Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;ZK1:(XMA(XMA(H,25),25)*SJ-XMA(XMA(L,25),25))*1*SJ+XMA(XMA(H,25),25)*SJ,LINETHICK1,COLORFF0000; {ZK1:(XMA(XMA(H,25),25)*SJ-XMA(XMA(L,25),25))*1*SJ+XMA(XMA(H,25),25)*SJ,DOTLINE,COLORBLUE;}ZD1:XMA(XMA(L,25),25)*SJ-(XMA(XMA(H,25),25)*SJ-XMA(XMA(L,25),25))*1*SJ,LINETHICK2,COLORRED;ZD2:EMA(ZD1,25)*SJ,COLORFF00FF,LINETHICK3;DRAWBAND(ZD1*SJ,RGB(55,0,0),ZD2*SJ,RGB(0,91,0));DRAWKLINE(H,O,L,C);{黄色底}STICKLINE(ZD1*SJ>LOW AND ZD1MIN(C,O) AND ZD1HIGH,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(ZD1*SJ>HIGH,HIGH,LOW,0,0),COLORYELLOW; HX:=HHV(HIGH,3);LX:=LLV(LOW,3);H1:=IF(HXCLOSE&&(HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);L1:=IF(LX>REF(LX,1)&&LX>REF(LX,3)&&LX>REF(LX,5)&&HX>REF(HX,1)&&HX>REF(HX,2)&&HX>REF(HX,4)&&OPEN0,REF(LX,4),0);H2:=VALUEWHEN(H1>0,H1);L2:=VALUEWHEN(L1>0,L1);K1:=IF(CLOSE>H2,-3,IF(CLOSE0,K1);G:=IF(K2=1,H2,L2);G1:=VALUEWHEN(ISLASTBAR,G);TMP:=K2;W1:=K2;W2:=OPEN-CLOSE;HT:=IF(OPEN>CLOSE,OPEN,CLOSE);LT:=IF(OPEN0,OPEN,CLOSE,3,1),COLORCYAN;STICKLINE(W1<=0,OPEN,CLOSE,3,1),COLORRED;STICKLINE(W2>0&&W1<=0,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(W2>0&&W1>0,OPEN,CLOSE,3,0),COLORCYAN;




oahaha 发表于 2023-11-3 22:21:15

希望更多人一起分享,感谢!

小泪无双瞧 发表于 2024-1-21 07:34:30

多谢分享!

次地摔舜 发表于 2024-3-25 00:52:21

过来看看的
页: [1]
查看完整版本: 波段提款机,波段类公式(通达信公式 副图 主图 测试图)