通达信一线乾坤副图指标 一线代表涨趋势和大趋势及超强趋势 源码附图
GSKZ1:=POW(10,6);
GSKZ2:=IF(GSKZ1>0,1,0);
GSKZ3:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),10);
GSKZ4:=HIGH-REF(HIGH,1);
GSKZ5:=REF(LOW,1)-LOW;
GSKZ6:=SUM(IF(GSKZ4>0 AND GSKZ4>GSKZ5,GSKZ4,0),20);
GSKZ7:=SUM(IF(GSKZ5>0 AND GSKZ5>GSKZ4,GSKZ5,0),20);
GSKZ8:=LLV(LOW,240);
GSKZ9:=HHV(HIGH,240);
大趋势:(CLOSE-GSKZ8)/GSKZ8*100,COLORGREEN;
中趋势:=GSKZ7/GSKZ3/2*100,COLORMAGENTA;
散户线:=(GSKZ9-CLOSE)/CLOSE*100,COLORWHITE;
股市客栈:大趋势/散户线,NODRAW,COLORWHITE;
GSKZ10:=HHV(CLOSE,20);
GSKZ11:=EMA(GSKZ10,30)*1.03;
GSKZ12:=EMA(GSKZ10,120)*1.03;
GSKZ13:=(CLOSE+HIGH+LOW)/3;
GSKZ14:=EMA(GSKZ13,10);
GSKZ15:=REF(GSKZ14,1);
涨趋势:IF(大趋势>15 AND 大趋势>中趋势,大趋势,DRAWNULL),COLORYELLOW,LINETHICK2;
超强:IF(大趋势>30 AND 大趋势>散户线,大趋势,DRAWNULL),COLORRED,LINETHICK2;
DRAWICON(FILTER(涨趋势 OR 超强 AND 大趋势>=HHV(大趋势,10) AND OPEN/GSKZ14<1.08 AND OPEN/GSKZ11<1.1 AND OPEN/GSKZ12<1.2 AND CLOSE>GSKZ11 AND CLOSE>=REF(CLOSE,1)*1.05 AND 散户线<60 AND 大趋势<120,30),大趋势,9)*GSKZ2;