地心引力线:(MA(CLOSE,30)+MA(CLOSE,72))/2;
D1:地心引力线*1.1;
D2:地心引力线*0.9;
D3:地心引力线*1.2;
D4:地心引力线*0.8;
大盘指数:CLOSE;
PH:=TROUGHBARS(2,P1,1);
LL:=HHV(H,PH);
TJ1:= LL=HIGH AND LL REF(LL,1);{//=1}
TS:=SUMBARS(TJ1,2);
TJ:=PEAKBARS(2,P1,1)=1 AND TS
警告灯:IF(TJ,HIGH*1.008,DRAWNULL),CROSSDOT,LINETHICK2,COLORYELLOW;
{//最后1根参考K线,用信号灯表示}
PL:=BARSLAST(TJ);
支撑:IF(BARSLAST(TJ1),
REF(LOW,BARSLAST(TJ1)),DRAWNULL),COLOREA91B5;
压力:IF(BARSLAST(TJ),REF(HIGH,PL),DRAWNULL),COLORYELLOW;