2023年3月7日发(作者:古着店)N1:=5;N2:=10;
STICKLINE(C>0,0,10,15,0),COLOR781816;
LC:=REF(CLOSE,1);
RSI5:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFDB902,LINETHICK1;
RSI10:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLORMAGENTA;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
短线:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)
[REF(DOWN,1) NODRAW COLORBLACK;]
0,COLORFF00FF COLORBLACK;
10,COLORFF0000 COLORBLACK;
STICKLINE(UP,0,0.2,3,0),COLOR0000FF;
STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;
STICKLINE(短线,0,3,2,0),COLOR000088;
STICKLINE(短线,0,3,1,0),COLOR0000CC;
STICKLINE(短线,0,3,0.22,0),COLOR0000FF;
DRAWTEXT(短线,5,'短线'),COLOR0000FF;
中线:REF(DOWN,1)[REF(DOWN,1) AND C]
STICKLINE(中线,0,2,3,0),COLOR880088;
STICKLINE(中线,0,2,1.5,0),COLORAA00AA;
STICKLINE(中线,0,2,0.8,0),COLORCC00CC;
STICKLINE(中线,0,2,0.2,0),COLORFF00FF;
DRAWTEXT(中线,3,'中线'),COLORFF00FF;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
长线:REF(DOWN,1)[REF(DOWN,1) AND C]
STICKLINE(长线,0,1,5,0),COLOR008888;
STICKLINE(长线,0,1,2,0),COLOR00AAAA;
STICKLINE(长线,0,1,1,0),COLOR00CCCC;
STICKLINE(长线,0,1,0.2,0),COLOR00FFFF;
DRAWTEXT(长线,1,'长线'),COLOR00FFFF;
卖出:=REF(UP,1)>REF(UP,2) AND DOWN
STICKLINE(卖出,10,9,5,0),COLOR008800;
STICKLINE(卖出,10,9,2,0),COLOR00AA00;
STICKLINE(卖出,10,9,1,0),COLOR00CC00;
STICKLINE(卖出,10,9,0.2,0),COLOR00FF00;
DRAWTEXT(卖出,9,'卖'),COLOR00FF00;
{选股专用####################################################}
卖到现在:= BARSLAST(卖出=1) NODRAW COLORYELLOW;{统计卖点到"今天"的天数}
三叉到现在:=BARSLAST((短线+中线+长线)=3) NODRAW COLORYELLOW;
长线到现在:=BARSLAST(长线=1) NODRAW COLORYELLOW;
中线到现在:=BARSLAST(中线=1) NODRAW COLORYELLOW;
短线到现在:=BARSLAST(短线=1) NODRAW COLORYELLOW;
中短线到现在:=BARSLAST(中线+短线=2) NODRAW COLORYELLOW;
中长线到现在:=BARSLAST(中线+长线=2) NODRAW COLORYELLOW;
长短线到现在:=BARSLAST(短线+长线=2) NODRAW COLORYELLOW;
三叉后卖出次数:=COUNT(卖出=1,三叉到现在)NODRAW;
三叉:IF((短线+中线+长线)=3,1,0)NODRAW COLORLIGRAY;
三叉没卖:IF((卖到现在>三叉到现在),1,0)NODRAW COLORLIGRAY;
三叉卖短:IF(BETWEEN(卖到现在,三叉到现在,短线到现在) AND 三叉后卖出次数=1,1,0)NODRAW COLORLIGRAY;
三叉卖中:IF(BE
TWEEN(卖到现在,三叉到现在,中线到现在) AND 三叉后卖出次数=1,1,0)NODRAW COLORLIGRAY;
三叉卖长:IF(BETWEEN(卖到现在,三叉到现在,长线到现在) AND 三叉后卖出次数=1,1,0)NODRAW COLORLIGRAY;
{
日期:DATE+19000000 NODRAW;
卖后找双叉
三叉卖中短:IF(BETWEEN(卖到现在,三叉到现在,中短线到现在) AND 三叉后卖出次数=1,1,0) ;
三叉卖中长:IF(BETWEEN(卖到现在,三叉到现在,中长线到现在) AND 三叉后卖出次数=1,1,0) ;
三叉卖长短:IF(BETWEEN(卖到现在,三叉到现在,长短线到现在) AND 三叉后卖出次数=1,1,0) ;
}
三叉收盘价:REF(C,三叉到现在)NODRAW COLORYELLOW;
涨幅:(C-三叉收盘价)/三叉收盘价*100 NODRAW COLORYELLOW;{相对三叉收盘的涨幅}
{选股专用#####################################################}
选股:三叉 OR (三叉没卖 AND HHV(H,三叉到现在)<1.15*三叉收盘价) NODRAW;
{选股专用#####################################################};