主图
参数 止赢上线 0 999 5
止损下线 0 999 10
涨停:=CLOSE>=IF((FINANCE(3)=4 OR (DATE>1200822 AND FINANCE(3)=3)),ZTPRICE(REF(CLOSE,1),0.2),ZTPRICE(REF(CLOSE,1),0.1));
AAA:=SMA(SMA(C,2,1),2,1);
BBB:=CLOSE/REF(LLV(LOW,10),1)<0.96 AND CLOSE!=LOW AND CLOSE<OPEN;
买入:CROSS(COUNT(BARSLAST(BBB) AND CROSS(C,AAA) AND C>O,BARSLAST(BBB)+1)=1,0.5) AND NOT(涨停),COLORYELLOW,NODRAW;
止盈价:REF(C,BARSLAST(买入))*(1+止盈上限/100),COLORWHITE,NODRAW;
止损价:REF(C,BARSLAST(买入))*(1-止损下限/100),COLORWHITE,NODRAW;
止盈:=CROSS(COUNT(H>止盈价 AND BARSLAST(买入),BARSLAST(买入)+1)=1,0.5);
止损:=CROSS(COUNT(C<止损价 AND BARSLAST(买入),BARSLAST(买入)+1)=1,0.5);
止盈点:止盈 AND COUNT(止损,BARSLAST(买入)+1)=0,COLORRED,NODRAW;
止损点:止损 AND COUNT(止盈,BARSLAST(买入)+1)=0,COLOR008000,NODRAW;
反弹强度:=ABS((C/(LLV(C,BARSLAST(BBB)+1))-1)*100*((CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100));
排序:买入*反弹强度,COLORLIMAGENTA,NODRAW;
STICKLINE(买入,(C+O)/2,C,-1,0),COLORRED;
STICKLINE(买入,(C+O)/2,O,-1,0),COLOR008000;
STICKLINE(买入,H,止盈价,0,-1),COLORRED;
STICKLINE(买入,L,止损价,0,-1),COLOR008000;
STICKLINE(BARSLAST(买入)+1 AND COUNT(止盈点 OR 止损点,BARSLAST(买入)+1)=0,止盈价,止盈价,-1,0),COLORRED;
STICKLINE(BARSLAST(买入)+1 AND COUNT(止盈点 OR 止损点,BARSLAST(买入)+1)=0,止损价,止损价,-1,0),COLOR008000;
STICKLINE(BARSLAST(买入)+1 AND COUNT(止盈点 OR 止损点,BARSLAST(买入)+1)=0,(REF(C,BARSLAST(买入))+REF(O,BARSLAST(买入)))/2,(REF(C,BARSLAST(买入))+REF(O,BARSLAST(买入)))/2,-1,0),COLORYELLOW;
BUY(买入,L);
SELL(止盈点 OR 止损点,H);
DRAWTEXT_FIX(1,0.005,999,0,STRCAT('【行业】',STRCAT(HYBLOCK,STRCAT('【概念】',GNBLOCK))));
副图1
北风之神 21:53:59
涨停:=CLOSE>=IF((FINANCE(3)=4 OR (DATE>1200822 AND FINANCE(3)=3)),ZTPRICE(REF(CLOSE,1),0.2),ZTPRICE(REF(CLOSE,1),0.1));
AAA:=SMA(SMA(C,2,1),2,1);
BBB:=CLOSE/REF(LLV(LOW,10),1)<0.96 AND CLOSE!=LOW AND CLOSE<OPEN;
买入:CROSS(COUNT(BARSLAST(BBB) AND CROSS(C,AAA) AND C>O,BARSLAST(BBB)+1)=1,0.5) AND NOT(涨停),COLORYELLOW,NODRAW;
止盈价:=REF(C,BARSLAST(买入))*(1+止盈上限/100);
止损价:=REF(C,BARSLAST(买入))*(1-止损下限/100);
止盈:=CROSS(COUNT(H>止盈价 AND BARSLAST(买入),BARSLAST(买入)+1)=1,0.5);
止损:=CROSS(COUNT(C<止损价 AND BARSLAST(买入),BARSLAST(买入)+1)=1,0.5);
止盈点:止盈 AND COUNT(止损,BARSLAST(买入)+1)=0,COLORRED,NODRAW;
止损点:止损 AND COUNT(止盈,BARSLAST(买入)+1)=0,COLOR008000,NODRAW;
反弹强度:=ABS((C/(LLV(C,BARSLAST(BBB)+1))-1)*100*((CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100));
排序:买入*反弹强度,COLORLIMAGENTA,NODRAW;
STICKLINE(买入,0,0.5,-1,0),COLOR008000;
STICKLINE(买入,0.5,1,-1,0),COLORRED;
DRAWTEXT(买入,0.8,VARCAT(VARCAT('评:',VAR2STR(排序,2)),'分')),COLORWHITE;
DRAWTEXT(买入,0.6,VARCAT(VARCAT('盈:',VAR2STR(止盈价,2)),'元')),COLORWHITE;
DRAWTEXT(买入,0.4,VARCAT(VARCAT('损:',VAR2STR(止损价,2)),'元')),COLORWHITE;
STICKLINE(止盈点,0,0.2,-1,0),COLORRED;
DRAWICON(止盈点,0.3,5);
DRAWTEXT(止盈点,0.1,VARCAT(VARCAT('共',VAR2STR(BARSLAST(买入),0)),'天')),COLORWHITE;
STICKLINE(止损点,0,0.2,-1,0),COLOR008000;
DRAWICON(止损点,0.3,6);
DRAWTEXT(止损点,0.1,VARCAT(VARCAT('共',VAR2STR(BARSLAST(买入),0)),'天')),COLORWHITE;
DRAWRECTREL(0,0,120,999,RGB(10,00,00));
DRAWTEXT_FIX(1,0.005,0.00,0,'【莫急 + 忌贪 + 果断】'),COLORRED;
DRAWTEXT_FIX(1,0.005,0.15,0,IF(FINANCE(3)=0,'当前品种:指数',IF(FINANCE(3)=1,'当前品种:A股主板',IF(FINANCE(3)=2,'当前品种:北京A股',IF(FINANCE(3)=3,'当前品种:创业板',IF(FINANCE(3)=4,'当前品种:科创板','当前品种:其他')))))),COLORWHITE;
DRAWTEXT_FIX(1,0.005,0.30,0,VARCAT(VARCAT('止盈阈值:',VAR2STR(止盈上限,2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(1,0.005,0.45,0,VARCAT(VARCAT('止损阈值:',VAR2STR(止损下限,2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(1,0.005,0.60,0,'排序标准:行业内选大'),COLORLIMAGENTA;
DRAWTEXT_FIX(1,0.005,0.80,0,'---小魔作品---'),COLORRED;
副图2
参数 止赢上线 0 999 5
止损下线 0 999 10
涨停:=CLOSE>=IF((FINANCE(3)=4 OR (DATE>1200822 AND FINANCE(3)=3)),ZTPRICE(REF(CLOSE,1),0.2),ZTPRICE(REF(CLOSE,1),0.1));
AAA:=SMA(SMA(C,2,1),2,1);
BBB:=CLOSE/REF(LLV(LOW,10),1)<0.96 AND CLOSE!=LOW AND CLOSE<OPEN;
买入:=CROSS(COUNT(BARSLAST(BBB) AND CROSS(C,AAA) AND C>O,BARSLAST(BBB)+1)=1,0.5) AND NOT(涨停);
反弹强度:=ABS((C/(LLV(C,BARSLAST(BBB)+1))-1)*100*((CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100));
排序选大:买入*反弹强度;
行业概念:DRAWTEXT(1,0, STRCAT(HYBLOCK,STRCAT(' ',GNBLOCK))),NODRAW;