{顧比均線和顧比倒數(shù)合并一主圖}
{P1=2 , 100 , 5}
MA1:EMA(CLOSE,3);
MA2:EMA(CLOSE,5);
MA3:EMA(CLOSE,8);
MA4:EMA(CLOSE,10);
MA5:EMA(CLOSE,12);
MA6:EMA(CLOSE,35);
MA7:EMA(CLOSE,40);
MA8:EMA(CLOSE,45);
MA9:EMA(CLOSE,50);
MA10:EMA(CLOSE,60);
PH:=TROUGHBARS(2,P1,1);
LL:=HHV(H,PH);
TJ1:= LL=HIGH AND LL
TS:=SUMBARS(TJ1,2);
TJ:=PEAKBARS(2,P1,1)=1 AND TS>=PH;
DRAWICON(TJ,HIGH*1.01+0.02,2);
警告燈:IF(TJ,HIGH*1.008,0),CROSSDOT,LINETHICK2,COLORYELLOW;
PL:=BARSLAST(TJ);
支撐:IF(BARSLAST(TJ1),
REF(LOW,BARSLAST(TJ1)),0),COLOREA91B5;
壓力:IF(BARSLAST(TJ),REF(HIGH,PL),0),COLORYELLOW;
TJ_2:=LOW>REF(REF(LOW,TS),PL);
DRAWICON(COUNT(TJ_2,PL+1)=1,HIGH*1.005,2);{//向下的箭頭表示出局點}
DRAWICON(BARSLAST(TJ1),REF(LOW*0.995,BARSLAST(TJ1)),1);