VAR1:=EMA(EMA(CLOSE,9),9);KO:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
A10:=CROSS(KO,0);VAR2:=100*WINNER(CLOSE*0.95);BC:=CAPITAL*100/100000000,NODRAW; CB:=IF(C>350,MA((H+L+O+2*C)/5,5),MAX(AMOUNT/VOL/100,(H+L+O+2*C)/5)); QA:=IF(BC>=10,14,IF(BC>=5,9,IF(BC>=3.5,7,5))); AQ:=SUM(IF(CB>REF(CB,1),CB*VOL,0),QA)/SUM(IF(CB<REF(CB,1),CB*VOL,0),QA); FI:=MA((50-(100/(1+AQ)))*0.6,3); VR:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;QW:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100; 短乖離:=(C-MA(C,5))/MA(CLOSE,5)*100,POINTDOT,COLORGREEN,NODRAW; 中乖離:=EMA((C-MA(C,13))/MA(CLOSE,13)*100,2),POINTDOT,COLORLIBLUE,NODRAW; 長乖離:=(C-MA(C,26))/MA(CLOSE,26)*100,POINTDOT,COLOR0099FF,NODRAW;TTT:=FINANCE(7); 五天能量:IF(C>350,EMA(INDEXA/1000000000,5)*100/1000,IF(TTT>=3000000000, MA(VOL/10000,5)/10,IF(TTT<=150000000,MA(VOL/10000,5)*10,MA(VOL/10000,5)))),LINETHICK2,COLORWHITE; 十天能量:IF(C>350,EMA(INDEXA/1000000000,10)*100/1000,IF(TTT>=3000000000, MA(VOL/10000,10)/10,IF(TTT<=150000000,MA(VOL/10000,10)*10,MA(VOL/10000,10)))),LINETHICK2,COLORLICYAN; 周均換手:SUM(DYNAINFO(37),5)/5,NODRAW,COLORYELLOW; 月均換手:MA(DYNAINFO(37),21),NODRAW,COLORFC3399; 漲跌:(C-LLV(L,55))/LLV(L,55)*100,COLORFFCC33,NODRAW; 空方:0-(CB-LLV(L,6))/(HHV(H,6)-LLV(L,6))*10,COLORGREEN,LINETHICK1; 多方:0-(HHV(H,6)-CB)/(HHV(H,6)-LLV(L,6))*10,COLORRED,LINETHICK1; TM:=IF(REF(C,1)/C<1.105 AND REF(C,2)/REF(C,1)<1.105 AND REF(C,3)/REF(C,2)<1.105,1,0); N:=IF(HHV(C,20)/C>1.45 AND TM=1,6,9);M:=IF(FINANCE(34)>=2,13,9); NN:=IF(DYNAINFO(37)>13,3,M);A1:=IF(C>350,EMA(C,13),EMA(C,NN)); A1X:=EMA((A1-REF(A1,1)),2)/EMA(REF(A1,1),2)*100; OL:=IF(A1X>=0,REF(EMA(L,N-1),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)*1.005; FT:=IF(A1X<0,REF(EMA(H,N-1),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)*0.995; KI:=IF(C>300,EMA(C,13),COSTEX(C,MIN(OL,FT))),COLORFC3399,NODRAW; 波段獲利%:WINNER(KI)*100,COLOR0099FF,NODRAW; SAR13:SAR(13,2,20),NODRAW,COLORFF00FF; LC:=REF(CLOSE,1); RSI五:SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100,NODRAW,COLORFFCC33; ‖:IF(C>350,6,DRAWNULL),LINETHICK2.5,COLORGRAY; ‖1:-10,POINTDOT,COLORWHITE; ‖2:=10,POINTDOT,COLORWHITE; STICKLINE(KO<=0 AND MA(KO,2)>=REF(MA(KO,2),1),0,KO,2,1),COLOR0099FF; STICKLINE(VAR2>50 AND COST(85)<CLOSE AND KO>0,KO,0,2,0),COLORFF00FF; STICKLINE(KO<REF(KO,1) AND KO>0,KO,0,2,0),COLOR00FF00; STICKLINE(VR<QW,-0.3,0.3,2.8,1),COLORGREEN; STICKLINE(KO>REF(KO,1) AND KO>0,KO,0,2,0),COLORRED; STICKLINE(VR>QW,-0.3,0.3,2.8,1),COLORRED; STICKLINE(KO<=0 AND KO<=REF(KO,1),0,KO,2,1),COLORLIBLUE; |
|