N:=5;
A26:=EMA(C,26);
T:=EMA(C,12);
B9:=EMA(A26,9);
T1:=EMA(T,9);
DEA:=EMA(T-(T1-T),2);
DIFF:=DEA-EMA(((A26-B9)-(T-T1)),1)*6;
重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
Gao:=HHV(C,60)-LLV(C,60);
重心rsi:=SMA(MAX(重心-REF(重心,1),0),5,1)/SMA(Abs(重心-REF(重心,1)),5,1);{RSI相对强弱指标算法}
指导线:= 重心+GAO*(重心RSI-0.5),COLORMAGENTA,LINETHICK1;
参考:=(指导线+DIFF+C+H+L)/5,COLORRED,LINETHICK2;
双线持股:FORCAST(参考,N)COLOR0000FF,LINETHICK2;{二线存现向上开口状态:持股待涨}
单线走人:LLV(FORCAST(参考,N),2)COLORGREEN,LINETHICK2;{二线存现合二为一:持币等待};