{涨停伏击2号}
MA3D:=MA(C,3);
MA5D:=MA(C,5);
ZX:=(MA3D+MA5D)/2;
MA20D:=MA(C,20),NODRAW;
MA30D:=MA(C,30),NODRAW;
QSXS:=MA5D>=MA30D AND MA30D>REF(MA30D,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=C>REF((O-C)/2+C,2);
买:=CROSS(C,ZX) AND (GD OR YB) AND QSXS,COLOR00FF00,POINTDOT,LINETHICK0;
优:=买 AND MA5D>REF(MA5D,1),COLORYELLOW,POINTDOT,LINETHICK0;
{以下设置主图显示方式}
STICKLINE(买,H,L,0,1),COLOR00FF00,LINETHICK2;
STICKLINE(买,O,C,4.1,0),COLOR00FF00,LINETHICK2;
STICKLINE(优,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(优,O,C,4,0),COLORYELLOW,LINETHICK2;
{STICKLINE(CLOSE<OPEN ,HIGH,LOW,0,0),COLOR555500;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3.05,0),COLOR888800;
STICKLINE(CLOSE<OPEN ,CLOSE,OPEN,2.75,0),COLORAAAA00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.05,0),COLORCCCC00;
STICKLINE(CLOSE<OPEN ,CLOSE,OPEN,1.75,0),COLOREEEE00;
STICKLINE(CLOSE<OPEN ,CLOSE,OPEN,1.05,0),COLORFFFF00;}
{STICKLINE(OPEN<CLOSE ,HIGH,LOW,0,0),COLOR000088;
STICKLINE(OPEN<CLOSE,CLOSE,OPEN,3.05,0),COLOR000088;
STICKLINE(OPEN<CLOSE ,CLOSE,OPEN,2.55,0),COLOR000099;
STICKLINE(OPEN<CLOSE ,CLOSE,OPEN,1.85,0),COLOR0000AA;
STICKLINE(OPEN<CLOSE ,CLOSE,OPEN,1.35,0),COLOR0000BB;
STICKLINE(OPEN<CLOSE ,CLOSE,OPEN,0.85,0),COLOR0000CC;
STICKLINE(OPEN<CLOSE ,CLOSE,OPEN,0.35,0),,COLOR0000DD;
}
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
红线上牛股起:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED
,LINETHICK2;
绿线下熊股出:MA(红线上牛股起,6),COLORGREEN
,LINETHICK2;
均价线:=AMOUNT/V/100,POINTDOT;
C2:=REF(C,1);
UPQK:=LOW-REF(HIGH,1);
STICKLINE(CLOSE>REF(CLOSE,1) AND UPQK>0,REF(HIGH,1),LOW,4,0),COLORGRAY;
DOWNQK:=REF(LOW,1)-HIGH;
STICKLINE(CLOSE<REF(CLOSE,1) AND DOWNQK>0,REF(LOW,1),HIGH,3.05,0),COLORBLUE;
N:=10;M:=9;
VAB0:=531;VAB1:=1510000;
VAB2:=VAB0 + VAB1;
A:=SMA(L,4,3) ;
B1:='┄┄┄┄┄';
VAB3:=IF(DATE > VAB2,0,1);
{DRAWTEXT(均价线 AND 涨停,均价线,B1),COLORGREEN;}
B3:='┄┄┄┄┄';
涨停:=IF(REF(C,1)*1.1*VAB3-C<0.01 ,1,0);
DRAWTEXT((O+C)/2 AND 涨停,(O+C)/2 ,B3),COLORMAGENTA;
B2:='┄┄┄┄┄';
DRAWTEXT(涨停,L,B2),COLORGRAY;
MA5:=MA(C,5);
MA21:=MA(C,21);
涨停密码线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORWHITE;
LC:=REF(CLOSE,1);
第一操盘线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,COLORWHITE,LINETHICK2;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,COLORGRAY;
震仓线:=45,COLORMAGENTA;
震仓线2:=50,COLORGRAY;
逃命线:=80,COLORRED;
抄底线:=20,COLORGREEN;
绝底线:=5,COLORBLUE;
VARA12:=SMA(H,10,9)*VAB3;
VARA13:=SMA(L,10,9)*VAB3;
PP2:=第一操盘线<震仓线2 AND REF(第一操盘线,1)>震仓线2 ;
PP:=第一操盘线<震仓线 AND REF(第一操盘线,1)>震仓线 ;
PP3:=第一操盘线<抄底线 AND REF(第一操盘线,1)>抄底线;
HH:=COUNT(涨停,13)>=1;
HD:=COUNT(涨停,21)>=1;
A1:=SMA(H,N,M);
STICKLINE(A1 AND HD ,A1,A1*1.001,0.3,0)COLORWHITE;
A2:=SMA(L,N,M);
{STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
STICKLINE(涨停,OPEN,CLOSE,1.9,0) ,COLOR1029FF;
STICKLINE(涨停,OPEN,CLOSE,2.3,0) ,COLOR1040FF;
STICKLINE(涨停,OPEN,CLOSE,2.0,0) ,COLOR1083FF;
STICKLINE(涨停,OPEN,CLOSE,1.6,0) ,COLOR10ABFF;
STICKLINE(涨停,OPEN,CLOSE,1,0) ,COLOR10D0FF;
STICKLINE(涨停,OPEN,CLOSE,0.2,0) ,COLOR10FFFF;}
STICKLINE(涨停,H,L,0,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,3,0) ,COLORRED;
STICKLINE(涨停,(C+O)/2,C,2.5,0),COLOR10D0FF;
卖出全息价参考:VARA12,COLORRED,NODRAW;
补仓全息价参考:VARA13,COLORGREEN,NODRAW;
DRAWICON(优,L,11);
DRAWTEXT(优,L*0.99, '涨停伏击'),COLORRED;
上市日期:FINANCE(42),NODRAW;
{标缺口}
LL:=REF(L,1);RC:=REF(H,1);
上跳:=L>RC;下跳:=H<LL;
DRAWICON(上跳,L*0.9952,1);
DRAWICON(下跳,H*1.0058,2);
{涨跌停}
涨:=CLOSE>REF(CLOSE,1)*1.095 AND CLOSE=HIGH;
跌停:=CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW;
STICKLINE(涨,O,C,1,0),COLOR00FFFF;
STICKLINE(跌停,O,C,1,0),COLORFF0000;
GJ:=(C+H+L+O)/4;
明日阻力:=L+(GJ-L)+(C-L);
明日支撑:=L+(C-GJ);
阻:REF(明日阻力 , 1),NODRAW;
支:REF(明日支撑 , 1),NODRAW,COLORRED;
STICKLINE(ISLASTBAR AND C>=阻,阻,阻,10,1),COLOR0000FF;
STICKLINE(ISLASTBAR AND C<阻,阻,阻,10,1),COLOR00FF00;
STICKLINE(ISLASTBAR AND C>=支,支,支,10,1),COLORFF00FF;
STICKLINE(ISLASTBAR AND C<支,支,支,10,1),COLORFF8800;
DRAWTEXT_FIX(C>1,0,0.02,0,'K线形态:'),COLORFFFFFF;
早晨之星:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));
黄昏之星:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1) > REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));
长十字:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));
垂死十字:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW AND CLOSE=HIGH),1,0));
早晨十字星:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));
黄昏十字星:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 AND REF(OPEN,1) > REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));
射击之星:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));
倒转锤头:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));
锤头:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));
吊颈:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));
穿头破脚:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE<REF(OPEN,1) AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));
乌云盖顶:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));
曙光初现:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));
身怀六甲:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 AND MAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));
十字胎:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND CLOSE=OPEN AND CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));
平顶:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));
平底:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));
大阳烛:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW < CLOSE/OPEN+0.018),1,0));
三个白武士:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPEN AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));
双飞乌鸦:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98),1,0));
孕育线:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1) AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPEN AND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1) AND (MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))<=1/100),1,0));
多方炮:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN),1,0));
出水芙蓉:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60)))) AND (V/MA(V,30)>1.2 AND C/REF(C,1)>1.049)),1,0));
上升三部曲:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4)),1,0));
下跌三部曲:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,4)),1,0));
跳空缺口:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));
三只乌鸦:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE<REF(CLOSE,1)),1,0));
光脚阴线:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));
光头阳线:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));
分离:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0),1,0));
长下影:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0));
长上影:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));
十字星:=CONST(IF((CLOSE=OPEN AND HIGH=LOW),1,0));
大阴烛:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018),1,0));
好友反攻:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)),1,0));
倾盆大雨:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O>REF(O,1) AND C<REF(O,1)),1,0));
VS1:=IF(早晨之星=1,0+0.08,0);
VS2:=IF(黄昏之星=1,VS1+0.08,VS1);
VS3:=IF(长十字=1,VS2+0.08,VS2);
VS4:=IF(垂死十字=1,VS3+0.08,VS3);
VS5:=IF(早晨十字星=1,VS4+0.08,VS4);
VS6:=IF(黄昏十字星=1,VS5+0.08,VS5);
VS7:=IF(射击之星=1,VS6+0.08,VS6);
VS8:=IF(倒转锤头=1,VS7+0.08,VS7);
VS9:=IF(锤头=1,VS8+0.08,VS8);
VS10:=IF(吊颈=1,VS9+0.08,VS9);
VS11:=IF(穿头破脚=1,VS10+0.08,VS10);
VS12:=IF(乌云盖顶=1,VS11+0.08,VS11);
VS13:=IF(曙光初现=1,VS12+0.08,VS12);
VS14:=IF(身怀六甲=1,VS13+0.08,VS13);
VS15:=IF(十字胎=1,VS14+0.08,VS14);
VS16:=IF(平顶=1,VS15+0.06,VS15);
VS17:=IF(平底=1,VS16+0.08,VS16);
VS18:=IF(大阳烛=1,VS17+0.08,VS17);
VS19:=IF(三个白武士=1,VS18+0.08,VS18);
VS20:=IF(双飞乌鸦=1,VS19+0.08,VS19);
VS21:=IF(孕育线=1,VS20+0.08,VS20);
VS22:=IF(多方炮=1,VS21+0.08,VS21);
VS23:=IF(出水芙蓉=1,VS22+0.08,VS22);
VS24:=IF(上升三部曲=1,VS23+0.08,VS23);
VS25:=IF(下跌三部曲=1,VS24+0.08,VS24);
VS26:=IF(跳空缺口=1,VS25+0.08,VS25);
VS27:=IF(三只乌鸦=1,VS26+0.08,VS26);
VS28:=IF(光脚阴线=1,VS27+0.08,VS27);
VS29:=IF(光头阳线=1,VS28+0.08,VS28);
VS30:=IF(分离=1,VS29+0.08,VS29);
VS31:=IF(长下影=1,VS30+0.08,VS30);
VS32:=IF(长上影=1,VS31+0.08,VS31);
VS33:=IF(十字星=1,VS32+0.08,VS32);
VS34:=IF(大阴烛=1,VS33+0.08,VS33);
VS35:=IF(好友反攻=1,VS34+0.08,VS34);
VS36:=IF(倾盆大雨=1,VS35+0.08,VS35);
DRAWTEXT_FIX(早晨之星=1,VS1,0.02,0,'早晨之星'),COLORFF00FF;
DRAWTEXT_FIX(黄昏之星=1,VS2,0.02,0,'黄昏之星'),COLORFFFF00;
DRAWTEXT_FIX(长十字=1,VS3,0.02,0,'长十字'),COLOR00FFFF;
DRAWTEXT_FIX(垂死十字=1,VS4,0.02,0,'垂死十字'),COLORFFFF00;
DRAWTEXT_FIX(早晨十字星=1,VS5,0.02,0,'早晨十字星'),COLORFF00FF;
DRAWTEXT_FIX(黄昏十字星=1,VS6,0.02,0,'黄昏十字星'),COLORFFFF00;
DRAWTEXT_FIX(射击之星=1,VS7,0.02,0,'射击之星'),COLORFFFF00;
DRAWTEXT_FIX(倒转锤头=1,VS8,0.02,0,'倒转锤头'),COLORFF00FF;
DRAWTEXT_FIX(锤头=1,VS9,0.02,0,'锤头'),COLOR0000FF;
DRAWTEXT_FIX(吊颈=1,0.02,VS10,0,'吊颈'),COLORFFFF00;
DRAWTEXT_FIX(穿头破脚=1,VS11,0.02,0,'穿头破脚'),COLORFFFF00;
DRAWTEXT_FIX(乌云盖顶=1,VS12,0.02,0,'乌云盖顶'),COLORFFFF00;
DRAWTEXT_FIX(曙光初现=1,VS13,0.02,0,'曙光初现'),COLORFF00FF;
DRAWTEXT_FIX(身怀六甲=1,VS14,0.02,0,'身怀六甲'),COLOR00FFFF;
DRAWTEXT_FIX(十字胎=1,VS15,0.02,0,'十字胎'),COLOR00FFFF;
DRAWTEXT_FIX(平顶=1,VS16,0.02,0,'平顶'),COLORFFFFFF;
DRAWTEXT_FIX(平底=1,VS17,0.02,0,'平底'),COLORFFFFFF;
DRAWTEXT_FIX(大阳烛=1,VS18,0.02,0,'大阳烛'),COLOR0000FF;
DRAWTEXT_FIX(三个白武士=1,VS19,0.02,0,'红三兵'),COLORFFFFFF;
DRAWTEXT_FIX(双飞乌鸦=1,VS20,0.02,0,'双飞乌鸦'),COLORFF0000;
DRAWTEXT_FIX(孕育线=1,VS21,0.02,0,'孕育线'),COLOR00FFFF;
DRAWTEXT_FIX(多方炮=1,VS22,0.02,0,'多方炮'),COLOR00FFFF;
DRAWTEXT_FIX(出水芙蓉=1,VS23,0.02,0,'出水芙蓉'),COLORFF00FF;
DRAWTEXT_FIX(上升三部曲=1,VS24,0.02,0,'上升三部曲'),COLORFF00FF;
DRAWTEXT_FIX(下跌三部曲=1,VS25,0.02,0,'下跌三部曲'),COLORFFFF00;
DRAWTEXT_FIX(跳空缺口=1,VS26,0.02,0,'跳空缺口'),COLOR00FFFF;
DRAWTEXT_FIX(三只乌鸦=1,VS27,0.02,0,'三只乌鸦'),COLORFFFF00;
DRAWTEXT_FIX(光脚阴线=1,VS28,0.02,0,'光脚阴线'),COLORFFFF00;
DRAWTEXT_FIX(光头阳线=1,VS29,0.02,0,'光头阳线'),COLOR0000FF;
DRAWTEXT_FIX(分离=1,VS30,0.02,0,'分离'),COLOR00FFFF;
DRAWTEXT_FIX(长下影=1,VS31,0.02,0,'长下影'),COLOR00FFFF;
DRAWTEXT_FIX(长上影=1,VS32,0.02,0,'长上影'),COLORFFFF00;
DRAWTEXT_FIX(十字星=1,VS33,0.02,0,'十字星'),COLOR00FFFF;
DRAWTEXT_FIX(大阴烛=1,VS34,0.02,0,'大阴烛'),COLORFF0000;
DRAWTEXT_FIX(好友反攻=1,VS35,0.02,0,'好友反攻'),COLORFF00FF;
DRAWTEXT_FIX(倾盆大雨=1,VS36,0.02,0,'倾盆大雨'),COLORFFFFFF;
{涨停回马枪F}
STICKLINE(C>0,0,10,20,0),COLOR663300;
0,COLORWHITE;
10,COLORWHITE;
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFF,9);
MACD:= 2*(DIFF-DEA);
A1:= BARSLAST((C/REF(C,1)-1)*100>9.5);
A2:= IF(REF(L,A1)>REF(H,A1+1),REF(C,A1+1),REF(O,A1));
A3:= BETWEEN(A1,2,13);
A4:= C>=A2 AND BETWEEN(L/A2,1.035,0.97);
A5:= V<REF(V,1) AND V<MA(V,5);
A6:= ABS(C/O-1)*100<5;
A7:= LLV(C,A1)>=A2;
A8:= MACD>-1;
关注:=A3 AND A4 AND A5 AND A6 AND A7 AND A8;
A9:=MA(C,5)>=A2 AND C>A2 AND C>=MA(C,5) AND REF(C,1)<=REF(MA(C,5),1)
AND LLV(L,A1)<A2*1.045;
买入:=REF(A3,1)>0 AND A9;
ZTF:=IF((C/REF(C,1)-1)*100>9.5,1,0);
STICKLINE(ZTF,0,5,2.4,0),COLOR335555;
STICKLINE(ZTF,0,5,1.8,0),COLOR338888;
STICKLINE(ZTF,0,5,1.2,0),COLOR33AAAA;
STICKLINE(ZTF,0,5,0.6,0),COLOR33CCCC;
STICKLINE(ZTF,0,5,0.1,0),COLOR33EEEE;
DRAWTEXT(ZTF,7,'涨停'),COLOR33EEEE;
STICKLINE(关注 AND NOT(ZTF),0,5,2.4,0),COLOR550055;
STICKLINE(关注 AND NOT(ZTF),0,5,1.8,0),COLOR880088;
STICKLINE(关注 AND NOT(ZTF),0,5,1.2,0),COLORAA00AA;
STICKLINE(关注 AND NOT(ZTF),0,5,0.6,0),COLORCC00CC;
STICKLINE(关注,0,5,0.1,0),COLOREE00EE;
DRAWTEXT(关注,7,'关注'),COLOREE00EE;
STICKLINE(买入 AND NOT(ZTF),0,5,2.4,0),COLOR000055;
STICKLINE(买入 AND NOT(ZTF),0,5,1.8,0),COLOR000088;
STICKLINE(买入 AND NOT(ZTF),0,5,1.2,0),COLOR0000AA;
STICKLINE(买入 AND NOT(ZTF),0,5,0.6,0),COLOR0000CC;
STICKLINE(买入,0,5,0.1,0),COLOR0000EE;
DRAWTEXT(买入,7,'买入'),COLOR0000EE;
{涨停回马枪Z}
MA1:MA(C,P1);
MA2:MA(C,P2);
MA3:MA(C,P3);
MA4:MA(C,P4);
ZT:=(C/REF(C,1)-1)*100>9.5;
ZT1:=BARSLAST((C/REF(C,1)-1)*100>9.5);
最后涨停距今数:ZT1,NODRAW,COLORWHITE;
ZT2:=BARSLAST(ZT);
ZT3:=REF(H,ZT2)-REF(L,ZT2);
STICKLINE(C,(REF(L,ZT2)+ZT3*0.5),(REF(L,ZT2)+ZT3*0.5),7,0),COLORRED;
STICKLINE(C,REF(L,ZT2),REF(L,ZT2),2,0),COLORBLUE;
STICKLINE(ZT,O,C,2.6,0),COLOR0000E5;
STICKLINE(ZT,O,C,2.4,0),COLOR335555;
STICKLINE(ZT,O,C,1.8,0),COLOR338888;
STICKLINE(ZT,O,C,1.2,0),COLOR33AAAA;
STICKLINE(ZT,O,C,0.6,0),COLOR33CCCC;
STICKLINE(ZT,O,C,0.1,0),COLOR33EEEE;
STICKLINE(ZT1=2,L*0.97,L*0.98,8,0),COLOR0000FF;
STICKLINE(ZT1=4,H*1.03,H*1.02,8,0),COLOR9966FF;
STICKLINE(ZT1=7,L*0.97,L*0.98,8,0),COLOR00FFFF;
STICKLINE(ZT1=12,H*1.03,H*1.02,8,0),COLORFF33FF;
DRAWTEXT(ZT1=1,H*1.06,'1'),COLORYELLOW;
DRAWTEXT(ZT1=2,H*1.06,'2'),COLORYELLOW;
DRAWTEXT(ZT1=3,H*1.06,'3'),COLORYELLOW;
DRAWTEXT(ZT1=4,H*1.06,'4'),COLORYELLOW;
DRAWTEXT(ZT1=5,H*1.06,'5'),COLORYELLOW;
DRAWTEXT(ZT1=6,H*1.06,'6'),COLORYELLOW;
DRAWTEXT(ZT1=7,H*1.06,'7'),COLORYELLOW;
DRAWTEXT(ZT1=8,H*1.06,'8'),COLORYELLOW;
DRAWTEXT(ZT1=9,H*1.06,'9'),COLORYELLOW;
DRAWTEXT(ZT1=10,H*1.06,'10'),COLORYELLOW;
DRAWTEXT(ZT1=11,H*1.06,'11'),COLORYELLOW;
DRAWTEXT(ZT1=12,H*1.06,'12'),COLORYELLOW;
DRAWTEXT(ZT1=13,H*1.06,'13'),COLORYELLOW;
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFF,9);
MACD:= 2*(DIFF-DEA);
A1:= BARSLAST((C/REF(C,1)-1)*100>9.5);
A2:= IF(REF(L,A1)>REF(H,A1+1),REF(C,A1+1),REF(O,A1));
A3:= BETWEEN(A1,2,13);
A4:= C>=A2 AND BETWEEN(L/A2,1.035,0.97);
A5:= V<REF(V,1) AND V<MA(V,5);
A6:= ABS(C/O-1)*100<5;
A7:= LLV(C,A1)>=A2;
A8:= MACD>-1;
关注:=A3 AND A4 AND A5 AND A6 AND A7 AND A8;
A9:=MA(C,5)>=A2 AND C>A2 AND C>=MA(C,5) AND REF(C,1)<=REF(MA(C,5),1)
AND LLV(L,A1)<A2*1.045;
买入:=REF(A3,1)>0 AND A9;
STICKLINE(关注 AND NOT(ZT),O,C,2.4,0),COLOR550055;
STICKLINE(关注 AND NOT(ZT),O,C,1.8,0),COLOR880088;
STICKLINE(关注 AND NOT(ZT),O,C,1.2,0),COLORAA00AA;
STICKLINE(关注 AND NOT(ZT),O,C,0.6,0),COLORCC00CC;
STICKLINE(关注,O,C,0.1,0),COLOREE00EE;
STICKLINE(买入 AND NOT(ZT),O,C,2.4,0),COLOR000055;
STICKLINE(买入 AND NOT(ZT),O,C,1.8,0),COLOR000088;
STICKLINE(买入 AND NOT(ZT),O,C,1.2,0),COLOR0000AA;
STICKLINE(买入 AND NOT(ZT),O,C,0.6,0),COLOR0000CC;
STICKLINE(买入,O,C,0.1,0),COLOR0000EE;
跌停:=(C-REF(C,1))/REF(C,1)*100<-9.95;
STICKLINE(跌停,O,C,2.4,0),COLOR555500;
STICKLINE(跌停,O,C,1.8,0),COLOR888800;
STICKLINE(跌停,O,C,1.2,0),COLORAAAA00;
STICKLINE(跌停,O,C,0.6,0),COLORCCCC00;
STICKLINE(跌停,O,C,0.1,0),COLOREEEE00;
承接范围:通达信.tn6 .tne .tni .tnc 、大智慧.fnc、飞狐.alg、同花顺.hxf、操盘手.daf、博易大师.pio、倚天期货.wfn2、文华赢顺.fml、文华WH6、文华WH8.xfml.trd.xtrd.zip、金字塔.fla、交易开拓者.tbf .fbk、财富通 .fml、UP安全投资卫士.fnc、金汇、富远等先做后付!
课程会非常精彩,有兴趣学习的伙伴可以加微信:396950280报名,备注"智汇盟",第一时间安排邀请你进群,期待与你一起学习,一起进步。
联系客服