【同花順】趨勢為王指標公式
攻城獅 2015.11.30 16:34
q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
q3:=SMA(q2, 9, 1);
q4:=SMA(q3, 3, 1);
長趨勢:3*q3-2*q4,colorwhite,linethick3;
趨勢線:EMA(q3, 3),colorred,linethick3;
DRAWTEXT(CROSS(趨勢線, 長趨勢) AND REF(長趨勢,1)>80, REF(長趨勢,3), ‘▼逢高派發(fā)’), Color00ff00,linethick5;
▲逢低買入: DRAWTEXT(REF(CROSS(趨勢線,長趨勢),82) AND 趨勢線>1.3*長趨勢,長趨勢,’▲逢低買入’), Color00Ffff, linethick1;
▲低買: DRAWTEXT(REF(CROSS(長趨勢,趨勢線),1) AND 長趨勢>1.3*趨勢線,趨勢線,’▲低買’),colorblue,linethick1;
var3:=PEAKBARS(3,15,1)<10;
var5:=IF(var3=1,2,0);
頂:= IF(var5=2,2,0);
頂a:IF(頂>REF(頂,1),50,0),colorgreen, linethick2;
DRAWTEXT(頂a=50,45,’頂 部’),color00ff00;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負責(zé),投資決策請建立在獨立思考之上。