长期横盘选股:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
HD:= HIGH-REF(HIGH,1);{炒股公式-炒股指标www.gs6699.com}
LD:= REF(LOW,1)-LOW;
指标公式:= SUM(IF(HD>0 AND HD>LD,HD,0),14);
ccsss1:= SUM(IF(LD>0 AND LD>HD,LD,0),14);
PDI:=指标公式*100/TR;
MDI:=ccsss1*100/TR;0, ;
ccsss2:PDI-MDI;IF(ccsss2<0,ccsss2,0),COLORGREEN, LINETHICK2;
ccsss3:IF(ccsss2>0,ccsss2,0),COLORMAGENTA, LINETHICK2;
gffff1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
gffff2:=SMA(ABS(LOW-gffff1),13,1)/SMA(MAX(LOW-gffff1,0),10,1);
gffff3:=EMA(gffff2,10);
gffff4:=LLV(LOW,33);
gffff5:=EMA(IF(LOW<=gffff4,gffff3,0),3);
gffa1:IF(gffff5>REF(gffff5,1),gffff5,0),COLORBLUE,NODRAW;
STICKLINE(gffff5>REF(gffff5,1),0,gffff5,1,0 ),COLORBLUE;
gffa3:IF(gffff5<REF(gffff5,1),gffff5,0),COLORGREEN,NODRAW;
STICKLINE(gffff5<REF(gffff5,1),0,gffff5,1,0),COLORGREEN;
gffff51:=3;
gffff52:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));
gffa5:CROSS(gffff52,gffff51),STICK,COLORLIRED;
DRAWICON(gffa5>0,-8,1);
gffa7:0,COLORCYAN;