论坛里的一个主图,觉得不错,但无法选股。
改编了一下,新增了选股信号。
取名黄蓝红绿,意指按此色线条多头排列,可以买入获利。
X_1:=89;
X_2:=3;
X_3:=3;
X_4:=100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
X_5:=100*(HIGH-CLOSE)/REF(CLOSE,1);
X_6:=(CLOSE-LLV(LOW,X_1))/(HHV(HIGH,X_1)-LLV(LOW,X_1))*100;
X_7:=SMA(X_6,X_2,1);
X_8:=SMA(X_7,X_3,1);
X_9:=3*X_7-2*X_8;
X_10:=EMA(CLOSE,1);
X_11:=EMA(X_10,5);
X_12:=EMA(HHV(X_11,5),1);
AJ:EMA(HHV(X_12,17),1),COLORYELLOW;
WJ:EMA(HHV(AJ,17),2),COLORLIBLUE;
AF:EMA(HHV(WJ,17),3),COLORRED;
ER:(1+6/100)*MA(CLOSE,25),COLORGREEN;
X_13:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
STICKLINE(X_13>6,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(X_13<(-9.8),OPEN,CLOSE,2,0),COLORGREEN;
X_14:=X_13>7;
X_15:=REF(LOW,BARSLAST(X_14));
X_16:=AJ>WJ AND WJ>AF AND AF>ER;
黄蓝红绿:AJ>WJ AND WJ>AF AND AF>ER,NODRAW;
XG:X_16 AND REF(X_16,1)=0,NODRAW,COLORLIRED;
STICKLINE(X_16,AF,ER,0.5,1),COLORLIMAGENTA;
20196159534480422.png
|