趋势顶底选股:=REF(CLOSE,1);{选股公式-选股指标www.gs6699.com}
VA:=SMA(MAX(CLOSE-趋势顶底选股,0),13,1)/SMA(ABS(CLOSE-趋势顶底选股),13,1)*100;
指标公式:CROSS(80,VA)*30,LINETHICK2 ,COLORGREEN;
DRAWTEXT(CROSS(80,VA),30,'见顶 '),COLORGREEN;
TYP := (HIGH + LOW + CLOSE)/3;
V1:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),14)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),14);
V2:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),55)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),55);
AA1:100-(100/(1+V1)),LINETHICK2;
AA2:100-(100/(1+V2)),LINETHICK2;
DRAWBAND(AA1,RGB(195,125,195),AA2,RGB(0,130,50));
gffdd1:50,LINETHICK2,COLOR858585;
gffdd2:80,COLOR00AA55,LINETHICK2;
gffdd3:95,COLOR0000AA,LINETHICK2;
gffdd6:20,COLORRED,LINETHICK2;