牛熊自如
2015-7-17 14:10:38点击:
{DRAWGBK(DATE>900103,STRIP(RGB(120,110,255),RGB(100,120,80),1));}
持股线:MA(C,4),COLOR00FFFF,linethick2;
减仓线:MA(C,9),color00ff00,LINETHICK2;
空仓线:MA(C,18),colorFFFFFF,LINESTICK,LINETHICK1;
牛熊线:MA(C,200),coloryellow,ColorFF00FF,linethick1;
VAR1:=(100 - ((90 * (HHV(HIGH,18) - CLOSE)) / (HHV(HIGH,18) - LLV(LOW,18))));
VAR2:=(100 - ((90 * (HHV(HIGH,18) - CLOSE)) / (HHV(HIGH,18) - LLV(LOW,18))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),22));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.974),5);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.025),6);
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.974),'买▲入 '),COLOR00FFFF,linethick5;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.025),'卖▼出'),color00ff00,linethick6;
A1:=3*EMA((C-LLV(L,22))/(HHV(H,22)-LLV(L,22))*100,5)-2*EMA((C-LLV(L,22))/(HHV(H,22)-LLV(L,22))*100,5);
A2:=LLV(L,9);
a3:LLV(L,22);
a4:=EMA(A1,4);
A5:=(HHV(H,22)-C)/(HHV(H,22)-LLV(L,22))*100;
a6:MA(C,18);
dif:="macd.diff"(10,22,8);
dea:="macd.dea"(10,22,8);
朦胧:=( dif<-0.3 AND dif>dea),ColorFF00FF;
低买:CROSS(A1,a4)AND (A5-a4)>30 AND 朦胧,COLOR00FFFF;
STICKLINE(CROSS(A1,a4)AND (A5-a4)>30 AND 朦胧 ,a3,a3*1.2,4,0),COLOR00FFFF;
STICKLINE( 朦胧,a3,a3*1.1,4,0),ColorFF00FF;