指标线如果在低点相交,则可以买入,在高点相交则卖出!
//#@Fname=直观又准
//#@comment=
//#@control=
//#@style=K:Line0,,1,0,1,5,16777215;D:Line0,,1,0,1,5,65535;J:Line0,,1,0,1,5,65535;
//#@availperiod=2147430400
//#@param=
//#@Fdesc=直观又准
//#@defaultperiod=16384
//#@coord=D
//#@ordinate=0,0.000000;0,0.000000;0,0.000000;0,0.000000;0,0.000000;0;0,0.000000
//#@@FUNCSPEC@=source
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),colorwhite;
D:SMA(K,3,1),coloryellow;
J:3*K-2*D,coloryellow;
IF(K<REF(K,1),K,DRAWNULL),colorgreen,LINETHICK1;
IF(D<REF(D,1),D,DRAWNULL),colorgreen,LINETHICK1;
IF(J<REF(J,1),J,DRAWNULL),COLORFFFF00,LINETHICK1;
IF(K>REF(K,1),K,DRAWNULL),colorred,LINETHICK1;
IF(D>REF(D,1),D,DRAWNULL),colorred,LINETHICK1;
IF(J>REF(J,1),J,DRAWNULL),COLORFF00FF,LINETHICK1;