新天狼剑
-
相关简介:C/C++ Code 复制内容到剪贴板 {天狼剑} {支撑} VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3); VAR2222:=CROSS(VAR1111,0.9); VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3); VAR4444:=CROSS(VAR3333,0.9); 压力:REF(HIGH,BARSLAST(Var2222)),POINTDOT,ColorEA91B5; STIC
-
文章来源:择股网作者:股海网发布时间:2009-10-08浏览次数:
C/C++ Code复制内容到剪贴板
- {天狼剑}
- {支撑}
- VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
- VAR2222:=CROSS(VAR1111,0.9);
- VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
- VAR4444:=CROSS(VAR3333,0.9);
- 压力: REF(HIGH,BARSLAST(Var2222)), POINTDOT,ColorEA91B5;
- STICKLINE(CLOSE,REF(HIGH,BARSLAST(Var2222)),REF(HIGH,BARSLAST(Var2222)),5,0),LINETHICK3,ColorEA91B5;
- 支撑: REF(LOW,BARSLAST(Var4444)), POINTDOT,Color00b4ff,linethick3;
- STICKLINE(CLOSE,REF(LOW,BARSLAST(Var4444)),REF(LOW,BARSLAST(Var4444)),5,0),LINETHICK3,Color00b4ff;
- B1:=MA(C,1);
- B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);
- SMA2:=MA(B2,3);
- 停损下限:IF(LLV(MA(B2,8),3)<b2,LLV(MA(B2,8),3),b2),linethick3,colordd00dd;
- FILLRGN(b2,sma2,b2>sma2,RGB(255,200,0),b2<sma2,RGB(0,255,0));
- snakeA:HHV(MA(B2,1),13),linethick3,coloryellow;
- Var1:=(2*CLOSE+HIGH+LOW)/4;
- Var2:=MA(Var1,7);
- Var3:=Var2-MA(Var1,7/2)<0;
- Var4:=Var2-MA(Var1,7/2)>0;
- Var5:=BARSLAST(Var3);
- Var6:=0-BARSLAST(Var4);
- Var7:=IF(Var3<=0,Var5,Var6);
- STICKLINE(snakea>b2 AND b2>SMA2,snakea,b2,1,1),colorblue;
- STICKLINE(snakea>SMA2 AND b2<SMA2,snakea,SMA2,1,1),colorblue;
- Var11:=(CLOSE*2+HIGH+LOW)/4;
- Var21:=EMA(Var11,13)-EMA(Var11,34);
- Var31:=EMA(Var21,5);
- STICKLINE((C>=O),OPEN,LOW,1,0),color0726CA;
- STICKLINE((C>=O),CLOSE,HIGH,1,0),color0726CA;
- STICKLINE((C<O),CLOSE,LOW,1,0),colorDE9100;
- STICKLINE((C<O),OPEN,HIGH,1,0),colorDE9100;
- STICKLINE((C<O),CLOSE,OPEN,8,0),colorFF5B00;
- STICKLINE((C<O),CLOSE,OPEN,10,0),color000000;
- STICKLINE((C<O),CLOSE,OPEN,7,0),colorFF6C00;
- STICKLINE((C<O),CLOSE,OPEN,6,0),colorFF7B00;
- STICKLINE((C<O),CLOSE,OPEN,5,0),colorFF9C00;
- STICKLINE((C<O),CLOSE,OPEN,4,0),colorFFBE00;
- STICKLINE((C<O),CLOSE,OPEN,2.5,0),colorFFCC00;
- STICKLINE((C<O),CLOSE,OPEN,1.5,0),colorFFFF00;
- STICKLINE((C>O),CLOSE,OPEN,8,0),color070084;
- STICKLINE((C>O),CLOSE,OPEN,10,0),color000000;
- STICKLINE((C>O),CLOSE,OPEN,7,0),color0000A3;
- STICKLINE((C>O),CLOSE,OPEN,6,0),color0000B7;
- STICKLINE((C>O),CLOSE,OPEN,5,0),color0000CD;
- STICKLINE((C>O),CLOSE,OPEN,4,0),color0000E9;
- STICKLINE((C>O),CLOSE,OPEN,2,0),color0754E9;
- STICKLINE((C>O),CLOSE,OPEN,1.5,0),color076EF3;
- STICKLINE((C>O),CLOSE,OPEN,1,0),color077BF3;
- VAR2A:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));
- VAR3A:=((REF(VAR2A,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
- VAR4A:=((REF(VAR3A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
- VAR5A:=((REF(VAR4A,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
- VAR6A:=((REF(VAR5A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
- VAR7A:=((REF(VAR6A,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
- VAR8A:=((REF(VAR7A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
- VAR9A:=((REF(VAR8A,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
- VARAA:=((REF(VAR9A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
- VARBA:=((REF(VARAA,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
- VARCA:=((REF(VARBA,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
- VARDA:=((REF(VARCA,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
- VAREAA:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));
- VARFA:=((REF(VAREAA,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF
- (CLOSE,2)));
- VAR10A:=((REF(VARFA,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF
- (CLOSE,2)));
- VAR11A:=((REF(VAR10A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF
- (CLOSE,2)));
- VAR12A:=((REF(VAR11A,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF
- (CLOSE,2)));
- VAR13A:=((REF(VAR12A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF
- (CLOSE,2)));
- VAR14A:=((REF(VAR13A,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF
- (CLOSE,2)));
- VAR15A:=((REF(VAR14A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF
- (CLOSE,2)));
- VAR16A:=((REF(VAR15A,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF
- (CLOSE,2)));
- VAR17A:=((REF(VAR16A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF
- (CLOSE,2)));
- VAR18A:=((REF(VAR17A,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF
- (CLOSE,2)));
- VAR19A:=((REF(VAR18A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF
- (CLOSE,2)));
- VAR1A:=(REF((((((((((((VAREAA OR VARFA) OR VAR10A) OR VAR11A) OR VAR12A) OR
- VAR13A) OR VAR14A) OR VAR15A) OR VAR16A) OR VAR17A) OR VAR18A) OR VAR19A),1) AND
- VAR2A);
- STICKLINE(var1A,O,O+(C-O)/3,8,0),color0000ff;
- STICKLINE(var1A,O,O+(C-O)/3,7,0),color1029ff;
- STICKLINE(var1A,O,O+(C-O)/3,6,0),color1040ff;
- STICKLINE(var1A,O,O+(C-O)/3,5,0),color1083ff;
- STICKLINE(var1A,O,O+(C-O)/3,4,0),color10abff;
- STICKLINE(var1A,O,O+(C-O)/3,3,0),color10d0ff;
- STICKLINE(var1A,O,O+(C-O)/3,2,0),color10ffff;
- STICKLINE(var1A,O,O+(C-O)/3,1,0),color00ffff;
- AA:=(REF((((((((((((VAR2A OR VAR3A) OR VAR4A) OR VAR5A) OR VAR6A) OR VAR7A) OR
- VAR8A) OR VAR9A)
- OR VARAA) OR VARBA) OR VARCA) OR VARDA),1) AND VAREAA);
- STICKLINE(aa,O,O+(C-O)/3,8,0),color008800;
- STICKLINE(aa,O,O+(C-O)/3,7,0),color009900;
- STICKLINE(aa,O,O+(C-O)/3,6,0),color00aa00;
- STICKLINE(aa,O,O+(C-O)/3,5,0),color00bb00;
- STICKLINE(aa,O,O+(C-O)/3,4,0),color00cc00;
- STICKLINE(aa,O,O+(C-O)/3,3,0),color00dd00;
- STICKLINE(aa,O,O+(C-O)/3,2,0),color00ee00;
- STICKLINE(aa,O,O+(C-O)/3,1,0),color00ff00;
- a13:=EMA(CLOSE,55);
- a14:=MA(CLOSE,75);
- a15:=EMA(a14,3);
- a16:=EMA(a15,3);
- a17:=(HIGH + LOW) / 5;
- a18:=(MA(a17,4)) - (MA(a17,34));
- a19:=CROSS(a18,0);
- a20:=CROSS(0,a18);
- a21:=BARSLAST(a19);
- a22:=BARSLAST(a20);
- a23:=REF(a19,1);
- a24:=REF(a20,1);
- a25:=BARSLAST(a23);
- a26:=BARSLAST(a24);
- a27:=IF((a25 < a26),(REF((HHV(HIGH,2)),a25)),(REF((LLV(LOW,2)),a26)));
- a28:=(((REF(CLOSE,1)) <= (REF(a27,1))) AND (CLOSE > a27)) AND (a21 < a22);
- a29:=(((REF(CLOSE,1)) >= (REF(a27,1))) AND (CLOSE < a27)) AND (a22 < a21);
- a30:=a28 AND ((COUNT(a28,a21)) = 1);
- a31:=a29 AND ((COUNT(a29,a22)) = 1);
- a32:=a30 AND ((REF(BARSLAST(a31),1)) < (REF(BARSLAST(a30),1)));
- a33:=a31 AND ((REF(BARSLAST(a31),1)) > (REF(BARSLAST(a30),1)));
- DRAWTEXT(a32,SMA2*0.99,'←═╬∝剑'),LINETHICK5,coloryellow;
- ac:=AMOUNT/(VOL);
- yy:=MA(ac,13);
- lll:=(C-yy)/yy*100;
- MIDc := MA(CLOSE,22);
- UPPERc:= MIDc + 2*STD(C,22);
- LOWERc:= MIDc - 2*STD(C,22);
- bba:=(C-lowerc)/(upperc-lowerc);
- LIFENGcyc:=(REF(lll,1)<-15 AND REF(bba,1)<0 AND lll>REF(lll,1));
- STICKLINE(lifengcyc>0,C,O,8,0),colorred;
- STICKLINE(lifengcyc>0,C,O,7,0),color1029FF;
- STICKLINE(lifengcyc>0,C,O,6,0),color1040FF;
- STICKLINE(lifengcyc>0,C,O,4,0),color1083FF;
- STICKLINE(lifengcyc>0,C,O,2,0),color10ABFF;
- STICKLINE(lifengcyc>0,C,O,1.5,0),color10D0FF;
- STICKLINE(lifengcyc>0,C,O,1,0),color10FFFF;
- DRAWTEXT(LIFENGcyc>0,LOW*0.99,'刀☆'),LINETHICK5,colordd00dd;
- {操盘手BS}
- 买线:=EMA(C,2);
- 卖线:=EMA(SLOPE(C,21)*20+C,42);
- BU:=cross(买线,卖线);
- SEL:=cross(卖线,买线);
- drawtext(bu,LOW,'B'),ALIGN1,VALIGN0,colorYELLOW,linethick4;
- drawtext(sel,HIGH,'S'),ALIGN1,VALIGN2,colorFFFF00,linethick4;
- PT := REF(HIGH,1)-REF(LOW,1);
- 重心:=(HIGH + LOW + CLOSE)/3;
- 压力Ⅰ:= 2*重心-LOW;
- 压力Ⅱ:= 重心 + PT;
- 支撑Ⅰ:= 2*重心-HIGH;
- 支撑Ⅱ:= 重心 - PT;
- DRAWTEXTABS(100,13,' 《逆势操作》'),ColorFFFFFF;
- DRAWTEXTABS(175,13,' 重心:'+重心),Coloryellow;
- DRAWTEXTABS(100,32,' 支 撑'),ColorFFFFFF;
- DRAWTEXTABS(100,49,' '+支撑Ⅰ),ColorFFFFFF;
- DRAWTEXTABS(100,67,' '+支撑Ⅱ),ColorFFFFFF;
- DRAWTEXTABS(100,32,' 压 力'),ColorFFFFFF;
- DRAWTEXTABS(100,49,' '+压力Ⅰ),ColorFFFFFF;
- DRAWTEXTABS(100,67,' '+压力Ⅱ),ColorFFFFFF;
- DRAWTEXTABS(100,10,'│'),Color00FFFF;
- DRAWTEXTABS(100,22,'│'),Color00FFFF;
- DRAWTEXTABS(100,34,'│'),Color00FFFF;
- DRAWTEXTABS(100,46,'│'),Color00FFFF;
- DRAWTEXTABS(100,58,'│'),Color00FFFF;
- DRAWTEXTABS(100,70,'│'),Color00FFFF;
- DRAWTEXTABS(243,10,'│'),Color00FFFF;
- DRAWTEXTABS(243,22,'│'),Color00FFFF;
- DRAWTEXTABS(243,34,'│'),Color00FFFF;
- DRAWTEXTABS(243,46,'│'),Color00FFFF;
- DRAWTEXTABS(243,58,'│'),Color00FFFF;
- DRAWTEXTABS(243,70,'│'),Color00FFFF;
- DRAWTEXTABS(171,30,'│'),Color00FFFF;
- DRAWTEXTABS(171,34,'│'),Color00FFFF;
- DRAWTEXTABS(171,46,'│'),Color00FFFF;
- DRAWTEXTABS(171,58,'│'),Color00FFFF;
- DRAWTEXTABS(171,70,'│'),Color00FFFF;
- DRAWTEXTABS(105,5,'────────────'),Color00FFFF;
- DRAWTEXTABS(105,25,'────────────'),Color00FFFF;
- DRAWTEXTABS(105,42,'────────────'),Color00FFFF;
- DRAWTEXTABS(105,59,'────────────'),Color00FFFF;
- DRAWTEXTABS(105,76,'────────────'),Color00FFFF;
- {金印组合}
- QH:=REF(H,2);
- QL:=REF(L,2);
- QO:=REF(O,2);
- QC:=REF(C,2);
- ZO:=REF(O,1);
- ZC:=REF(C,1);
- JYZHK:= ABS(QO-QC)/QO<0.02 AND ZO/ZC>1.03 AND ABS(O-C)/O<0.02 AND C>MA(C,30);
- JYZHV:=V<REF(V,1) ;
- JYZH:=JYZHK AND JYZHV;
- DRAWTEXT(JYZH,L,'←金印'),linethick3,coloryellow;
- {以下定义坚决买进}
- var77:=ema(amount/vol/100,3);
- var88:=ema(var77,88);
- var99:=ema(var77,88)*0.85;
- varah:=var99*0.87;
- varbh:=low<varah and close>ref(close,1)*1.02;
- drawtext(filter(varbh,6),l-0.08,'←坚决买进'),linethick3,colorff00ff;
- {以下设置强势狙击}
- BB05:=atan(((MA(C,5))/ref((MA(C,5)),1)-1)*100)*180/3.1416;
- BB10:=atan(((MA(C,10))/ref((MA(C,10)),1)-1)*100)*180/3.1416;
- BB30:=atan(((MA(C,30))/ref((MA(C,30)),1)-1)*100)*180/3.1416;
- 强势狙击:=filter(BB30>30 and BB10>45 and cross(BB05,60),10);
- drawtext(强势狙击,LOW*0.98,'←强势狙击'),linethick3,colorwhite;
- {以下定义资金进场}
- VAR3e:=100-(100-3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1));
- VAR4e:=100-(100-3*SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1));
- VAR5e:=VAR3e>REF(VAR4e,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
- DRAWTEXT(VAR5e AND COUNT(VAR5e,30)=1,low,'←资金进场'),linethick3,COLORYELLOW;
- {以下定义顶底背离}
- LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
- FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'←底背离'),linethick3,COLORA6E500;
- DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'←顶背离'),linethick3,COLOR1880FF;
- {量能饱和度}
- SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
- DRAWTEXTREL(350,40,'量能饱和度:'+NUMTOSTRN(SAT,0)),LINETHICK4,ColorFF00FF;
- DRAWTEXTREL(0,0,'总股本:'+NUMTOSTRN(FINANCE2(35),0)+'流通A股:'+NUMTOSTRN(FINANCE2(37),0)+'每股收益:'+NUMTOSTRN(FINANCE2(3),3)+'元'+'每股公积金:'+NUMTOSTRN(FINANCE2(7),2)+'元'+'昨:'+NUMTOSTRN(DYNAINFO(3),2)+'开:'+NUMTOSTRN(DYNAINFO(4),2)+'高:'+NUMTOSTRN(DYNAINFO(5),2)+'低:'+NUMTOSTRN(DYNAINFO(6),2)+'收:'+NUMTOSTRN(DYNAINFO(7),2)+'涨幅:'+NUMTOSTRN((DYNAINFO(14)*100),2)+'%'+'振幅:'+NUMTOSTRN((DYNAINFO(13)*100),2)+'%'+'换手率:'+NUMTOSTRN((DYNAINFO(37)*100),2)+'%'),linethick2,ColorFF00FF;