【大智慧】生命線公式
攻城獅 2016.01.05 12:00
VAR1:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100;
VAR2:=CLOSE>OPEN AND OPEN-LOW>HIGH-CLOSE;
VAR3:=REF(VAR1,1)<-34 AND VAR2;
VAR4:=REF(VAR1,1)<-34 AND CLOSE>OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000>20;
VAR5:=FILTER(VAR3 OR VAR4,3);
VAR6:=OPEN>CLOSE AND HIGH-(IF(CLOSE>OPEN,CLOSE,OPEN))>IF(OPENVAR7:=REF(VAR1,1)>ABS(-34) AND VAR6;
VAR8:=REF(VAR1,1)>ABS(-34) AND CLOSE20;
VAR9:=FILTER(VAR7 OR VAR8,3);
VARA:=REF(VAR1,1)<-13 AND VAR2;
VARB:=REF(VAR1,1)<-13 AND CLOSE>OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000>20;
VARC:=FILTER(VARA OR VARB,3);
VARD:=REF(VAR1,1)>ABS(-13) AND VAR6;
VARE:=REF(VAR1,1)>ABS(-13) AND CLOSE20;
VARF:=FILTER(VARD OR VARE,3);
DRAWICON(VAR5*VAR1>0,LOW,1);
DRAWICON(VAR9*VAR1>0,HIGH,2);
VAR10:=(2*CLOSE+HIGH+LOW+OPEN)/5;
A1:(EMA(VAR10,8)+EMA(VAR10,13)+EMA(VAR10,34)+EMA(VAR10,55))/4;
A2:EMA(A1,3);
A3:EMA(A2,8);
A4:EMA(A3,13);
生命線:EMA(CLOSE,60),CROSSDOT;
VAR11:=LLV(LOW,13);
VAR12:=HHV(HIGH,8);
VAR13:=EMA((VAR10-VAR11)/(VAR12-VAR11)*100,13);
VAR14:=EMA(0.667*REF(VAR13,1)+0.333*VAR13,8);
VAR15:=EMA(VAR10,13)-EMA(VAR10,34);
VAR16:=EMA(VAR15,5);
VAR17:=(-2)*(VAR15-VAR16)*3.8;
VAR18:=(2*CLOSE+LOW+HIGH)/4;
頂線:EMA(VAR18,34)*1.1,colorFFFF10;
底線:EMA(VAR18,34)*0.866;
頂偏離:=(CLOSE-MA(頂線,2))/MA(CLOSE,3)*1000;
底偏離:=(CLOSE-MA(底線,2))/MA(CLOSE,3)*1000;
DRAWTEXT(ABS(底偏離)<15 AND MA(CLOSE,1)<底偏離,LOW,'底'),color10FF10;
DRAWTEXT(ABS(頂偏離)<15 AND MA(CLOSE,1)>頂偏離,HIGH,’頂’),color10FFFF;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.chiang1015.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場(chǎng),不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。