公式如下
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA60:MA(C,60);
HH:=HHV(H,10);
LL:=LLV(L,10);
AA:=SMA(C,13,2);
{网址:WWW.SYDTZRJ.COM 水鸭的投资日记}
DRAWTEXT(ISLASTBAR=1 AND AA>REF(AA,1) AND REF(AA,1)<>
DRAWTEXT(ISLASTBAR=1 AND AA>REF(AA,1) AND REF(AA,1)>REF(AA,2),HH,'激进持股'),COLOR0066FF;
DRAWTEXT(ISLASTBAR=1 AND AA[REF(AA,2),HH,'激进卖出'),COLORGREEN;]A1:=MA(C,13);
ZX:=REF(A1,13/2+1);
DRAWTEXT(ISLASTBAR=1 AND CROSS(C,ZX),LL,'稳健买入'),COLORRED;
DRAWTEXT(ISLASTBAR=1 AND C>ZX AND REF(C,1)>REF(ZX,1),LL,'稳健持股'),COLOR0066FF;
DRAWTEXT(ISLASTBAR=1 AND CREF(ZX,1),LL,'稳健卖'),COLORGREEN;T1:=(AA>REF(AA,1) AND REF(AA,1)
T2:=(AA[REF(AA,2)) OR (CREF(ZX,1));]T3:=(AA>REF(AA,1) AND REF(AA,1)>REF(AA,2)) OR (C>ZX AND REF(C,1)>REF(ZX,1));
STICKLINE(T1,O,C,2.5,0),COLOR00EEEE;
STICKLINE(T2,O,C,2.5,0),COLORBLUE;
STICKLINE(T3,O,C,2.5,0),COLORRED;
STICKLINE(T1 OR T2 OR T3,O,C,0,0);
图形如下
感觉上,出现“黄柱的信号”,上升概率较大。
选股公式如下
AA:=SMA(C,13,2);
A1:=MA(C,13);
ZX:=REF(A1,13/2+1);
T1:=(AA>REF(AA,1) AND REF(AA,1)
T1;