通达信主力操盘主图源码分享

 {主力操盘主图}




GSPT1:=SUM((WINNER(C)*100),30)/30*0.1;
GSPT2:=SUM((WINNER(C)*100),20)/20*0.4;
GSPT3:=SUM((WINNER(C)*100),10)/10*0.3;
GSPT4:=SUM((WINNER(C)*100),5)/5*0.1;
GSPT5:=SUM((WINNER(C)*100),3)/3*0.1;
GSPTZ:=GSPT1+GSPT2+GSPT3+GSPT4+GSPT5;
赚钱效应:IF(GSPTZ>38,GSPTZ,GSPTZ*1.3),NODRAW;
活跃度:IF(SUMBARS(VOL,CAPITAL)<100,100-SUMBARS(VOL,CAPITAL),1),NODRAW;


Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0.02,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;
DRAWKLINE(H,O,L,C);
获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),NODRAW;


{趋势评分}
X01:=IF(MA(C,5)>MA(C,10),20,0);
X02:=IF(MA(C,20)>MA(C,60),10,0);
X3:=IF(KDJ.J>KDJ.K,10,0);
X4:=IF(MACD.DIF>MACD.DEA,10,0);
X5:=IF(MACD.MACD>0,10,0);
X6:=IF(V>MA(V,60),10,0);
X7:=IF(WINNER(C)>0.5,10,0);
X8:=IF(C/REF(C,1)>1.03,10,0);
XX:=X01+X02+X3+X4+X5+X6+X7+X8;
DRAWTEXT_FIX(V>O,0.02,0.99,0,STRCAT('趋势评分:',STRCAT(CON2STR(XX,0),' '))),COLORYELLOW;




{高30:REFDATE(HHV(H,30),DATE),DOTLINE,COLORLIBLUE;
低30:REFDATE(LLV(L,30),DATE),DOTLINE,COLORLIRED;}




均线25:=MA(CLOSE,25);


均线43:=MA(CLOSE,43);


均线50:=MA(CLOSE,50),COLOR0000FF;


均线88:=MA(CLOSE,88);


N8:=STRCAT(CON2STR(YEAR,0),'年');


Y8:=STRCAT(CON2STR(MONTH,0),'月');


R8:=STRCAT(CON2STR(DAY,0),'日');


K:=BARSLAST(CURRBARSCOUNT=120);


GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高点}


DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点}


KJ:=GD-DD;{高低点差值=分区高度}


GD4:=IF(CURRBARSCOUNT<=120/30,GD,DRAWNULL);


低:=IF(CURRBARSCOUNT<=120/30,DD,DRAWNULL),COLORFFFF00;


高:=IF(CURRBARSCOUNT<=120/30,GD,DRAWNULL),COLOR00FFFF;


支撑:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;


强势:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.382,DRAWNULL),COLORFF00FF;


突破:=IF(CURRBARSCOUNT<=120/30,DD+KJ/2,DRAWNULL),COLOR0000FF;


警示:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.618,DRAWNULL),COLORCYAN;


压力:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.809,DRAWNULL),COLORGREEN;


