P1:=5;P2:=10;P3:=20;P4:=30; ma1:MA(CLOSE,P1); MA2:MA(CLOSE,P2); MA3:MA(CLOSE,P3); MA4:MA(CLOSE,P4); 賣出線:=98; 階段賣:=96; 趨勢:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA (SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 底部:=10; 買入警戒:stickline(趨勢<=10,high,low,0.5,0),linethick2,color00ff00; stickline(趨勢<=10,open,close,5,1),linethick2,color00ff00; 賣出警戒:stickline(趨勢>=階段賣,high,low,0.5,0),coloryellow; stickline(趨勢>=階段賣,open,close,6,1),linethick2,coloryellow; DRAWTEXT((crOSS(趨勢,底部)),(LOW * 0.96),'買入'),coloryellow;DRAWTEXT((CROSS(趨勢,底部)),(LOW * 0.99),'●'),color4440FF; |
|