VAR4:=(LOW+HIGH+CLOSE)/3;操作: MA(VAR4,5);
拉升: HHV(操作,13),linethick2 ;壓力: HHV(操作,60); 買賣: LLV(操作,13); 底部支撐: LLV(LOW,60)*1.02;頂部: HHV(HIGH,60)*0.98;STICKLINE(C>1.095*REF(C,1),O,C,8,0),coloryellow;支撐位:IF((EMA(CLOSE,15)-REF(EMA(CLOSE,15),1))/REF(EMA(CLOSE,15),1)*100>=0,REF(EMA(CLOSE,15),BARSLAST(CROSS((EMA(CLOSE,15)-REF(EMA(CLOSE,15),1))/REF(EMA(CLOSE,15),1)*100,0))+1),DRAWNULL),colorred,LINETHICK3;阻力位:IF((EMA(CLOSE,15)-REF(EMA(CLOSE,15),1))/REF(EMA(CLOSE,15),1)*100<0,REF(EMA(CLOSE,15),BARSLAST(CROSS(0,(EMA(CLOSE,15)-REF(EMA(CLOSE,15),1))/REF(EMA(CLOSE,15),1)*100))+1),DRAWNULL),colorblue,LINETHICK3;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1); D:=SMA(K,3,1); DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26); DEA :=EMA(DIFF,9); MACD:=2*(DIFF-DEA); 做多:=IF(K>D AND MACD>0 AND V>1,2,0),colorred;做空:=IF(K<D AND MACD<0 AND V>1,-2,0),COLOR00FF00;強(qiáng)洗:=IF(MACD>0 AND K<D AND V>1,1,0),COLOR0099FF;弱升:=IF(MACD<0 AND K>D AND V>1,-1,0),COLORFFFF00;STICKLINE(做多,L,H,0.5,0),colorred;STICKLINE(做多 AND C>=O,C,O,3,1),colorred;STICKLINE(做多 AND C<O,C,O,3,0),colorred;STICKLINE(做空,L,H,0.5,0),COLOR00FF00;STICKLINE(做空 AND C>=O,C,O,3,1),COLOR00FF00;STICKLINE(做空 AND C<O,C,O,3,0),COLOR00FF00;STICKLINE(強(qiáng)洗,L,H,0.5,0),COLOR0099FF;STICKLINE(強(qiáng)洗 AND C>=O,C,O,3,1),COLOR0099FF;STICKLINE(強(qiáng)洗 AND C<O,C,O,3,0),COLOR0099FF;STICKLINE(弱升,L,H,0.5,0),COLORFFFF00;STICKLINE(弱升 AND C>=O,C,O,3,1),COLORFFFF00;STICKLINE(弱升 AND C<O,C,O,3,0),COLORFFFF00; |
|