以下是通达信金牛波段交易
买线:EMA(C,8);
卖线:EMA(买线,18);
VAR1:=(HHV(H,36)-C)/(HHV(H,36)-LLV(L,36))*100;
VAR2:=SMA(VAR1,5,1);
VAR3:=SMA(VAR2,8,1);
VAR4:=CROSS(VAR2,VAR3) AND VAR3< 20;
VAR5:=C>LLV(C,60)*1.13 AND VAR4;
VAR6:=IF(C>200,VAR4,VAR5);
STICKLINE(买线>卖线,买线,卖线,0,1),COLORRED;
STICKLINE(买线< 卖线,买线,卖线,0,1),COLORGREEN;
IF(买线>REF(买线,1),买线,DRAWNULL),COLORRED,LINETHICK2;
IF(买线<REF(买线,1),买线,DRAWNULL),COLORGREEN,LINETHICK2;
IF(卖线>REF(卖线,1),卖线,DRAWNULL),COLORRED,LINETHICK2;
IF(卖线<REF(卖线,1),卖线,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(C>=卖线,LOW,HIGH,0,1),COLORRED;
STICKLINE(C>=卖线,CLOSE,OPEN,3.2,2),COLORRED;
STICKLINE(C<卖线,LOW,HIGH,0,1),COLORGREEN;
STICKLINE(C<卖线,CLOSE,OPEN,3.2,2),COLORGREEN;
STICKLINE(CROSS(卖线,C),OPEN,CLOSE,3.2,0),COLORGREEN;
STICKLINE(CROSS(C,卖线),OPEN,CLOSE,3.2,0),COLORRED;
STICKLINE((CLOSE>OPEN) AND (C<卖线),CLOSE,OPEN,3.2,2)COLORGREEN;
STICKLINE((CLOSE>OPEN) AND (C>=卖线),CLOSE,OPEN,3.2,2)COLORRED;
STICKLINE((CLOSE<OPEN) AND (C<卖线),CLOSE,OPEN,3.2,0)COLORGREEN;
STICKLINE((CLOSE=卖线),CLOSE,OPEN,3.2,0)COLORRED;