顶背理

N:=16;M1:=9;M2:=3;
RSV=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
a=SMA(RSV,M1,1);
b=SMA(a,M2,1);
e=3*a-2*b;
IF(a<0) a=0;
IF(a>100) a=100;
IF(b<0) b=0;
IF(b>100) b=100;
IF(e<0) e=0;
IF(e>100) e=100;
K:a;
J:e;
STICKLINE(J>0 AND J-K>=0,99,100,8,0),colorred,linethick2;
STICKLINE(J>0 AND J-K<0,99,100,8,0),COLOR00FF00,linethick2;
STICKLINE(J>0 AND J-K>=0,09,10,8,0),colorred,linethick2;
STICKLINE(J>0 AND J-K<0,09,10,8,0),COLOR00FF00,linethick2;
MAKJ:=(K+J)/2;
XA:IF (J>=K,J,MAKJ),colorred,linethick2;
XB:IF (J>=K,K,MAKJ),colorred,linethick2;
XC:IF (J<=K,J,MAKJ),Color00ff00,linethick2;
XD:IF (J<=K,K,MAKJ),Color00ff00,linethick2;
XX:MAKJ,colorwhite,linethick2;
f:=90;
g:=10;工作:EMA(CLOSE,5),COLORFFFFFF;
操盘:MA(CLOSE,9),COLORFFFF00;
DRAWICON( FILTER(CROSS(工作,操盘),1),L*0.97,1);
DRAWICON( FILTER(CROSS(操盘,工作),1),H*1.03,2);
V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
STICKLINE(V2>=1,O,C,1,0),coloryellow;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.94),'底背离'),coloryellow;
AA:=(HHV(HIGH,20) - (2 * ATR));
BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));
SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);
BBB:=BARSLAST(BB);
SSSB:=BARSLAST(SSS);
B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));
B1B:=BARSLAST(B1);
B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));
B2B:=BARSLAST(B2);
B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 
(0)

相关推荐