低涨:=IF(CURRBARSCOUNT<=120/30,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;


天数:=BARSLAST(L=DD),COLORCYAN,NODRAW;


今日保护价:=(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299,NODRAW;


顶点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORLIBLUE,DOTLINE;


低点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORLIRED,DOTLINE;


STICKLINE(CCI>=200 AND H>=顶点,O,C,2,0),COLORLIGRAY;


STICKLINE(CCI<=100 AND L<=低点,O,C,2,0),COLORRED;


{STICKLINE(CURRBARSCOUNT=120/30,GD,DD,0,0),COLORLIGRAY;


STICKLINE(CURRBARSCOUNT=1,GD,DD,0,0),COLORLIGRAY;}


{STICKLINE(CURRBARSCOUNT<=120/30,支撑,支撑,4,0),COLOR00FFFF;


STICKLINE(CURRBARSCOUNT<=120/30,强势,强势,4,0),COLORFF00FF;


STICKLINE(CURRBARSCOUNT<=120/30,突破,突破,4,0),COLOR0000FF;


STICKLINE(CURRBARSCOUNT<=120/30,警示,警示,4,0),COLORCYAN;


STICKLINE(CURRBARSCOUNT<=120/30,压力,压力,4,0),COLORGREEN;}




DRAWTEXT(CURRBARSCOUNT=4,压力,CON2STR(压力,2)),COLORGREEN;


DRAWTEXT(CURRBARSCOUNT=4,警示,CON2STR(警示,2)),COLORCYAN;


DRAWTEXT(CURRBARSCOUNT=4,突破,CON2STR(突破,2)),COLOR0000FF;


DRAWTEXT(CURRBARSCOUNT=4,强势,CON2STR(强势,2)),COLORFF00FF;


DRAWTEXT(CURRBARSCOUNT=4,支撑,CON2STR(支撑,2)),COLOR00FFFF;




紫色倍量:=V/REF(V,1)>=2 AND C>O;
STICKLINE(紫色倍量,C,O,2.5,0),COLORMAGENTA;
{DRAWTEXT(紫色倍量,L*0.98,'上车'),COLORYELLOW;};


MA5:MA(C,5)LINETHICK2,COLOR00CCFF;
五日乖离率:=(C-MA5)/MA5*100;
BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;
IF(BB5>30 AND MA5>REF(MA5,1),MA5,DRAWNULL),LINETHICK2,COLORRED;
IF(BB5<0 AND MA5<REF(MA5,1),MA5,DRAWNULL),LINETHICK2,COLORGREEN;


A:=EMA(CLOSE,26)+ABS(EMA(CLOSE,26)-REF(EMA(CLOSE,26),1));
B:=EMA(CLOSE,26)+EMA(CLOSE,26)-REF(EMA(CLOSE,26),1);
操盘线:IF(EMA(CLOSE,26)<B,B,EMA(CLOSE,26)),COLORRED,LINETHICK2;
防守线:=操盘线-(EMA(C,6)-操盘线),COLORLIGRAY,LINETHICK1;
攻击线:=EMA(C,6),COLORYELLOW,LINETHICK1;
IF(操盘线<REF(操盘线,1),操盘线,DRAWNULL),COLORLIGREEN,LINETHICK2;
IF(攻击线>防守线,操盘线,DRAWNULL),COLORLIRED,LINETHICK2;
{DRAWICON(CROSS(操盘线,防守线),操盘线*0.99,1);
DRAWICON(CROSS(防守线,操盘线),操盘线*1.01,2);}


{买进黄K}
TTS1:=SMA(C,6.5,1);


TTS2:=SMA(C,14.5,1);


TTS11:=SMA(C,3,1);


TTS21:=SMA(C,8,1);


TTS12:=SMA(C,3.5,1);


A7:=(2*C+H+L)/4;


CAOZ:=MA(A7,5),COLORBLUE,LINETHICK2;


CAOZ1:=MA(A7,5)*1.03,LINETHICK2;


CAOZ2:=MA(A7,5)*0.97,LINETHICK2;


M1:=1000*CAOZ/TTS2<=1015 AND 1000*CAOZ/TTS2>=975;


M2:=1000*TTS21/TTS2<=1020 AND TTS21/TTS2>=980;


M3:=1000*TTS1/TTS2<=1015 AND TTS1/TTS2>=985;


买1:=DRAWTEXT( CROSS(TTS11,TTS1) AND TTS11>CAOZ,LOW,'买进' ),COLORYELLOW;


买2:=DRAWTEXT( CROSS(TTS11,CAOZ) AND M1 AND M2 AND M3,LOW,'买进' ),COLORYELLOW;
买点:=买1 OR 买2;
STICKLINE(买点,C,O,2,0),COLORYELLOW;




P:=21;
擒股指标1:=IF(L=LLV(L,P),L,DRAWNULL);
擒股指标2:=CONST(BARSLAST(擒股指标1!=DRAWNULL));
擒股指标3:=CONST(IF(擒股指标2=0,H,REF(H,擒股指标2)));
擒股指标4:=CONST(REF(BARSLAST(H>擒股指标3),擒股指标2+1)+擒股指标2+1);
擒股指标5:=CONST(IF(擒股指标4=0,H,REF(H,擒股指标4)));
擒股指标6:=CONST(REF(BARSLAST(H>擒股指标5),擒股指标4+1)+擒股指标4+1);
进场:IF(CURRBARSCOUNT<=擒股指标2+21,CONST(IF(擒股指标6=0,H,REF(H,擒股指标6))),DRAWNULL),DOTLINE,COLORYELLOW;
IF(CURRBARSCOUNT<=擒股指标2+1,IF(L=LLV(L,P),L,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORYELLOW;






H1:=REF(C,9)=HHV(C,2*9+1);
H2:=FILTER(H1,9);
H3:=BACKSET(H2,9+1);
H4:=FILTER(H3,9);


小压:=REF(C*0.999,BARSLAST(H4)),COLORWHITE,NODRAW;


H5:=ABS(REF(小压,1)-小压)>小压*0.075 AND H4;


小压2:REF(C*0.999,BARSLAST(H5)),COLORLIGREEN,NODRAW,DOTLINE;


STICKLINE(C*0.999,小压2,小压2,1,1), COLORLIGREEN;




{洗盘}
XP1:=V=HHV(V,60) AND C<O;
XP2:=V<REF(V,1) AND H/C>1.04 AND C<O AND EXIST(H>HHV(L,60),5);
STICKLINE(XP2,O,C,2,0), COLORGREEN;


{九转}
{AH:=HHV(H,60);
AL:=LLV(L,60);
A0:=(AH-AL)/21;
A01:=C>REF(C,4);
NT:=BARSLASTCOUNT(A01);
TJ11:=NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;
DRAWTEXT(AY>0,H+1.1*A0,VAR2STR(AY,0)),COLORYELLOW;
DRAWTEXT(NT=9,H+1.1*A0,'9'),COLORGREEN;
DRAWTEXT(NT=13,H+1.1*A0,'13'),COLORGREEN;
DRAWTEXT(NT=18,H+1.1*A0,'18'),COLORGREEN;
B01:=C<REF(C,4);
NT0:=BARSLASTCOUNT(B01);
TJ21:=NT0=9 ;
TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;
DRAWTEXT(AY1>0,L-1*A0,VAR2STR(AY1,0)),COLORLIGREEN;
DRAWTEXT(NT0=9,H+1.1*A0,'9'),COLORYELLOW;
DRAWTEXT(NT0=13,H+1.1*A0,'13'),COLORYELLOW;
DRAWTEXT(NT0=18,H+1.1*A0,'18'),COLORYELLOW;}


{止损价}
YC:=REF(CLOSE,1);
止损:=(YC*1.0035*97+0.2)/99.65;
DRAWTEXT_FIX(C!=0,0.4,0.02,0,STRCAT('止损: ',STRCAT(CON2STR(止损,2),' 元'))),COLORLIGRAY;


{起爆}
火箭起爆点:=(DCLOSE-REF(C,1))/REF(C,1)*100;
XG9:=CROSS(火箭起爆点,20) OR CROSS(火箭起爆点,18);
STICKLINE(XG9,C,O,1,0),COLORFF0066;


{庄家成本}
AL0:=SUMBARS(V,CAPITAL*1);
AL1:=SUM(COST(10),AL0)/AL0;
AL2:=SUM(COST(20),AL0)/AL0;
AL3:=SUM(COST(30),AL0)/AL0;
AL4:=SUM(COST(40),AL0)/AL0;
AL5:=SUM(COST(50),AL0)/AL0;
庄家成本1:=(5*AL1+4*AL2+3*AL3+2*AL4+AL5)/15,COLOR0080FF,DOTLINE;
庄家成本:REFDATE(庄家成本1,DATE),COLORWHITE,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=30,庄家成本,STRCAT('庄本:',CON2STR(庄家成本,2))),COLORWHITE;


{前峰}
LT:=LLVBARS(L,60);
LT1:=LLVBARS(L,60);
LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);
HT:=FINDHIGHBARS(H,LT+1,60,1);
DT:=FINDLOW(L,LT1+1,60,1);
前峰:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLORLIGREEN ,LINETHICK1;


{涨跌停变色}
X_2:=REF(CLOSE,1);
X_3:=REF(CLOSE,1)*1.097;
X_4:=CLOSE>=X_3 AND CLOSE=HIGH;
STICKLINE(X_4,CLOSE-(CLOSE-OPEN)/3,CLOSE,2,0),COLORRED;
X_5:=IF(DTPRICE(REF(CLOSE,1),0.1)=CLOSE,2,0);
STICKLINE((C-REF(C,1))/REF(C,1)<=-0.0985,CLOSE+(OPEN-CLOSE)/3,CLOSE,2,0),COLORBLUE;


{庄家入场}
GUA6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUA7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUA8:=GUA6<REF(GUA7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(GUA8 AND COUNT(GUA8,30)=1,C-(C-O)/3,C,2,0),COLORYELLOW;
STICKLINE(GUA8 AND COUNT(GUA8,30)=1,C-(C-O)/3,C,0.1,0),COLORBLUE;
DRAWTEXT(GUA8 AND COUNT(GUA8,30)=1,L*0.99,'庄'),COLORWHITE;




{大单异动}
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
XG8:=(FILTER((VAR4AA>90),45)),COLORYELLOW;
STICKLINE(XG8,C-(C-O)/3,C,2,0),COLORYELLOW;
STICKLINE(XG8,C-(C-O)/3,C,0.1,0),COLORMAGENTA;
DRAWTEXT(XG8,H*1.01,'异'),COLORYELLOW;


均价线:=AMOUNT/V/100;
C2:=REF(C,1);
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
支撑线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;


震仓线:=45;
震仓线2:=50;
逃命线:=80;
抄底线:=20;
绝底线:=5;
PP2:=操作线<震仓线2  AND REF(操作线,1)>震仓线2 ;
PP:=操作线<震仓线  AND REF(操作线,1)>震仓线 ;
PP3:=操作线<抄底线  AND REF(操作线,1)>抄底线;
HH:=COUNT(涨停,14)>=1;
A8:=SMA(L,4,3) ;
STICKLINE(A8 AND REF(PP,1) AND HH ,L*0.9999,L*0.9989,5,0),COLORLIRED;
{DRAWICON(A8 AND REF(PP,1) AND HH,L*0.98,1);}
STICKLINE(A8 AND REF(PP3,1) AND HH ,L*0.9999,L*0.9989,5,0),COLORYELLOW;
{DRAWICON(A8 AND REF(PP3,1) AND HH,L*0.98,1); }
HD:=COUNT(涨停,14)>=1;
A1:=SMA(H,4,3);
STICKLINE(A1 AND HD ,H,H*1.001,0.5,0),COLORWHITE;


{抄底}
N:=9;
M11:=3;
M12:=3;
试试:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K0:=SMA(试试,5,1);
D0:=SMA(K0,M11,1);
J0:=3*K0-2*D0;
VARB2:=(试试/2+22)*1;
V13:=EMA(VOL,13);
XXDDD1:=EMA(AMOUNT,13);
XXDDD2:=((XXDDD1 /V13) / 100);
XXDDD3:=(((CLOSE -XXDDD2) / XXDDD2) * 100);
XXDDD4:=((XXDDD3 < (0)) AND ZXNH),COLORRED;
XXDDD5:=XXDDD4 AND 试试<VARB2-2;


DRAWTEXT(XXDDD5,L*0.99,'▲'),COLORYELLOW;


{抄底}
{VARF:=TROUGHBARS(3,15,1)<4;
CD:=STICKLINE(FILTER(VARF=1,5),3,0,0.1,0),COLORYELLOW;
DRAWTEXT(CD,L*0.99,'◆'),COLORYELLOW;}


底:DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),H,''),LINETHICK2,COLORYELLOW;
DRAWICON(底,L*0.999,36);
顶:DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),H,''),LINETHICK2,COLORYELLOW;
DRAWICON(顶,H*1.01,37);


