拉升力:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE;
拉升力A:=SMA(拉升力,6.3,1);
波峰波谷:SMA(拉升力A,3,1),COLORFFFFFF;
拉升力B:=3*拉升力A-2.1*波峰波谷;
空方:=3*波峰波谷-1* 拉升力A;
做空:IF(空方>拉升力B,拉升力B,空方),LINETHICK2,COLOR00FF00;
做空周期:HHV(做空,21);
多頭:IF(做空>=REF(做空,1),做空,DRAWNULL),COLORRED,LINETHICK3;
空頭:IF(做空<REF(做空,1),做空,DRAWNULL),COLORGREEN,LINETHICK3;
短線:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORYELLOW;
中線:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORWHITE;
紅柱:SMA(短線,3,1),LINETHICK0,COLOR0000FF;
藍柱:SMA(中線,3,1),COLORSTICK,COLORFFFF00;
{紅柱}
STICKLINE(紅柱<REF(紅柱,1)AND 紅柱>0,0,紅柱,2,1),COLORRED;
STICKLINE(紅柱>REF(紅柱,1)AND 紅柱>0,0,紅柱,2,0),COLORRED;
STICKLINE(藍柱<REF(藍柱,1) AND 藍柱>0,0,藍柱,2,0),COLOR00FFFF;
{藍柱}
STICKLINE(紅柱>REF(紅柱,1)AND 紅柱<0,0,紅柱,2,0),COLORCYAN;
STICKLINE(紅柱<REF(紅柱,1)AND 紅柱<0,0,紅柱,2,1),COLORCYAN;
STICKLINE(藍柱>REF(藍柱,1)AND 藍柱<0,0,藍柱,3,0),COLORWHITE;
|