此源码是本人一个副图中的主要源码,应该可以通用,这里只给出了其中FK与CCI的关系指示信号(五角星)抛砖引玉;其它可以自己总结
STICKLINE(C 0,80,80,5,0),COLOR7F00FF;
STICKLINE(C 0,50,50,5,0),COLORFFCCAA;
STICKLINE(C 0,20,20,10,0),COLORGRAY;
STICKLINE(C 0,-10,-10,5,0),COLOR008000;
STICKLINE(C 0,-40,-40,5,0),COLORMAGENTA;
VV:=AMOUNT/100000000;
LB:=vv/((HHV(vv,283)+HHV(vv,284))/2);
DX:=DMA(c,LB);
jh:=DMA(H,LB);
JL:=DMA(L,LB);
HH:=REF((HHV(JH,283)+HHV(JH,284))/2,1);
LL:=REF((LLV(JL,283)+LLV(JL,284))/2,1);
RSV:=(DX-LL)/(HH-LL)*100;
K:=SMA(RSV+Sma(RSV-REF(rsv,1),15,1),15,1);
RHH:=REF(HHV(jh,68),1);
RLL:=REF(LLV(jL,68),1);
RSV1:=(RHH-DX)/(RHH-RLL)*100;
fK:SMA(RSV1+SMA(RSV1-ref(RSV1,1),5,1),5,1),COLOR00CCCC;
XHH:=REF((HHV(jh,16)*2+HHV(JH,17))/3,1);
XLL:=REF((LLV(JL,16)*2+LLV(JL,17))/3,1);
XSV:=(XHH-DX)/(XHH-XLL)*100;
XK:SMA(XSV+SMA(XSV-ref(XSV,1),3,1),3,1),COLORWHITE;
cci:((DX-MA(DX,63))/(AVEDEV(DX,63)*6.75/100)),COLORRED;
MCI:(eMA(cci+eMA(cci-ref(cci,1),7),7)+eMA(cci+eMA(cci-ref(cci,1),8),8))/2,COLORGREEN;
DRAWTEXT(CROSS(CCI,FK)AND K 20,25,'★'),COLORMAGENTA;