【通達信】出奇制勝主圖指標公式
攻城獅 2015.11.10 03:51
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
黃:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210,COLORGREEN;
紅:=MA(黃,5),COLORRED;
NOTEXT黃:IF(黃>=紅,黃,DRAWNULL),COLORRED;
NOTEXT紅:=IF(黃>=紅,紅,DRAWNULL);
DRAWICON(CROSS(黃,紅),L*0.98,1);
DRAWTEXT(CROSS(黃,紅),L*0.96,’進場’),COLORRED;
DRAWTEXT(CROSS(紅,黃),H*1.02,’出場’),COLORGREEN;
TS:=BARSLAST(CROSS(黃,紅));
ZY:IF(黃>=紅,REF(C,TS)*1.3,DRAWNULL),COLORRED;
ZS:IF(黃>=紅,REF(C,TS)*0.9,DRAWNULL),COLORGREEN;
DRAWTEXT(CROSS(黃,紅),ZY*0.98,’止盈’),COLORRED,;
DRAWTEXT(CROSS(黃,紅),ZS*0.98,’止損’),COLORGREEN;
DRAWNUMBER(ISLASTBAR,ZY,ZY),COLORRED;
DRAWNUMBER(ISLASTBAR,ZS,ZS),COLORGREEN;
STICKLINE(C/REF(C,1)<0.93,O,C,1,0),COLORBLUE;
DRAWTEXT(C/REF(C,1)<0.93,L*0.98,'清倉'),COLORLIBLUE;
申明:本文為作者投稿或轉載,在概念股網 http://m.guangshenggb.com/ 上發(fā)表,為其獨立觀點。不代表本網立場,不代表本網贊同其觀點,亦不對其真實性負責,投資決策請建立在獨立思考之上。