通達(dá)信的 五線布林線指標(biāo)公式:
{ 小天-KDJ 原參數(shù)為KDJ(N=13,N1=55),POPOZZZ改為KDJ(N=7,N1=49) }
NN:=20;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
RSV24:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=3*K24-2*D24;
支撐位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLORYELLOW,LINETHICK3;
壓力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),COLORRED,LINETHICK3;
U2L:=IF(C>=MA(C,NN),80,50);
L2L:=IF(C>=MA(C,NN),50,20);
RH1:=IF(J< U2L AND REF(J,1)>=U2L,HHV(REF(H,1),BARSLAST(J>=U2L AND REF(J,1)< U2L)-1), REF(HHV(REF(H,1),BARSLAST(J>=U2L AND REF(J,1)< U2L)-1),BARSLAST(J< U2L AND REF(J,1))));
RH4:=IF(H>RH1,L,REF(L,BARSLAST(H>RH1)));
RH42:=IF(H>RH1,J,REF(J,BARSLAST(H>RH1)));
{逃頂線}RH5:IF(H>RH4 AND J< RH42 AND J< J24,H,REF(H,BARSLAST(H>RH4 AND J< RH42 AND J< J24))),COLORMAGENTA,LINETHICK2;
RL1:=IF(J>L2L AND REF(J,1)<=L2L,LLV(REF(L,1),BARSLAST(J<=L2L AND REF(J,1)>L2L)-1), REF(LLV(REF(L,1),BARSLAST(J<=L2L AND REF(J,1)>L2L)-1),BARSLAST(J>L2L AND REF(J,1))));
RL4:=IF(L< RL1,H,REF(H,BARSLAST(L< RL1)));
RL42:=IF(L< RL1,J,REF(J,BARSLAST(L< RL1)));
{抄底線}RL5:IF(L< RL4 AND J>RL42 AND J>J24,L,REF(L,BARSLAST(L< RL4 AND J>RL42 AND J>J24))),COLORGREEN,LINETHICK2;
{小天導(dǎo)航:MA(C,3),COLORWHITE;}
CB:=AMOUNT/V/100;
CD:=CB>H OR CB< L;
STICKLINE(CD<1,CB-0.002,CB+0.002,2.5,1),COLORYELLOW;
{POPOZZZ 五線布林}
中軌:MA(CLOSE,20),COLORWHITE;
中軌☆:IF(中軌>REF(中軌,1) AND REF(中軌,1)>REF(中軌,2),中軌,DRAWNULL),COLORMAGENTA,LINETHICK1.5;
上上軌:中軌 + 2*STD(CLOSE,20),COLORRED;
下下軌:中軌 - 2*STD(CLOSE,20),COLORRED;
上軌:中軌 + STD(CLOSE,20),COLORYELLOW;
下軌:中軌 - STD(CLOSE,20),COLORYELLOW;
{STICKLINE(中軌<REF(中軌,1) AND REF(中軌,1)<REF(中軌,2),中軌*1.004,中軌*0.996,5,0),COLORBLUE ;}
{STICKLINE(中軌<REF(中軌,1) ,中軌*1.003,中軌*0.997,5,0),COLORBLUE ; }
{STICKLINE(中軌>REF(中軌,1) AND REF(中軌,1)>REF(中軌,2),中軌*1.004,中軌*0.996,5,0),COLORRED ;}
{義陽的金飯碗,從16萬到三百萬的神奇公式-量能平臺}
{B1:='^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^';}
B1:='- - - - - - - - - - - - - - - - - - - -';
量能平臺:DRAWTEXT(VOL=HHV(VOL,20),C ,B1),COLORGREEN;
義陽量能平臺★:11111,NODRAW,COLORGREEN;