超短周期操作 趋势线双买点【指标公式】(含选股)锘跨涓閮ㄥ垎 鍓浘鍏紡 鎵嬫満/鐢佃剳
LC :=REF(CLOSE,1);
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),18,1)/SMA(ABS(CLOSE-LC),18,1)*100;
CHPS:MA(3*RSI2-2*SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100,3);
CHPM:EMA(CHPS,8);
CHPL:MA(3*RSI3-2*SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,5);
CHP涓1:=CROSS(CHPS,CHPM);
CHP涓2:=CROSS(CHPS,CHPL);
CHP涓1:=CROSS(CHPM,CHPS);
CHP涓2:=CROSS(CHPL,CHPM);
CHA:=(HHV(CHPS,120)-LLV(CHPL,120))/60;
CHB:=REF(CHPL,1) > REF(CHPS,1);
鐗1:DRAWTEXT(CHP涓1 AND CHB,CHPM-CHA*2,'涔颁竴'),COLORLIMAGENTA;
鐗2:DRAWTEXT(CHP涓2 AND CHB,CHPL-CHA*4,'涔颁簩'),COLORRED;
鐔1:DRAWTEXT(CHP涓1 ,CHPM+CHA*1,'鍗栦竴'),COLORYELLOW;
鐔2:DRAWTEXT(CHP涓2 ,CHPL+CHA*2,'涔颁簩'),COLORGREEN;
绗簩閮ㄥ垎 閫夎偂鍏紡
{閫夎偂鍏紡涓锛氫拱涓}
LC :=REF(CLOSE,1);
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),18,1)/SMA(ABS(CLOSE-LC),18,1)*100;
CHPS:=MA(3*RSI2-2*SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100,3);
CHPM:=EMA(CHPS,8);
CHPL:=MA(3*RSI3-2*SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,5);
CHP涓1:=CROSS(CHPS,CHPM);
CHA:=(HHV(CHPS,120)-LLV(CHPL,120))/60;
CHB:=REF(CHPL,1) > REF(CHPS,1);
{鐗1:DRAWTEXT(CHP涓1 AND CHB,CHPM-CHA*2,'涔颁竴'),COLORLIMAGENTA;}
涔颁竴:CHP涓1 AND CHB;
{閫夎偂鍏紡浜岋細涔颁簩}
LC :=REF(CLOSE,1);
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),18,1)/SMA(ABS(CLOSE-LC),18,1)*100;
CHPS:=MA(3*RSI2-2*SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100,3);
CHPM:=EMA(CHPS,8);
CHPL:=MA(3*RSI3-2*SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,5);
CHP涓2:=CROSS(CHPS,CHPL);
CHA:=(HHV(CHPS,120)-LLV(CHPL,120))/60;
CHB:=REF(CHPL,1) > REF(CHPS,1);
{鐗2:DRAWTEXT(CHP涓2 AND CHB,CHPL-CHA*4,'涔颁簩'),COLORRED;}
涔颁簩:CHP涓2 AND CHB;
|