{快逃绿箭头}
VAR30:=PEAKBARS(3,15,1)<10;
VAR50:=IF(VAR30=1,2,0);
顶1:= IF(VAR50=2,2,0);
顶A:=IF(顶1>REF(顶1,1),3,0),COLORGREEN;
DRAWICON(顶A=2,H*1.02,2);


{买点红箭头}
AR1:=EMA(OPEN,7);
AR2:=EMA(AR1,21);
AR3:=CROSS(AR1,AR2);
AR5:=EMA(SMA((CLOSE-LLV(LOW,20))/(HHV(HIGH,16)-LLV(LOW,20))*100,8,1),3);
短买:=IF(TROUGHBARS(1,6,1)=0 AND HIGH>LOW+0,3,0),COLORRED;
DRAWICON(短买=2,L*0.98,1);


成妖趋势:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK1,COLORRED,DOTLINE;
STICKLINE(成妖趋势>LOW AND 成妖趋势<HIGH,成妖趋势,MIN(MIN(OPEN,CLOSE),成妖趋势),0.5,0),COLOR0099FF;
STICKLINE(成妖趋势>MIN(C,O) AND 成妖趋势<MAX(C,O),成妖趋势,MIN(OPEN,CLOSE),0.5,0),COLOR0099FF;
STICKLINE(成妖趋势>HIGH,OPEN,CLOSE,0.5,0),COLOR0099FF;
STICKLINE(成妖趋势>HIGH,HIGH,LOW,0,0),COLOR0099FF;


{仙人指}
V1:=CLOSE/REF(CLOSE,3)>=1.1;
V2:=BACKSET(V1,2);
仙人指:=V2 AND COUNT(V2,2)=1;
DRAWICON(仙人指,L*0.99,11);


{游资接力}
HJXX_1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
HJXX_2:=EMA(HIGH,30)*1.15;
HJXX_3:=EMA(HIGH,3)*1.03;
游资接力:=CROSS(CLOSE,HJXX_3) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1) > 0.04 ;
DRAWTEXT(游资接力,L*0.99,'▲'),COLORWHITE;
DRAWTEXT(游资接力,L*0.98,'▲'),COLORRED;


{起爆点}
AVAR2:=REF(LOW,1);
AVAR3:=SMA(ABS(LOW-AVAR2),13,1)/SMA(MAX(LOW-AVAR2,0),13,1)*100;
AVAR4:=EMA(IF(CLOSE*1.2,AVAR3*13,AVAR3/13),13);
AVAR5:=LLV(LOW,34);
AVAR6:=HHV(AVAR4,34);
AVAR7:=IF(LLV(LOW,56),1,0);
AVAR8:=EMA(IF(LOW<=AVAR5,(AVAR4+AVAR6*2)/2,0),3)/618*AVAR7;
AA:=AVAR8>REF(AVAR8,1);
RR1:=MA(CLOSE,27);
RR2:=(CLOSE-RR1)/RR1*100;
RRA:=MA(RR2,2);
RRB:=BARSLAST(CROSS(-1,RRA)=1);
RRD:=RRA<-10 AND RRB>3;
建仓区1:=STICKLINE(IF(RRD,-12,0),-7,0,3,0),COLORGRAY;
起爆点:=IF(RRD,-7,0),COLOR00FF66,COLORLIBLUE,DOTLINE;
DR:=100;
ZRQ:=3;
DJ1:=REF(LLV(L,100),3); ZD1:=REFDATE(DJ1,DATE);
XG0:=L=ZD1;
XG0A:=AA AND XG0,COLORRED,LINETHICK1; XG01:=XG0A>REF(XG0A,1);
牛股起爆点:=XG01>REF(XG01,1)COLORRED,LINETHICK1;
DJ:=REF(LLV(L,100),3);
ZD:=REFDATE(DJ,DATE);
XG09:=L=ZD;
XGA:=AA AND XG09;
XG1:=XGA>REF(XGA,1);
底部9:=XG1>REF(XG1,1);
DRAWICON(底部9,L*0.98,9);




