10,coloryellow; 生命指數(shù): 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 90,colorgreen; 頂:IF(生命指數(shù)>90,80,90); 底:IF(生命指數(shù)<10,30,10),coloryellow; 買入時(shí)間: IF(CROSS(生命指數(shù),底),40,0); N1:=3;N2:=7;N3:=21; LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100; ZB1:=RSI1<底; 建倉(cāng):IF(CROSS(RSI1,底) ,30,0),LINETHICK1; DRAWICON(建倉(cāng) AND 買入時(shí)間,20,11); DRAWICON(CROSS(RSI1,底) ,30,11); ZB2:=(ZB1=0 AND RSI1<=頂); 賣出:IF(ZB2=1 AND REF(ZB2,1)=0 AND 建倉(cāng)=0,80,100),LINETHICK1;
|