{常用最佳;}
VAR3:=PEAKBARS(3,4,1)<10;
VAR5:=IF(VAR3=1,2,0);
頂:=IF(VAR5=2,4,0);
AR1:=EMA(OPEN,7);
AR2:=EMA(AR1,21);
AR3:=CROSS(AR1,AR2);
AR5:=EMA(SMA((CLOSE-LLV(LOW,20))/(HHV(HIGH,16)-LLV(LOW,20))*100,8,3),3);
短買:IF(TROUGHBARS(1,3,1)=0 AND HIGH>LOW+0,30,4),COLORRED;
中線買:IF(TROUGHBARS(1,15,1)=0 AND HIGH>LOW+0,15,0),COLORYELLOW;
出定:IF(頂>REF(頂,1),0,26),COLORGREEN;
必出:IF(PEAKBARS(3,15,1)=1,15,30),COLORWHITE;
DRAWTEXT(短買=30,22,'→短買'),COLORRED;
DRAWTEXT(必出=15,17,'→必出'),COLORWHITE;
DRAWTEXT(中線買=15,12,'→中線'),COLORYELLOW;
DRAWTEXT(出定=0,7,'→出定!'),COLORGREEN;
{本文 來源: www.}