JRH:=HHV(C,2);
JRL:=LLV(C,2);
MA3:=MA(CLOSE,3);
YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));
VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARF1:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR10:=(REF(VARF1,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR19:=((REF(VARD OR VARE OR VARF1 OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);
VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);
红色持股:=VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;
机构离场:=IF(红色持股,JRL,DRAWNULL);
明离场价:=机构离场,COLORFF99FF,NODRAW;
今离场价:=REF(机构离场,1)COLOR0000FF,NODRAW;
青色观望:=VARD OR VARE OR VARF1 OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW;
进:=IF(青色观望,JRH,DRAWNULL);
明进场价:=进,COLOR33AACC,NODRAW;
今进场价:=REF(明进场价,1),COLORFF0000,NODRAW;


STICKLINE(ISLASTBAR AND (红色持股 OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;
STICKLINE(ISLASTBAR AND (青色观望 OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;


机构短买:=VAR19,COLOR33AACC,NODRAW;
品红离场:=VAR1A,COLORFF99FF,NODRAW;
CO:=(C-O);
STICKLINE(机构短买,O,O+CO/3,2,0),COLORLIMAGENTA;


STICKLINE(品红离场,O,O+CO/3,2,0),COLORLIGREEN;


{上下轨}
N11:=2,200,13;
UR00:=2,200,6;
LR0:=2,200,6;
TC01:=IF(H=HHV(H,8*UR00),H,DRAWNULL);
TC02:=CONST(BARSLAST(TC01=H))+1;
UPPER:=CONST(IF(TC02=1,H,REF(H,TC02-1)));
BC1:=IF(L=LLV(L,8*LR0),L,DRAWNULL);
BC2:=CONST(BARSLAST(BC1=L))+1;
LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));
LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;
HP:=CURRBARSCOUNT<=TC02 AND H=UPPER;
NOD:=(IF(TC02>BC2,TC02,BC2)-IF(TC02>BC2,BC2,TC02));
LR1:=FORCAST(C,NOD+1);
NP:=IF(CURRBARSCOUNT<=MAX(BC2,TC02),CONST(IF(MIN(TC02,BC2)=1,LR1,REF(LR1,MIN(TC02,BC2)-1))),DRAWNULL),DOTLINE,COLORLIBLUE;
LR2:=SLOPE(C,NOD+1);
LR3:=CONST(IF(MIN(TC02,BC2)=1,LR2,REF(LR2,MIN(TC02,BC2)-1)));
{STICKLINE(IF(BC2>TC02,HP,LP),LOWER,UPPER,0,0),COLORGRAY;
STICKLINE(IF(BC2>TC02,LP,HP),LOWER,UPPER,0,0),COLORGRAY;}
FP:=NP-LR3*(NOD),DOTLINE,COLORLIRED;
EQU:=(NP+FP)/2,DOTLINE,COLORWHITE;
AD:=ABS(NP-FP);
DBL0:=BARSLAST(BC1!=DRAWNULL)+1;
DBH:=BARSLAST(TC01!=DRAWNULL)+1;
BSP:=IF(BC2>TC02,DBL0,DBH)-1;
LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);
AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND H>LRL,H,LRL);
AT2:=HHV(AT1-LRL,MAX(BC2,TC02));
AT3:=CONST(BARSLAST(AT1-LRL=AT2));
AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));
AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));
ATL:=LRL+AT5;
UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND L<LRL,L,LRL);
UT2:=HHV(LRL-UT1,MAX(BC2,TC02));
UT3:=CONST(BARSLAST(LRL-UT1=UT2));
UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));
UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));
UTL:=LRL-UT5;
RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC02)-10,ATL,CONST(REF(ATL,MIN(BC2,TC02)-11)));
RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC02)-10,UTL,CONST(REF(UTL,MIN(BC2,TC02)-11)));
中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLORBBBBBB;
上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORBLUE;
下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLORFF00FF;


SJ1:=(REF(HIGH,3) = HHV(HIGH,((2 * 3) + 1)));
SJ2:=FILTER(SJ1,3);
SJ3:=BACKSET(SJ2,(3 + 1));
SJ4:=FILTER(SJ3,3);
SJ5:=(REF(LOW,3) = LLV(LOW,((2 * 3) + 1)));
SJ6:=FILTER(SJ5,3);
SJ7:=BACKSET(SJ6,(3 + 1));
SJ8:=FILTER(SJ7,3);
SJ9:=((REF(LLV(LOW,(2 * 3)),1) + REF(HHV(HIGH,(2 * 3)),1)) / 2);
SJ10:=((HIGH + LOW) / 2);
SJ11:=(((SJ4 AND NOT((SJ8 AND (SJ9 >= SJ10)))) OR BARSTATUS) OR (BARSCOUNT(CLOSE) = 1));
SJ12:=(SJ8 AND NOT((SJ4 AND (SJ9 < SJ10))));
SJ13:=(SJ4 AND NOT((SJ8 AND (SJ9 >= SJ10))));
SJ14:=(REF(BARSLAST(SJ11),1) + 1);
SJ15:=BACKSET((SJ11 AND (COUNT(SJ12,SJ14) > 0)),LLVBARS(IF(SJ12,LOW,10000),SJ14));
SJ16:=(SJ15 > REF(SJ15,1));
SJ17:=BACKSET(SJ16,2);
SJ18:=(SJ17 > REF(SJ17,1));
SJ19:=((SJ18 OR BARSTATUS) OR (BARSCOUNT(CLOSE) = 1));
SJ20:=(REF(BARSLAST(SJ19),1) + 1);
SJ21:=BACKSET((SJ19 AND (COUNT(SJ13,SJ20) > 0)),HHVBARS(IF(SJ13,HIGH,0),SJ20));
SJ22:=(SJ21 > REF(SJ21,1));
SJ23:=BACKSET(SJ22,2);
SJ24:=(SJ23 > REF(SJ23,1));
SJ25:=BACKSET(BARSTATUS,(BARSLAST(SJ18) + 1));
SJ26:=(SJ25 > REF(SJ25,1));
SJ27:=BACKSET(BARSTATUS,(BARSLAST(SJ24) + 1));
SJ28:=(SJ27 > REF(SJ27,1));
底0:REF(LOW,BARSLAST(SJ26)),COLORLIGRAY;
顶0:REF(HIGH,BARSLAST(SJ28)),COLORLIGRAY;
STICKLINE(SJ26,顶0,底0,0,0),COLORLIGRAY,LINETHICK1;
DRAWLINE(SJ28,HIGH,SJ26,顶0,1),COLORLIGRAY,LINETHICK1;
STICKLINE(SJ28,顶0,底0,0,0),COLORLIGRAY,LINETHICK1;
DRAWLINE(SJ26,LOW,SJ28,底0,1),COLORLIGRAY,LINETHICK1;






未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:PEAK
该公式包含未来函数:PEAKBARS
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
该公式包含未来函数:BACKSET
该公式包含未来函数:WINNER
该公式包含未来函数:COST
该公式包含未来函数:CAPITAL
该公式包含未来函数:XMA
该公式包含未来函数:DHIGH
该公式包含未来函数:DLOW
该公式包含未来函数:DCLOSE

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

 {主力操盘主图}GSPT1赋值:SUM((C计算的获利盘比例*100),30)/30*0.1
