大智慧神熬系列源码
-
相关简介:C/C++ Code 复制内容到剪贴板 大智慧神熬四线源码 DRAWTEXTREL(50,10, '代码:' +STKLABEL+ '' +STKNAME+ '日期:' +YEAR+ '年' +MONTH+ '月' +DAY+ '日' ),linethick2,ColorFFFF80; DRAWTEXTREL(650,10, '㊣十二星座*神獒赢富㊣' ),linethick1,COLOR00EEff; a1:=SUM((ORDERVOL(1,3)),0); a2:=SUM(
-
文章来源:择股网作者:股海网发布时间:2009-11-02浏览次数:
C/C++ Code复制内容到剪贴板
- 大智慧神熬四线源码
- DRAWTEXTREL(50,10,' 代码: '+STKLABEL+' '+STKNAME+' 日期: '+YEAR+'年'+MONTH+'月 '+DAY+'日 '),linethick2,ColorFFFF80;
- DRAWTEXTREL(650,10,'㊣十二星座*神獒赢富㊣'),linethick1,COLOR00EEff;
- a1:=SUM((ORDERVOL(1,3)),0);
- a2:=SUM((ORDERVOL(2,3)),0);
- a3:=(SUM((ORDERVOL(1,2)),0)) - a1;
- a4:=(SUM((ORDERVOL(2,2)),0)) - a2;
- a5:=(SUM((ORDERVOL(1,1)),0)) - (SUM((ORDERVOL(1,2)),0));
- a6:=(SUM((ORDERVOL(2,1)),0)) - (SUM((ORDERVOL(2,2)),0));
- a7:=(SUM((ORDERVOL(1,0)),0)) - (SUM((ORDERVOL(1,1)),0));
- a8:=(SUM((ORDERVOL(2,0)),0)) - (SUM((ORDERVOL(2,1)),0));
- a9:=(SUM((ORDERVOL(1,0)),0)) + (SUM((ORDERVOL(2,0)),0));
- a10:=a7 - a8;
- a11:=a5 - a6;
- a12:=a3 - a4;
- a13:=a1 - a2;
- a14:=(SUM((ORDERVOL(1,2)),0)) - (SUM((ORDERVOL(2,2)),0));
- a15:=(100 * a7) / a9;
- a16:=(100 * a8) / a9;
- a17:=(100 * a5) / a9;
- a18:=(100 * a6) / a9;
- a19:=(100 * a3) / a9;
- a20:=(100 * a4) / a9;
- a21:=(100 * a1) / a9;
- 中户筹码:A11,linethick1,colorGreen;
- 大户筹码:A12,linethick1,colorYellow;
- 机构筹码:A13,linethick1,ColorFF0000;
- 主力筹码:A14,linethick2,colorRed;
- a22:=(100 * a2) / a9;
- a23:=(100 * (SUM((ORDERVOL(1,2)),0))) / a9;
- a24:=(100 * (SUM((ORDERVOL(2,2)),0))) / a9;
- a25:=(100 * a10) / a9;
- a26:=(100 * a11) / a9;
- a27:=(100 * a12) / a9;
- a28:=(100 * a13) / a9;
- a29:=(100 * a14) / a9;
- a30:=(a1);
- a31:=(a2);
- a32:=(a3);
- a33:=(a4);
- a34:=(a5);
- a35:=(a6);
- a36:=(a7);
- a37:=(a8);
- a38:=((SUM((ORDERVOL(1,2)),0)));
- a39:=((SUM((ORDERVOL(2,2)),0)));
- a40:=(a10);
- a41:=500 / (MAX(a30,a31,a32,a33,a34,a35,a36,a37,a40,中户筹码,大户筹码,机构筹码));
- a42:=550 / (MAX(a38,a39,主力筹码));
- a43:=600 - (a30 * a41);
- a44:=600 - (a31 * a41);
- a45:=600 - (a32 * a41);
- a46:=600 - (a33 * a41);
- a47:=600 - (a34 * a41);
- a48:=600 - (a35 * a41);
- a49:=600 - (a36 * a41);
- a50:=600 - (a37 * a41);
- a51:=600 - (a38 * a42);
- a52:=600 - (a39 * a42);
- a53:=600 - (a40 * a41);
- a54:=600 - (中户筹码 * a41);
- a55:=600 - (大户筹码 * a41);
- a56:=600 - (机构筹码 * a41);
- a57:=600 - (主力筹码 * a42);
- DRAWRECTREL(50,a49,70,600,250),colorYellow;
- DRAWRECTREL(70,a50,90,600,9213440),colorYellow;
- DRAWRECTREL(90,a53,110,600,(IF((a10 >= 0),3289855,8584960))),colorYellow;
- DRAWRECTREL(160,a47,180,600,250),colorYellow;
- DRAWRECTREL(180,a48,200,600,9213440),colorYellow;
- DRAWRECTREL(200,a54,220,600,(IF((a11 >= 0),3289855,8584960))),colorYellow;
- DRAWRECTREL(270,a45,290,600,250),colorYellow;
- DRAWRECTREL(290,a46,310,600,9213440),colorYellow;
- DRAWRECTREL(310,a55,330,600,(IF((a12 >= 0),3289855,8584960))),colorYellow;
- DRAWRECTREL(380,a43,400,600,250),colorYellow;
- DRAWRECTREL(400,a44,420,600,9213440),colorYellow;
- DRAWRECTREL(420,a56,440,600,(IF((a13 >= 0),3289855,8584960))),colorYellow;
- DRAWRECTREL(925,a51,945,600,255),colorYellow;
- DRAWRECTREL(945,a52,965,600,9213440),colorYellow;
- DRAWRECTREL(965,a57,985,600,(IF((a14 >= 0),3289855,8584960))),colorYellow;
- DRAWRECTREL(0,600,445,604,255),colorWhite;
- DRAWTEXTREL(18,450,'散户'),ColorDDFFFF;
- DRAWTEXTREL(125,450,'中户'),ColorDDFFFF;
- DRAWTEXTREL(235,450,'大户'),ColorDDFFFF;
- DRAWTEXTREL(345,450,'机构'),ColorDDFFFF;
- DRAWTEXTREL(888,450,'主力'),ColorDDFFFF;
- DRAWTEXTREL(2,720,'机构买:'+NUMTOSTR(a21)+'%'+' 大户买:'+NUMTOSTR(a19)+'%'+' 中户买:'+NUMTOSTR(a17)+'%'+' 散户买:'+NUMTOSTR(a15)+'%'),colorRed;
- DRAWTEXTREL(2,790,'机构卖:'+NUMTOSTR(a22)+'%'+' 大户卖:'+NUMTOSTR(a20)+'%'+' 中户卖:'+NUMTOSTR(a18)+'%'+' 散户卖:'+NUMTOSTR(a16)+'%'),colorGreen;
- DRAWTEXTREL(2,860,'机构差:'+NUMTOSTR(a28)+'%'+' 大户差:'+NUMTOSTR(a27)+'%'+' 中户差:'+NUMTOSTR(a26)+'%'+' 散户差:'+NUMTOSTR(a25)+'%'),colorWhite;
C/C++ Code复制内容到剪贴板
- 神獒炎律 乱码已修复
- input:N(5,1,100);
- 幅度:=ABS((C-REF(C,1))/REF(C,1));
- 转折:=IF(C>=O,幅度,0-幅度);
- 变异速度:=转折*1000000/INDEXC;
- 神獒:SUM(变异速度,n),linethick2,COLORRED;
- 定律:SUM(0-变异速度,n),linethick2,coloryellow;
- LC:=REF(CLOSE,1);
- DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
- DEA:= EMA(DIFF,9);
- MACD:= 2*(DIFF-DEA);
- 容量比率:=SUM(IF(CLOSE>LC,VOL,0),26)*100/SUM(IF(CLOSE<=LC,VOL,0),26);
- 审判:(容量比率<70 OR CROSS(DIFF,DEA)) AND CROSS(神獒,定律) AND C/L>1.02,linethick2,colorwhite;
- DRAWICON(审判,0,7);
- Var1:=EMA(HHV(HIGH,500),21);
- Var2:=EMA(HHV(HIGH,250),21);
- Var3:=EMA(HHV(HIGH,90),21);
- Var4:=EMA(LLV(LOW,500),21);
- Var5:=EMA(LLV(LOW,250),21);
- Var6:=EMA(LLV(LOW,90),21);
- Var7:=EMA((Var4*0.96+Var5*0.96+Var6*0.96+Var1*0.558+Var2*0.558+Var3*0.558)/6,21);
- Var8:=EMA((Var4*1.25+Var5*1.23+Var6*1.2+Var1*0.55+Var2*0.55+Var3*0.65)/6,21);
- Var9:=EMA((Var4*1.3+Var5*1.3+Var6*1.3+Var1*0.68+Var2*0.68+Var3*0.68)/6,21);
- VarA:=EMA((Var7*3+Var8*2+Var9)/6*1.738,21);
- VarB:=REF(LOW,1);
- VarC:=SMA(ABS(LOW-VarB),3,1)/SMA(MAX(LOW-VarB,0),3,1)*100;
- VarD:=EMA(IF(CLOSE*1.35<=VarA,VarC*10,VarC/10),3);
- VarE:=LLV(LOW,30);
- VarF:=HHV(VarD,30);
- Var10:=IF(MA(CLOSE,58),1,0);
- 神炎:EMA(IF(LOW<=VarE,(VarD+VarF*2)/2,0),3)/618*Var10,coloryellow;
- 邪炎:=STICKLINE(神炎>0 ,0 ,神炎 ,4 ,1);
- ㊣:神炎,colorred;
- STICKLINE(神炎>0,0 ,㊣*1.2,8,0 ),COLOR00EEff;
- STICKLINE(神炎>0,0 ,㊣*0.8,8,0 ),COLOR00BBff;
- STICKLINE(神炎>0,0 ,㊣*0.6,8,0 ),COLOR0099ff;
- STICKLINE(神炎>0,0 ,㊣*0.4,8,0 ),COLOR0066ff;
- STICKLINE(神炎>0,0 ,㊣*0.2,8,0 ),COLOR0000ff;
- M5:=EMA(C,43);
- M6:=EMA(C,55);
- M7:=MA(C,78);
- M8:=EMA(M7,3);
- M9:=EMA(M8,3);
- M11:=EMA(M9,3);
- MA47:=EMA(CLOSE,46);
- MA60:=EMA(CLOSE,60);
- Y:=(H+L)/2;
- AO:=MA(Y,5)-MA(Y,34 );
- DU0:=CROSS(AO,0);
- UD0:=CROSS(0,AO);
- TDU0:=BARSLAST(DU0);
- TUD0:=BARSLAST(UD0);
- DU3:=REF(DU0,1);
- UD3:=REF(UD0,1);
- TDU3:=BARSLAST(DU3);
- TUD3:=BARSLAST(UD3);
- UDGLINE:=IF(TDU3<TUD3,REF(HHV(H,2),TDU3),REF(LLV(L,2),TUD3));
- JDU0:=REF(C,1)<=REF(UDGLINE,1) AND C>UDGLINE AND TDU0<TUD0;
- JUD0:=REF(C,1)>=REF(UDGLINE,1) AND C<UDGLINE AND TUD0<TDU0;
- JDU1:=JDU0 AND COUNT(JDU0,TDU0)=1;
- JUD1:=JUD0 AND COUNT(JUD0,TUD0)=1;
- JDU2:=JDU1 AND REF(BARSLAST(JUD1),1)<REF(BARSLAST(JDU1),1);
- JUD2:=JUD1 AND REF(BARSLAST(JUD1),1)>REF(BARSLAST(JDU1),1);
- JDU3:=JDU1 AND REF(BARSLAST(JUD1),1)>REF(BARSLAST(JDU1),1);
- JUD3:=JUD1 AND REF(BARSLAST(JUD1),1)<REF(BARSLAST(JDU1),1);
- ㊣神:JDU2 AND M9*0.90,colorwhite;
- DRAWTEXT(㊣神,(LOW * 0.98),'㊣'),linethick2,ALIGN1,coloryellow;
- DRAWTEXTREL(10,800,'㊣赢富㊣'),linethick1,COLOR00EEff;
- DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));
C/C++ Code复制内容到剪贴板
- 神獒掌控波段操作
- {㊣神獒掌控㊣}
- input:N(88,1,1111),N1(888,1,1111);
- DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));
- a1:=IF((CLOSE < 800),((AMOUNT / VOL) / 100),((((CLOSE * 2) + HIGH) + LOW) / 4));
- a2:=((HHV(HIGH,15)) + (LLV(LOW,30))) / 2;
- a3:=EMA((MA(a1,5)),10);
- a4:=EMA((MA(a1,15)),10);
- a5:=EMA((MA(a1,13)),21);
- a6:=((a3 + a4) + a5) / 3;
- 决策线:EMA((MA(CLOSE,5)),3),colorGreen;
- PARTLINE(决策线,决策线 > (REF(决策线,3)),RGB(255,0,0)),linethick1,colorRed;
- 多空带:((((REF(a6,1)) + a6) + (REF(a6,2))) / 3),linethick0;
- a7:=(((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 1.191;
- a8:=(((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 1.236;
- a9:=(((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 0.809;
- a10:=(((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 0.764;
- a11:=(((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 0.618;
- 地线:(a9),linethick1,Coloryellow;
- 天线:(a7),linethick1,ColorFF0000;
- 支撑线:(a10),linethick2,Color73740F;
- 阻力线:(a8),linethick2,Color509046;
- a12:=((EMA((MA(a1,3)),3)) + (WMA(a1,5))) / 2;
- a13:=REF(a12,1);
- a14:=BARSCOUNT(CLOSE);
- a15:=IF((a14 = 1),0,(((a12 - a13) / a13) * 100));
- a16:=REF(CLOSE,1);
- a17:=IF((a14 = 1),0,(((CLOSE - a16) / a16) * 100));
- a18:=IF((a14 = 1),((CLOSE + OPEN) / 2),a13);
- a19:=REF(a12,2);
- a20:=((a12 + a13) + a19) / 3;
- a21:=((ABS((a12 - a20)) + ABS((a13 - a20))) + ABS((a19 - a20))) / 3;
- a22:=IF((a14 < 3),0,((a21 / a12) * 100));
- a23:=IF((((a15 > 0.5) AND ((a22 > 0.215) OR (LOW > a18))) AND (CLOSE >= OPEN)),1,0);
- a24:=IF((((a15 < (0 - 0.3)) AND ((a22 > 0.2) OR (HIGH < a18))) AND ((OPEN >= CLOSE) OR (a17 < -1))),1,0);
- FILLRGN((((REF(a6,1)) + a6) + (REF(a6,2))) / 3,(((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 0.985,CLOSE > a2,RGB(250,0,0),CLOSE < a2,RGB(101,0,185));
- B:((COUNT(a23,BARSLAST(a24))) = 1) AND a23,linethick0;
- D:((COUNT(a24,BARSLAST(a23))) = 1) AND a24,linethick0;
- DRAWTEXT(B,(LOW * 0.98),'㊣'),linethick3,ALIGN1,colorWhite;
- DRAWTEXT(D,(HIGH * 1.035),'S'),linethick3,ALIGN1,colorGreen;
- STICKLINE(((B > 0) OR (D > 0)),a1,(a1 * 0.998),8,0),ColorFF0000;
- a25:=(EMA(CLOSE,12)) - (EMA(CLOSE,26));
- a26:=EMA(a25,9);
- a27:=2 * (a25 - a26);
- a28:=IF((((((((REF(a27,1)) < (REF(a27,2))) AND ((REF(a27,2)) < (REF(a27,3)))) AND (a27 > (REF(a27,1)))) AND (a27 >= 0)) AND ((LLV(a27,4)) > 0)) AND (COUNT((a27 < 0.18),5))),(a27 * 2),0);
- a29:=IF(((COUNT((CROSS(a26,a25)),8)) AND (CROSS(a25,a26))),(a27 * 4),0);
- a30:=(a28 > 0) AND (CLOSE >= (((REF(a6,1)) + a6) + (REF(a6,2))) / 3);
- DRAWICON(a30,LOW,12),ALIGN1;
- a31:=(((CLOSE / a16) - 1) * 100) >= 7;
- a32:=HIGH - ((HIGH - LOW) / 3);
- a33:=LOW + ((HIGH - LOW) / 3);
- a34:=(CLOSE > 0) AND a31;
- a35:=((HIGH - LOW) * 0.618) + LOW;
- a36:=((HIGH - LOW) * 0.382) + LOW;
- STICKLINE(a34,a32,a33,8,0),colorYellow;
- STICKLINE(a34,((HIGH + LOW) / 2),((HIGH + LOW) / 2),8,0);
- STICKLINE(a34,CLOSE,a35,8,0),colorRed;
- STICKLINE(a34,CLOSE,a35,7,0),Color1414FF;
- STICKLINE(a34,CLOSE,a35,6,0),Color2828FF;
- STICKLINE(a34,CLOSE,a35,5,0),Color3D3DFF;
- STICKLINE(a34,CLOSE,a35,4,0),Color5151FF;
- STICKLINE(a34,CLOSE,a35,3,0),Color6565FF;
- STICKLINE(a34,CLOSE,a35,2,0),Color7A7AFF;
- STICKLINE(a34,CLOSE,a35,1,0),Color8E8EFF;
- STICKLINE(a34,a36,OPEN,8,0),colorGreen;
- STICKLINE(a34,a36,OPEN,7,0),Color28FF28;
- STICKLINE(a34,a36,OPEN,6,0),Color3DFF3D;
- STICKLINE(a34,a36,OPEN,5,0),Color51FF51;
- STICKLINE(a34,a36,OPEN,4,0),Color65FF65;
- STICKLINE(a34,a36,OPEN,3,0),Color7AFF7A;
- STICKLINE(a34,a36,OPEN,2,0),Color8EFF8E;
- STICKLINE(a34,a36,OPEN,1,0),ColorA2FFA2;
- a37:=((CLOSE - (EMA(a1,25))) / (EMA(a1,25))) * 100;
- DRAWTEXT(((a37 > 12) AND (CROSS(决策线,CLOSE))),HIGH,'卖出');
- a38:=BIGORDER(1,2);
- a39:=BIGORDER(2,2);
- a40:=(((a38 - a39) * VOL) / CAPITAL) * 500;
- DRAWTEXT(((a40 > 0.5) OR (LAST((a40 > 0)) > 1)),((((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 1.002),'● '),colorYellow;
- DRAWTEXT((a40 > 1),((((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 1.002),'★'),ColorFF0087;
- DRAWTEXT((a40 > 2),((((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 1.002),'★'),colorBlack;
- DRAWTEXT((((((REF(a40,1)) >= (HHV(a40,20))) AND (a40 >= (LLV(a40,20)))) AND ((REF(a40,1)) > 2.5)) AND (a40 < -2.5)),(HIGH * 1.02),'◤反转'),colorGreen;
- DRAWTEXT(((((OPEN / a16) > 1.03) AND (CLOSE < OPEN)) AND (a40 < 0)),HIGH,'出货'),colorMagenta;
- a41:=LOW < a11;
- DRAWICON(a41,LOW,1);
- DRAWICON((((CROSS(CLOSE,(REF(a9,1)))) AND (a15 < -3)) OR (((LOW < 支撑线) AND (CLOSE > 支撑线)) AND (a15 < -3.5))),LOW,7),ALIGN1;
- DRAWICON(((CROSS((REF(a7,1)),CLOSE)) AND (a40 < 0)),(HIGH * 1.015),8),ALIGN1;
- DRAWTEXT(((CROSS(CLOSE,(REF(a9,1)))) AND (a40 > 0)),LOW,'1/3仓'),colorMagenta;
- DRAWTEXT(((CROSS((REF(a7,1)),CLOSE)) AND (a40 < 0)),(HIGH * 1.05),'1/3仓出'),Color00DB00;
- DRAWTEXT((CROSS(CLOSE,(REF(a10,1)))),(LOW * 0.96),'仓1/2'),colorYellow;
- DRAWTEXT((CROSS(CLOSE,(REF(((((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 0.681),1)))),(LOW * 0.98),'1/2仓'),Color005EFF;
- STICKLINE(((CLOSE > 0) AND (DISPSTATUS = 2)),((((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 1.15),((((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 1.15),20,0),colorWhite;
- STICKLINE(((CLOSE > 0) AND (DISPSTATUS = 2)),((((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 0.85),((((REF(a6,1)) + a6) + (REF(a6,2))) / 3 * 0.85),20,0);
- DRAWTEXT(a41,HIGH,'满仓出击');
- a42:=(CYC(8) - (REF(CYC(8),1))) / (REF(CYC(8),1));
- a43:=((SMA((MAX((CLOSE - a16),0)),5,1)) / (SMA(ABS((CLOSE - a16)),5,1))) * 100;
- DRAWTEXT(((((CROSS(90,a43)) AND (a40 < 0)) AND ((CLOSE / OPEN) <= 0.985)) OR (((a43 > 90) AND (a40 < 0)) AND ((CLOSE / OPEN) <= 0.985))),(HIGH * 1.04),'▼'),ALIGN1,colorGreen;
- DRAWTEXT(((((CROSS(a43,10)) AND (a40 > 0)) OR ((a43 < 10) AND (a40 > 0))) OR (((LOW < 支撑线) AND (CLOSE > 支撑线)) AND (a40 > 0))),(LOW * 0.97),'▲'),ALIGN1,colorRed;
- DRAWTEXT(((CROSS(a43,10)) AND (a15 < -4)),(LOW * 0.92),'◢◣'),ALIGN1,colorRed;
- DRAWTEXT((((a15 < -5) AND (a37 < -24)) AND (a43 < 12)),(LOW * 0.95),'▲'),ALIGN1,colorMagenta;
- DRAWTEXT(((((a15 < -3) AND (a40 > 0)) AND (LOW <= 地线)) AND (CLOSE > 地线)),(LOW * 0.94),'◆'),ALIGN1,colorYellow;
- DRAWTEXT(((CLOSE > 0) AND (DISPSTATUS = 2)),(决策线 * 0.9),'多空价:'+REF(a6,1)),MOVE10,ALIGN2,colorYellow;
- DRAWTEXT(((CLOSE > 0) AND (DISPSTATUS = 2)),(a7 * 1.05),'天线:'+a7),MOVE10,ALIGN2,ColorFF8748;
- DRAWTEXT(((CLOSE > 0) AND (DISPSTATUS = 2)),(a9 * 0.96),'地线:'+a9),MOVE10,ALIGN2,Color766A6C;
- DRAWTEXT(((CLOSE > 0) AND (DISPSTATUS = 2)),(决策线 * 0.95),'决策价:'+决策线),MOVE10,ALIGN2,colorRed;
- PARTLINE(支撑线,(MA(a1,10)) > (MA(a1,240)),RGB(255,0,255)),linethick2,colorMagenta;
- a44:=LOW > (REF(HIGH,1));
- a45:=HIGH < (REF(LOW,1));
- PARTLINE(地线,(MA(a1,10)) > (MA(a1,72)),RGB(255,255,0)),linethick1,colorYellow;
- DRAWTEXT(a44,((REF(HIGH,1)) * 1.003),'─'),ALIGN1,colorWhite;
- DRAWTEXT(a44,(LOW * 1.003),'─'),ALIGN1,colorWhite;
- DRAWTEXT(a45,((REF(LOW,1)) * 1.003),'─'),ALIGN1,colorGreen;
- DRAWTEXT(a45,(HIGH * 1.003),'─'),ALIGN1,colorGreen;
- DRAWTEXTREL(0,0,'评级:'+Extrastring('评级')),colorCyan;
- DRAWTEXTABS(1,15,'所属板块:'+BKNAME),ColorAFFF00;
- DRAWTEXTREL(0,130,'每股收益:'+NUMTOSTRN(FINANCE2(3),3)+'元'+' 市盈率:'+NUMTOSTRN(DYNAINFO(39),2)+'元'+' 市净率:'+NUMTOSTRN((CLOSE / FINANCE2(4)),2)+'元'+' 净资产:'+NUMTOSTRN(FINANCE2(4),2)+'元'),Color00C0FF;
- DRAWTEXTREL(10,900,'㊣十二星座*神獒赢富㊣'),linethick1,COLOR00EEff;
C/C++ Code复制内容到剪贴板
- {神獒霸气}
- {45度异动}
- x1:=(C+L+H)/3;
- bb13:=atan(ema(x1,13)-ref(ema(x1,13),1))*3.1416*10;
- ema8:=ema(c,8);
- DRAWTEXT(filter(bb13>1 and ema(x1,13)>ref(ema(x1,8),1),10),
- ema8,'∠45上升'),coloryellow;
- ah:hhvall(h); al:llvall(l);
- ahl:=ah-al;
- a23:al+ahl*0.236,COLORYELLOW,POINTDOT;
- a38:al+ahl*0.382,COLOREE00EE,POINTDOT;
- a50:al+ahl*0.50,COLORYELLOW,POINTDOT;
- a61:al+ahl*0.618,COLOREE00EE,POINTDOT;
- a76:al+ahl*0.764,COLORYELLOW,POINTDOT;
- {标注数字}y:=999;
- DRAWTEXTREL(500,0,'100% '+ah),COLOREE00EE;
- DRAWTEXTREL(500,y*0.236,'76.4% '+a76),COLORYELLOW;
- DRAWTEXTREL(500,y*0.382,'61.8% '+a61),COLOREE00EE;
- DRAWTEXTREL(500,y*0.50,'50% '+a50),COLORYELLOW;
- DRAWTEXTREL(500,y*0.618,'38.2% '+a38),COLOREE00EE;
- DRAWTEXTREL(500,y*0.764,'23.6% '+a23),COLORYELLOW;
- DRAWTEXTREL(500,y-30,'最低 '+al),COLOREE00EE;
- DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));
- varl13:=("macd.diff#WEEK"(26,12,9));
- varl14:=("macd.dea#WEEK"(26,12,9));
- VL:=REF(LOW,1); VH:=REF(H,1);
- Var1:=SMA(ABS(H-Vh),13,1)/SMA(MAX(H-Vh,0),13,1)*100;
- Var2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;
- Var3:=MA(Var1,13);
- Var4:=MA(Var2,13);
- Var5:=LLV(L,34);
- Var6:=HHV(H,34);
- Var7:=EMA(IF(H>=Var6,Var3,0),3);
- Var8:=EMA(IF(L<=Var5,Var4,0),3);
- var9:=(SMA(SMA((((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54))) * 100),7,1),5,1));
- var10:=((SMA(((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54)) * 100),7,1)) * 16.18) - (var9* 10.9);
- Var11:=FILTER(IF(var10<=var9 AND Var8>REF(Var8,1),Var8*8,0),55);
- Var21:=LLV(LOW,60);
- Var31:=HHV(HIGH,60);
- Var41:=EMA((CLOSE-Var21)/(Var31-Var21)*100,13);
- Var51:=EMA(0.667*REF(Var41,1)+0.333*Var41,21);
- varl2:=FILTER(CROSS(Var51,Var41) AND Var41>84,13);
- 持股线:MA(C,26),LINETHICK3,coloryellow;
- 趋势线:MA(CLOSE,13),linethick5,colorred;
- qjj:FILTER((CROSS(varl13,varl14) and varl14<0 and CROSS(c,持股线)),90),LINETHICK0;
- DRAWTEXTREL(10,900,'㊣十二星座*神獒赢富㊣'),linethick1,COLOR00EEff;
- DD:=FINANCE2(35);
- SS:=FINANCE2(37);
- GG:=FINANCE2(3);
- TH:=DYNAINFO(39);
- DRAWTEXTREL(10,720,'总股本:'+NUMTOSTRn(DD,0)+'万股' +' 流通A股:'+NUMTOSTRn(SS,0)+'万股'+'市盈率:'+NUMTOSTRn(TH,2)+' 倍'+' 每股收益:'+NUMTOSTRn(GG,3)+' 元'),ColorFFFF00;
- DRAWTEXT(var11,C*0.98,'㊣'),linethick4,ColorFFFF00;
- DRAWICON(qjj,C*1.09,1);
- DRAWTEXT(qjj,l*0.78,'霸占大牛股'),COLOR00FFFF;
- DRAWTEXT(varl2,C*1.04,'逃跑'),Colorgreen;
- 获利比例:=(WINNER(C)*1000)/10;
- 平均成本:=(COST(50)*100)/100;
- 穿透力:=(winner(C)-winner(ref(C,1)))/v*capital;
- 90%成本:=FLOOR(COST(50-90/2)*100)/100;
- ~:=CEILING(COST(50+90/2)*100)/100;
- 90集中度:=INTPART((~-90%成本)/(~+90%成本)*1000)/10;
- 70%成本:=FLOOR(COST(50-70/2)*100)/100;
- ~~:=CEILING(COST(50+70/2)*100)/100;
- 70集中度:=INTPART((~~-70%成本)/(~~+70%成本)*1000)/10;
- DRAWTEXTABS(0,12,' 获利比例:'+STR(获利比例)),COLOR44bbff;
- DRAWTEXTABS(0,24,' 平均成本:'+STR(平均成本)),COLOR44bbff;
- DRAWTEXTABS(0,36,' 穿透力:'+STR(穿透力)),COLOR44bbff;
- DRAWTEXTABS(0,48,'90%成本:'+STR(90%成本)+'-'+STR(~)),COLOR44bbff;
- DRAWTEXTABS(0,60,'90集中度:'+STR(90集中度)),COLOR44bbff;
- DRAWTEXTABS(0,72,'70%成本:'+STR(70%成本)+'-'+STR(~~)),COLOR44bbff;
- DRAWTEXTABS(0,84,'70集中度:'+STR(70集中度)),COLOR44bbff;
- gj:=if(c=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(v+0.01)/100);
- 明日阻力:=l+(gj-l)+(c-l);
- 明日支撑:=l+(c-gj);
- 今日阻力:=REF(明日阻力 , 1);
- 今日支撑:=REF(明日支撑 , 1);
- STICKLINE(DISPSTATUS=2 and c>=今日阻力,今日阻力,今日阻力,20,0),Color0000FF;
- STICKLINE(DISPSTATUS=2 and c<今日阻力,今日阻力,今日阻力,20,0),Color00FF00;
- STICKLINE(DISPSTATUS=2 and c>=今日支撑,今日支撑,今日支撑,20,0),ColorFF00FF;
- STICKLINE(DISPSTATUS=2 and c<今日支撑,今日支撑,今日支撑,20,0),ColorFF9900;
- DRAWTEXTREL(770,5,'今日支撑:'+NUMTOSTRN(今日支撑 ,2 )),Colorred;
- DRAWTEXTREL(630,5,'今日阻力:'+NUMTOSTRN(今日阻力 ,2 )),ColorGREEN;
- DRAWTEXTREL(1,800,'所属板块:'+BKNAME),ColorAFFF00;
- DRAWTEXTREL(1,850,'每股收益:'+NUMTOSTRN(FINANCE2(3),3)+'元'+' 市盈率:'+NUMTOSTRN(DYNAINFO(39),2)+'元'+' 市净率:'+NUMTOSTRN((CLOSE / FINANCE2(4)),2)+'元'+' 净资产:'+NUMTOSTRN(FINANCE2(4),2)+'元'),Color00C0FF;
上一篇:翔飞的数据统计指标--板块篇(二)
下一篇:先知先觉