红绿灯K线组合用法说明:
红绿灯买卖预报台红色、黄色K线为买入预报,白色K线为短线买入;绿色K线为卖出预报,蓝色K线为短线卖出预报。
红绿灯K线组合源代码:
RSV=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K=SMA(RSV,M1,1);
D=SMA(K,M2,1);
W=-100*(HHV(HIGH,100)-CLOSE)/(HHV(HIGH,100)-LLV(LOW,100));
W1=-100*(HHV(HIGH,52)-CLOSE)/(HHV(HIGH,52)-LLV(LOW,52));
IF(CLOSE>OPEN AND D>15 AND K>12 AND D<82 AND K<88) RETURN "COLORRED";
ELSE IF(D<15 AND K<12) RETURN "COLORYELLOW";
ELSE IF(D>82 AND K>88) RETURN "COLORGREEN";
ELSE IF(W>-5) RETURN "COLORBLUE";
ELSE IF(W1<-95) RETURN "COLORWHITE";
ELSE RETURN "COLORGREEN"
红绿灯图形详解如下图:
图1.红绿灯
图2.光头中阳线