GSPT2赋值:SUM((C计算的获利盘比例*100),20)/20*0.4
GSPT3赋值:SUM((C计算的获利盘比例*100),10)/10*0.3
GSPT4赋值:SUM((C计算的获利盘比例*100),5)/5*0.1
GSPT5赋值:SUM((C计算的获利盘比例*100),3)/3*0.1
GSPTZ赋值:GSPT1+GSPT2+GSPT3+GSPT4+GSPT5
如果GSPTZ>38返回GSPTZ否则返回GSPTZ*1.3
输出活跃度:IF(成交量累加至CAPITAL的天数<100,100-成交量累加至CAPITAL的天数,1),NODRAW
Z1赋值:STRCAT(HYBLOCK,' ')
Z2赋值:STRCAT(Z1,DYBLOCK)
Z3赋值:STRCAT(Z2,' ')
DRAWTEXT_FIX(ISLASTBAR,0,0.02,0,STRCAT(Z3,GNBLOCK)),COLORYEL最低价
DRAWKLINE(H,O,L,C)
输出获利筹码:IF(收盘价计算的获利盘比例,收盘价计算的获利盘比例*100,0),NODRAW
{趋势评分}X01赋值:IF(C的5日简单移动平均>C的10日简单移动平均,20,0)
X02赋值:IF(C的20日简单移动平均>C的60日简单移动平均,10,0)
如果KDJ.J>KDJ.K返回10否则返回0
如果MACD.D>MACD.DEA返回10否则返回0
如果MACD.MACD>0返回10否则返回0
X6赋值:IF(V>V的60日简单移动平均,10,0)
X7赋值:IF(C计算的获利盘比例>0.5,10,0)
X8赋值:IF(C/1日前的C>1.03,10,0)
XX赋值:X01+X02+X3+X4+X5+X6+X7+X8
输出DRAWTEXT_FIX(V>O,0.02,0.99,0,STRCAT('趋势评分:',STRCAT(CON2STR(XX,0),' '))),COLORYEL最低价
输出{高30:DATE30日内H最高值日,DOTLINE,COLORLIBLUE
输出低30:DATE30日内L最低值日,DOTLINE,COLORLIRED
}均线25赋值:收盘价的25日简单移动平均
均线43赋值:收盘价的43日简单移动平均
均线50赋值:收盘价的50日简单移动平均,COLOR0000FF
均线88赋值:收盘价的88日简单移动平均
N8赋值:STRCAT(CON2STR(YEAR,0),'年')
Y8赋值:STRCAT(CON2STR(MONTH,0),'月')
R8赋值:STRCAT(CON2STR(DAY,0),'日')
K赋值:上次CURRBARSCOUNT=120距今天数
GD赋值:CONST(IF(ISLASTBAR=1,K日内H最高值,0))
{高点}DD赋值:CONST(IF(ISLASTBAR=1,K日内L最低值,0))
{低点}KJ:=GD-DD
如果CURRBARSCOUNT<=120/30返回GD否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回DD否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回GD否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回DD+KJ*0.191否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回DD+KJ*0.382否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回DD+KJ/2否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回DD+KJ*0.618否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回DD+KJ*0.809否则返回DRAWNULL
低涨:=IF(CURRBARSCOUNT<=120/30,(C/K日内最低价最低值-1)*100,DRAWNULL),COLOR0000FF,NODRAW
天数赋值:上次L=DD距今天数,COLORCYAN,NODRAW
今日保护价赋值:(2日前的C+1日前的C+O)/3 ,COLORCC3299,NODRAW
输出顶点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, 上次CURRBARSCOUNT=60距今天数),1)),DRAWNULL),COLORLIBLUE,DOTLINE
低点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, 上次CURRBARSCOUNT=60距今天数),1)),DRAWNULL),COLORLIRED,DOTLINE
当满足条件CCI>=200 AND H>=顶点时,在O和C之间画柱状线
当满足条件CCI<=100 AND L<=低点时,在O和C之间画柱状线
当满足条件CURRBARSCOUNT=120/30时,在GD和DD之间画柱状线
当满足条件CURRBARSCOUNT=1时,在GD和DD之间画柱状线
当满足条件CURRBARSCOUNT<=120/30时,在支撑和支撑之间画柱状线
当满足条件CURRBARSCOUNT<=120/30时,在强势和强势之间画柱状线
当满足条件CURRBARSCOUNT<=120/30时,在突破和突破之间画柱状线
当满足条件CURRBARSCOUNT<=120/30时,在警示和警示之间画柱状线
当满足条件CURRBARSCOUNT<=120/30时,在压力和压力之间画柱状线
}DRAWTEXT(CURRBARSCOUNT=4,压力,CON2STR(压力,2)),COLORGREEN
DRAWTEXT(CURRBARSCOUNT=4,警示,CON2STR(警示,2)),COLORCYAN
DRAWTEXT(CURRBARSCOUNT=4,突破,CON2STR(突破,2)),COLOR0000FF
DRAWTEXT(CURRBARSCOUNT=4,强势,CON2STR(强势,2)),COLORFF00FF
DRAWTEXT(CURRBARSCOUNT=4,支撑,CON2STR(支撑,2)),COLOR00FFFF
紫色倍量赋值:V/1日前的V>=2 AND C>O
当满足条件紫色倍量时,在C和O之间画柱状线
当满足条件紫色倍量时,在L*0.98和'上车'位置书写文字
}
输出MA5:C的5日简单移动平均LINETHICK2,COLOR00CCFF
五日乖离率赋值:(C-MA5)/MA5*100
BB5赋值:ATAN((MA5/1日前的MA5-1)*100)*180/3.1416
速度5赋值:SMA(EMA((MA5-1日前的MA5)/1日前的MA5,3)*100,3,1)
加速度5赋值:EMA((速度5-1日前的速度5),3),NODRAW
IF(BB5>30 AND MA5>1日前的MA5,MA5,DRAWNULL),LINETHICK2,COLORRED
IF(BB5<0 AND MA5<1日前的MA5,MA5,DRAWNULL),LINETHICK2,COLORGREEN
A赋值:收盘价的26日指数移动平均+收盘价的26日指数移动平均-1日前的收盘价的26日指数移动平均的绝对值
B赋值:收盘价的26日指数移动平均+收盘价的26日指数移动平均-1日前的收盘价的26日指数移动平均
输出操盘线:IF(收盘价的26日指数移动平均防守线赋值:操盘线-(C的6日指数移动平均-操盘线),COLORLIGRAY,LINETHICK1
攻击线赋值:C的6日指数移动平均,COLORYEL最低价,LINETHICK1
IF(操盘线<1日前的操盘线,操盘线,DRAWNULL),COLORLIGREEN,LINETHICK2
如果攻击线>防守线返回操盘线否则返回DRAWNULL
{DRAWICON(操盘线上穿防守线,操盘线*0.99,1)
DRAWICON(防守线上穿操盘线,操盘线*1.01,2)
C的6.5日[1日权重]移动平均
C的14.5日[1日权重]移动平均
C的3日[1日权重]移动平均
C的8日[1日权重]移动平均
C的3.5日[1日权重]移动平均
A7:=(2*C+H+L)/4
CAOZ:=A7的5日简单移动平均,COLORBLUE,LINETHICK2
CAOZ1赋值:A7的5日简单移动平均*1.03,LINETHICK2
CAOZ2赋值:A7的5日简单移动平均*0.97,LINETHICK2
M1赋值:1000*CAOZ/TTS2<=1015 AND 1000*CAOZ/TTS2>=975
M2赋值:1000*TTS21/TTS2<=1020 AND TTS21/TTS2>=980
M3赋值:1000*TTS1/TTS2<=1015 AND TTS1/TTS2>=985
买1赋值:DRAWTEXT( TTS11上穿TTS1 AND TTS11>CAOZ,最低价,'买进' ),COLORYEL最低价
买2赋值:DRAWTEXT( TTS11上穿CAOZ AND M1 AND M2 AND M3,最低价,'买进' ),COLORYEL最低价
买点赋值:买1 OR 买2
当满足条件买点时,在C和O之间画柱状线
P赋值:21
擒股指标1赋值:IF(L=P日内L最低值,L,DRAWNULL)
擒股指标2赋值:CONST(上次擒股指标1!=DRAWNULL距今天数)
擒股指标3赋值:CONST(IF(擒股指标2=0,H,擒股指标2日前的H))
擒股指标4赋值:CONST(REF(上次H>擒股指标3距今天数,擒股指标2+1)+擒股指标2+1)
擒股指标5赋值:CONST(IF(擒股指标4=0,H,擒股指标4日前的H))
擒股指标6赋值:CONST(REF(上次H>擒股指标5距今天数,擒股指标4+1)+擒股指标4+1)
输出进场:IF(CURRBARSCOUNT<=擒股指标2+21,CONST(IF(擒股指标6=0,H,擒股指标6日前的H)),DRAWNULL),DOTLINE,COLORYEL最低价
IF(CURRBARSCOUNT<=擒股指标2+1,IF(L=P日内L最低值,L,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORYEL最低价
H1赋值:9日前的C=2*9+1日内C最高值
H2赋值:H1的9过滤
H3赋值:BACKSET(H2,9+1)
H4赋值:H3的9过滤
小压赋值:REF(C*0.999,上次H4距今天数),COLORWHITE,NODRAW
H5赋值:1日前的小压-小压的绝对值>小压*0.075 AND H4
小压2:REF(C*0.999,上次H5距今天数),COLORLIGREEN,NODRAW,DOTLINE
当满足条件C*0.999时,在小压2和小压2之间画柱状线
{洗盘}XP1:=V=60日内V最高值 AND CXP2:=V<1日前的V AND H/C>1.04 AND C60日内L最高值,5)
当满足条件XP2时,在O和C之间画柱状线
{九转}{AH:=60日内H最高值
AL:=60日内L最低值
A0:=(AH-AL)/21
A01:=C>4日前的C
NT赋值:BARSLASTCOUNT(A01)
TJ11赋值:NT=9
TJ13赋值:ISLASTBAR AND BETWEEN(NT,5,8)
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT
DRAWTEXT(AY>0,H+1.1*A0,VAR2STR(AY,0)),COLORYEL最低价
当满足条件NT=9时,在H+1.1*A0和'9'位置书写文字
当满足条件NT=13时,在H+1.1*A0和'13'位置书写文字
当满足条件NT=18时,在H+1.1*A0和'18'位置书写文字
B01:=C<4日前的C
NT0:=BARSLASTCOUNT(B01)
TJ21赋值:NT0=9
TJ23赋值:ISLASTBAR AND BETWEEN(NT0,5,8)
AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0
DRAWTEXT(AY1>0,L-1*A0,VAR2STR(AY1,0)),COLORLIGREEN
当满足条件NT0=9时,在H+1.1*A0和'9'位置书写文字
当满足条件NT0=13时,在H+1.1*A0和'13'位置书写文字
当满足条件NT0=18时,在H+1.1*A0和'18'位置书写文字
}{止损价}YC赋值:1日前的收盘价
止损赋值:(YC*1.0035*97+0.2)/99.65
DRAWTEXT_FIX(C!=0,0.4,0.02,0,STRCAT('输出止损: ',STRCAT(CON2STR(止损,2),' 元'))),COLORLIGRAY
{起爆}火箭起爆点赋值:(D收盘价-1日前的C)/1日前的C*100
XG9赋值:火箭起爆点上穿20 OR 火箭起爆点上穿18
当满足条件XG9时,在C和O之间画柱状线
{庄家成本}AL0:=V累加至CAPITAL*1的天数
AL1:=SUM(获利盘为10%的成本分布,AL0)/AL0
AL2:=SUM(获利盘为20%的成本分布,AL0)/AL0
AL3:=SUM(获利盘为30%的成本分布,AL0)/AL0
AL4:=SUM(获利盘为40%的成本分布,AL0)/AL0
AL5:=SUM(获利盘为50%的成本分布,AL0)/AL0
庄家成本1赋值:(5*AL1+4*AL2+3*AL3+2*AL4+AL5)/15,COLOR0080FF,DOTLINE
输出庄家成本:DATE庄家成本1日,COLORWHITE,DOTLINE
DRAWTEXT(CURRBARSCOUNT=30,庄家成本,STRCAT('庄本:',CON2STR(庄家成本,2))),COLORWHITE
{前峰}LT赋值:LLVBARS(L,60)
LT1赋值:LLVBARS(L,60)
LTT赋值:上次CURRBARSCOUNT=CONST(LT距今天数+1)
HT赋值:FINDHIGHBARS(H,LT+1,60,1)
DT赋值:FIND最低价(L,LT1+1,60,1)
输出前峰:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,HT日前的H,0),COLORLIGREEN ,LINETHICK1
{涨跌停变色}X_2赋值:1日前的收盘价
X_3赋值:1日前的收盘价*1.097
X_4赋值:收盘价>=X_3 AND 收盘价=最高价
STICKLINE(X_4,收盘价-(收盘价-OPEN)/3,收盘价,2,0),COLORRED
X_5赋值:IF(DTPRICE(1日前的收盘价,0.1)=收盘价,2,0)
STICKLINE((C-1日前的C)/1日前的C<=-0.0985,收盘价+(OPEN-收盘价)/3,收盘价,2,0),COLORBLUE
{庄家入场}GUA6:=100-3*SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
GUA7:=100-3*SMA((OPEN-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((OPEN-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
GUA8:=GUA6<1日前的GUA7 AND 成交量>1日前的成交量 AND 收盘价>1日前的收盘价
STICKLINE(GUA8 AND 统计30日满足GUA8的天数=1,C-(C-O)/3,C,2,0),COLORYEL最低价
STICKLINE(GUA8 AND 统计30日满足GUA8的天数=1,C-(C-O)/3,C,0.1,0),COLORBLUE
DRAWTEXT(GUA8 AND 统计30日满足GUA8的天数=1,L*0.99,'庄'),COLORWHITE
{大单异动}VAR3AA赋值:IF((收盘价>1日前的收盘价),88,0)
VAR4AA赋值:IF(((收盘价)/(1日前的收盘价)>1.05) AND ((最高价)/(收盘价)<1.01) AND (VAR3AA>0),91,0)
XG8赋值:(FILTER((VAR4AA>90),45)),COLORYEL最低价
STICKLINE(XG8,C-(C-O)/3,C,2,0),COLORYEL最低价
STICKLINE(XG8,C-(C-O)/3,C,0.1,0),COLORMAGENTA
当满足条件XG8时,在H*1.01和'异'位置书写文字
均价线赋值:AMOUNT/V/100
C2赋值:1日前的C
涨停赋值:IF(1日前的C*1.1-C<0.01 ,1,0)
支撑线:=(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4
LC赋值:1日前的收盘价
操作线赋值:SMA(收盘价-LC和0较大值,2,1)/SMA(收盘价-LC的绝对值,2,1)*100
趋势线赋值:SMA(收盘价-LC和0较大值,14,1)/SMA(收盘价-LC的绝对值,14,1)*100
震仓线赋值:45
震仓线2:=50
逃命线赋值:80
抄底线赋值:20
绝底线赋值:5
PP2:=操作线<震仓线2  AND 1日前的操作线>震仓线2
PP赋值:操作线<震仓线  AND 1日前的操作线>震仓线
PP3:=操作线<抄底线  AND 1日前的操作线>抄底线
HH赋值:统计14日满足涨停的天数>=1
L的4日[3日权重]移动平均
STICKLINE(A8 AND 1日前的PP AND HH ,L*0.9999,L*0.9989,5,0),COLORLIRED
{DRAWICON(A8 AND 1日前的PP AND HH,L*0.98,1)
}STICKLINE(A8 AND 1日前的PP3 AND HH ,L*0.9999,L*0.9989,5,0),COLORYEL最低价
{DRAWICON(A8 AND 1日前的PP3 AND HH,L*0.98,1)
}HD赋值:统计14日满足涨停的天数>=1
H的4日[3日权重]移动平均
当满足条件A1 AND HD 时,在H和H*1.001之间画柱状线
{抄底}N赋值:9
M11:=3
M12:=3
试试赋值:(收盘价-N日内最低价最低值)/(N日内最高价最高值-N日内最低价最低值)*100
试试的5日[1日权重]移动平均
K0的M11日[1日权重]移动平均
J0赋值:3*K0-2*D0
VARB2:=(试试/2+22)*1
V13赋值:成交量的13日指数移动平均
XXDDD1:=AMOUNT的13日指数移动平均
XXDDD2:=((XXDDD1 /V13) / 100)
XXDDD3:=(((收盘价 -XXDDD2) / XXDDD2) * 100)
XXDDD4:=((XXDDD3 < (0)) AND ZXNH),COLORRED
XXDDD5:=XXDDD4 AND 试试当满足条件XXDDD5时,在L*0.99和'▲'位置书写文字
{抄底}{VARF:=TROUGHBARS(3,15,1)<4
CD赋值:STICKLINE(VARF=1的5过滤,3,0,0.1,0),COLORYEL最低价
当满足条件CD时,在L*0.99和'◆'位置书写文字
输出}底:DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),H,''),LINETHICK2,COLORYEL最低价
当满足条件底时,在L*0.999和36之间画图标
输出顶:DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),H,''),LINETHICK2,COLORYEL最低价
当满足条件顶时,在H*1.01和37之间画图标
{快逃绿箭头}VAR30:=PEAKBARS(3,15,1)<10
如果VAR30=1返回2否则返回0
如果VAR50=2返回2否则返回0
顶A赋值:IF(顶1>1日前的顶1,3,0),COLORGREEN
当满足条件顶A=2时,在H*1.02和2之间画图标
{买点红箭头}AR1:=OPEN的7日指数移动平均
AR2:=AR1的21日指数移动平均
AR3:=AR1上穿AR2
AR5:=EMA(SMA((收盘价-20日内最低价最低值)/(16日内最高价最高值-20日内最低价最低值)*100,8,1),3)
短买赋值:IF(TROUGHBARS(1,6,1)=0 AND 最高价>最低价+0,3,0),COLORRED
当满足条件短买=2时,在L*0.98和1之间画图标
成妖趋势赋值:XXL的25日简单移动平均,25)-(XXH的25日简单移动平均,25)-XXL的25日简单移动平均,25))*1,LINETHICK1,COLORRED,DOTLINE
STICKLINE(成妖趋势>最低价 AND 成妖趋势<最高价,成妖趋势,OPEN和收盘价的较小值,成妖趋势),0.5,0),COLOR0099FF
STICKLINE(成妖趋势>C和O的较小值 AND 成妖趋势当满足条件成妖趋势>最高价时,在OPEN和收盘价之间画柱状线
当满足条件成妖趋势>最高价时,在最高价和最低价之间画柱状线
{仙人指}V1赋值:收盘价/3日前的收盘价>=1.1
V2赋值:BACKSET(V1,2)
仙人指赋值:V2 AND 统计2日满足V2的天数=1
当满足条件仙人指时,在L*0.99和11之间画图标
{游资接力}HJXX_1:=D收盘价的12日指数移动平均的5的成交量日累和/3/CAPITAL日简单移动平均
HJXX_2:=最高价的30日指数移动平均*1.15
HJXX_3:=最高价的3日指数移动平均*1.03
游资接力赋值:收盘价上穿HJXX_3 AND (收盘价-1日前的收盘价)/1日前的收盘价 > 0.04
当满足条件游资接力时,在L*0.99和'▲'位置书写文字
当满足条件游资接力时,在L*0.98和'▲'位置书写文字
{起爆点}AVAR2:=1日前的最低价
AVAR3:=SMA(最低价-AVAR2的绝对值,13,1)/SMA(最低价-AVAR2和0较大值,13,1)*100
如果收盘价*1.2返回AVAR3*13否则返回AVAR3/13
AVAR5:=34日内最低价最低值
AVAR6:=34日内AVAR4最高值
AVAR7:=IF(56日内最低价最低值,1,0)
AVAR8赋值:EMA(IF(最低价<=AVAR5,(AVAR4+AVAR6*2)/2,0),3)/618*AVAR7
AA赋值:AVAR8>1日前的AVAR8
RR1赋值:收盘价的27日简单移动平均
RR2赋值:(收盘价-RR1)/RR1*100
RRA赋值:RR2的2日简单移动平均
RRB赋值:上次-1上穿RRA=1距今天数
RRD赋值:RRA<-10 AND RRB>3
如果RRD返回-12否则返回0
如果RRD返回-7否则返回0
DR赋值:100
ZRQ赋值:3
DJ1赋值:REF(100日内L最低值,3)
ZD1赋值:DATEDJ1日
XG0赋值:L=ZD1
XG0A赋值:AA AND XG0,COLORRED,LINETHICK1
XG01:=XG0A>1日前的XG0A
牛股起爆点赋值:XG01>1日前的XG01COLORRED,LINETHICK1
DJ赋值:REF(100日内L最低值,3)
ZD赋值:DATEDJ日
XG09:=L=ZD
XGA赋值:AA AND XG09
XG1赋值:XGA>1日前的XGA
底部9赋值:XG1>1日前的XG1
当满足条件底部9时,在L*0.98和9之间画图标
JRH赋值:2日内C最高值
JRL赋值:2日内C最低值
MA3:=收盘价的3日简单移动平均
YTSL赋值:(3*收盘价+最低价+OPEN+最高价)/6
VAR1:=(收盘价>1日前的收盘价 AND 收盘价>2日前的收盘价)
VAR2:=(1日前的VAR1 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)
VAR3:=(1日前的VAR2 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)
VAR4:=(1日前的VAR3 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)
VAR5:=(1日前的VAR4 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)
VAR6:=(1日前的VAR5 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)
VAR7:=(1日前的VAR6 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)
VAR8赋值:(1日前的VAR7 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)
VAR9:=(1日前的VAR8 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)
VARA赋值:(1日前的VAR9 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)
VARB赋值:(1日前的VARA AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)
VARC:=(1日前的VARB AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)
VARD:=(收盘价<1日前的收盘价 AND 收盘价<2日前的收盘价)
VARE:=(1日前的VARD AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)
VARF1:=(1日前的VARE AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)
VAR10:=(1日前的VARF1 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)
VAR11:=(1日前的VAR10 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)
VAR12:=(1日前的VAR11 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)
VAR13:=(1日前的VAR12 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)
VAR14:=(1日前的VAR13 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)
VAR15:=(1日前的VAR14 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)
VAR16:=(1日前的VAR15 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)
VAR17:=(1日前的VAR16 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)
VAR18:=(1日前的VAR17 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)
VAR19:=((1日前的VARD OR VARE OR VARF1 OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18) AND VAR1)
VAR1A赋值:((1日前的VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC) AND VARD)
红色持股赋值:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW
如果红色持股返回JRL否则返回DRAWNULL
明离场价赋值:机构离场,COLORFF99FF,NODRAW
今离场价赋值:1日前的机构离场COLOR0000FF,NODRAW
青色观望赋值:VARD OR VARE OR VARF1 OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW
如果青色观望返回JRH否则返回DRAWNULL
明进场价:=进,COLOR33AACC,NODRAW
今进场价:=1日前的明进场价,COLORFF0000,NODRAW
STICKLINE(ISLASTBAR AND (红色持股 OR 1日前的红色持股=1),今离场价,今离场价,30,1),COLOR0000FF
STICKLINE(ISLASTBAR AND (青色观望 OR 1日前的青色观望=1),今进场价,今进场价,30,1),COLOR00FF00
机构短买赋值:VAR19,COLOR33AACC,NODRAW
品红离场赋值:VAR1A,COLORFF99FF,NODRAW
CO赋值:(C-O)
当满足条件机构短买时,在O和O+CO/3之间画柱状线
当满足条件品红离场时,在O和O+CO/3之间画柱状线
{上下轨}N11赋值:2,200,13
UR00赋值:2,200,6
LR0赋值:2,200,6
TC01赋值:IF(H=8*UR00日内H最高值,H,DRAWNULL)
TC02赋值:CONST(上次TC01=H距今天数)+1
UPPER:=CONST(IF(TC02=1,H,TC02-1日前的H))
BC1:=IF(L=8*LR0日内L最低值,L,DRAWNULL)
BC2赋值:CONST(上次BC1=L距今天数)+1
LOWER赋值:CONST(IF(BC2=1,L,BC2-1日前的L))
LP赋值:CURRBARSCOUNT<=BC2 AND L=LOWER
HP赋值:CURRBARSCOUNT<=TC02 AND H=UPPER
如果TC02>BC2返回TC02否则返回BC2
LR1赋值:C的NOD+1日线性回归预测值
NP赋值:IF(CURRBARSCOUNT<=BC2和TC02较大值,CONST(IF(TC02和BC2的较小值=1,LR1,REF(LR1,TC02和BC2的较小值-1))),DRAWNULL),DOTLINE,COLORLIBLUE
LR2赋值:SLOPE(C,NOD+1)
LR3赋值:CONST(IF(TC02和BC2的较小值=1,LR2,REF(LR2,TC02和BC2的较小值-1)))
如果BC2>TC02返回HP否则返回LP
如果BC2>TC02返回LP否则返回HP
}FP赋值:NP-LR3*(NOD),DOTLINE,COLORLIRED
EQU赋值:(NP+FP)/2,DOTLINE,COLORWHITE
AD:=NP-FP的绝对值
DBL0:=上次BC1!=DRAWNULL距今天数+1
DBH:=上次TC01!=DRAWNULL距今天数+1
如果BC2>TC02返回DBL0否则返回DBH
如果NP>FP返回FP+AD/NOD*BSP否则返回FP-AD/NOD*BSP
AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND H>LRL,H,LRL)
AT2:=BC2和TC02较大值日内AT1-LRL最高值
AT3:=CONST(上次AT1-LRL=AT2距今天数)
AT4:=CONST(IF(AT3=0,H,AT3日前的H))
AT5:=CONST(IF(AT3=0,AT1-LRL,AT3日前的AT1-LRL))
ATL:=LRL+AT5
UT1赋值:IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND LUT2赋值:BC2和TC02较大值日内LRL-UT1最高值
UT3赋值:CONST(上次LRL-UT1=UT2距今天数)
UT4赋值:CONST(IF(UT3=0,H,UT3日前的H))
UT5赋值:CONST(IF(UT3=0,LRL-UT1,UT3日前的LRL-UT1))
UTL赋值:LRL-UT5
RH赋值:IF(CURRBARSCOUNT>=BC2和TC02的较小值-10,ATL,CONST(REF(ATL,BC2和TC02的较小值-11)))
RL赋值:IF(CURRBARSCOUNT>=BC2和TC02的较小值-10,UTL,CONST(REF(UTL,BC2和TC02的较小值-11)))
输出中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLORBBBBBB
输出上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORBLUE
输出下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLORFF00FF
SJ1赋值:(3日前的最高价 = HHV(最高价,((2 * 3) + 1)))
SJ2赋值:SJ1的3过滤
SJ3赋值:BACKSET(SJ2,(3 + 1))
SJ4赋值:SJ3的3过滤
SJ5赋值:(3日前的最低价 = LLV(最低价,((2 * 3) + 1)))
SJ6赋值:SJ5的3过滤
SJ7赋值:BACKSET(SJ6,(3 + 1))
SJ8赋值:SJ7的3过滤
SJ9赋值:((REF(LLV(最低价,(2 * 3)),1) + REF(HHV(最高价,(2 * 3)),1)) / 2)
SJ10:=((最高价 + 最低价) / 2)
SJ11:=(((SJ4 AND NOT((SJ8 AND (SJ9 >= SJ10)))) OR BARSTATUS) OR (收盘价的有效数据周期数 = 1))
SJ12:=(SJ8 AND NOT((SJ4 AND (SJ9 < SJ10))))
SJ13:=(SJ4 AND NOT((SJ8 AND (SJ9 >= SJ10))))
SJ14:=(REF(上次SJ11距今天数,1) + 1)
如果SJ12返回最低价否则返回10000
SJ16:=(SJ15 > 1日前的SJ15)
SJ17:=BACKSET(SJ16,2)
SJ18:=(SJ17 > 1日前的SJ17)
SJ19:=((SJ18 OR BARSTATUS) OR (收盘价的有效数据周期数 = 1))
SJ20:=(REF(上次SJ19距今天数,1) + 1)
如果SJ13返回最高价否则返回0
SJ22:=(SJ21 > 1日前的SJ21)
SJ23:=BACKSET(SJ22,2)
SJ24:=(SJ23 > 1日前的SJ23)
SJ25:=BACKSET(BARSTATUS,(上次SJ18距今天数 + 1))
SJ26:=(SJ25 > 1日前的SJ25)
SJ27:=BACKSET(BARSTATUS,(上次SJ24距今天数 + 1))
SJ28:=(SJ27 > 1日前的SJ27)
输出底0:REF(最低价,上次SJ26距今天数),COLORLIGRAY
顶0:REF(最高价,上次SJ28距今天数),COLORLIGRAY
当满足条件SJ26时,在顶0和底0之间画柱状线
DRAWLINE(SJ28,最高价,SJ26,顶0,1),COLORLIGRAY,LINETHICK1
当满足条件SJ28时,在顶0和底0之间画柱状线
DRAWLINE(SJ26,最低价,SJ28,底0,1),COLORLIGRAY,LINETHICK1

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图