联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

微信:18020657357

Q Q:396950280

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

本人最近收集的不错的主幅图

2015-11-7 10:12:19点击:

这几年见到感觉还行的指标就存下了,现在都发出来供同学挑选,不管是从实用角度还是学习指标编写的角度,相信总有一款是你喜欢的

主图公式:

资金翻倍:

N:=20;
DRAWGBKLAST(DATE>900101,STRIP(RGB(75,75,75),RGB(0,0,0),0));
DRAWTEXTABS(10,10,STKLABEL+' '+STKNAME+' '+BKNAME),COLOR00FFFF;
STICKLINE(C>=O,C,O,8,0),COLOR000055;
STICKLINE(C>=O,C,O,6.5,0),COLOR000075;
STICKLINE(C>=O,C,O,5,0),COLOR000095;
STICKLINE(C>=O,C,O,3.5,0),COLOR0000B5;
STICKLINE(C>=O,C,O,2,0),COLOR0000D5;
STICKLINE(C>=O,H,L,0.5,0),COLOR0000F5;
STICKLINE(C<O,C,O,8,0),COLOR303000;
STICKLINE(C<O,C,O,6.5,0),COLOR404000;
STICKLINE(C<O,C,O,5,0),COLOR505000;
STICKLINE(C<O,C,O,3.5,0),COLOR606000;
STICKLINE(C<O,C,O,2,0),COLOR707000;
STICKLINE(C<O,H,L,0.5,0),COLOR808000;
总股本(亿):FINANCE2(35)/10000,COLORYELLOW,LINETHICK0;
流通(亿):FINANCE2(37)/10000,COLORFFFFFF,LINETHICK0;
均价:=(3*C+H+L+O)/6;
VAR1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;
VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
FILLRGN(VAR1,VAR2,VAR1>VAR2,(RGB(100,0,100)));
短趋:VAR1,ColorFFFFFF;
中趋:VAR2,COLORYELLOW;
PARTLINE(中趋,中趋<REF(中趋,1)),COLORGREEN;
SZ1:=REF(VAR1,1)=REF(VAR2,1) AND VAR1>VAR2 AND CLOSE>VAR1;
SZ2:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1) AND H/VAR1<1.1 AND L>VAR2 AND CLOSE>VAR1;
SZ3:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>=REF(VAR2,1) AND H/VAR1>1.1;
SZ4:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1) AND CLOSE>VAR2 AND CLOSE<VAR1;
SZ5:=(VAR1>VAR2 AND VAR2>REF(VAR2,1) AND VAR1<>REF(VAR1,1) AND CLOSE<VAR2) OR (VAR1>VAR2 AND VAR1<REF(VAR1,1) AND VAR2<REF(VAR2,1) AND CLOSE<VAR2);;
SZ6:=REF(VAR1,1)>REF(VAR2,1) AND VAR1=VAR2 AND CLOSE<VAR2;
XD1:=VAR1=VAR2 AND CLOSE<VAR2 OR (VAR1<REF(VAR1,1) AND VAR2<REF(VAR2,1) AND REF(VAR1,1)=REF(VAR2,1) AND CLOSE<VAR2);
XD2:=VAR1=VAR2 AND CLOSE>VAR1; 
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));
量能饱和度:=IF(SAT>1,1,SAT)*100;
IF BARSTATUS=2 AND SZ1 THEN BEGIN 
DRAWTEXTABS(320,25,'调整结束短线介入'),COLORRED;
END
ELSE
IF BARSTATUS=2 AND SZ2 THEN BEGIN 
DRAWTEXTABS(320,25,'上升通道走势良好'),COLORRED;
END
ELSE
IF BARSTATUS=2 AND SZ3 THEN BEGIN 
DRAWTEXTABS(320,25,'股价偏离注意调整'),COLORRED;
END
ELSE
IF BARSTATUS=2 AND SZ4 THEN BEGIN 
DRAWTEXTABS(320,25,'上升通道调整洗盘'),COLORGREEN;
END
ELSE
IF BARSTATUS=2 AND SZ5 THEN BEGIN 
DRAWTEXTABS(320,25,'转向特征注意离场'),COLORGREEN;
END
ELSE
IF BARSTATUS=2 AND SZ6 THEN BEGIN 
DRAWTEXTABS(320,25,'通道改变坚决离场'),COLORGREEN;
END
ELSE
IF BARSTATUS=2 AND XD1 THEN BEGIN 
DRAWTEXTABS(320,25,'下跌通道只宜观望'),COLORGREEN;
END
ELSE
IF BARSTATUS=2 AND XD2 THEN BEGIN 
DRAWTEXTABS(320,25,'短期底部准备进入'),COLORYELLOW;
END;
AB1:=COST(0.33);
AB2:=COST(5);
AB3:=COST(15);
AB4:=COST(55);
AB5:=COST(97);
AA1:=COST(90);
AA2:=COST(70);
AA3:=COST(30);
AA4:=COST(10);
获利:=WINNER(CLOSE)*100;
套牢:=100-WINNER(CLOSE)*100;
DRAWTEXTABS(15,25,'量能饱和度:'+NUMTOSTRN(量能饱和度,2)+'%'),COLOR00FFFF;
DRAWTEXTABS(15,40,'90成本:'+NUMTOSTRN(AA1,2)),COLOR00FFFF;
DRAWTEXTABS(15,55,'70成本:'+NUMTOSTRN(AA2,2)),COLOR00FFFF;
DRAWTEXTABS(15,70,'30成本:'+NUMTOSTRN(AA3,2)),COLOR00FFFF;
DRAWTEXTABS(15,85,'10成本:'+NUMTOSTRN(AA4,2)),COLOR00FFFF;
DRAWTEXTABS(15,100,'底出击:'+NUMTOSTRN(AB1,2)),COLOR00FFFF;
DRAWTEXTABS(520,25,'建仓:'+NUMTOSTRN(AB2,2)),COLOR00FFFF;
DRAWTEXTABS(600,25,'快刀:'+NUMTOSTRN(AB3,2)),COLOR00FFFF;
DRAWTEXTABS(675,25,'升浪:'+NUMTOSTRN(AB4,2)),COLOR00FFFF;
DRAWTEXTABS(520,40,'获利:'+NUMTOSTRN(获利,2)+'%'),COLOR00FFFF;
DRAWTEXTABS(600,40,'套牢:'+NUMTOSTRN(套牢,2)+'%'),COLOR00FFFF;
DRAWTEXTABS(675,40,'预测:'+NUMTOSTRN(AB5,2)),COLOR00FFFF;
TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1;
立桩量:=FILTER(TJ1,5);
TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));
突破:=TJ2=1;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),6,0),COLORCYAN;
STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),6,0),COLORYELLOW;
TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));
三天法则:=TJ3=1;
成立:=三天法则 AND 突破;
条件成立:=FILTER(成立,3);
DRAWTEXT(条件成立,L*0.99,'成立'),COLORYELLOW;
DRAWRECTREL(0,85,15,380,RGB(30,30,30)),COLORWHITE;
AAA:=量能饱和度<=10; 
BBB:=量能饱和度>10 AND 量能饱和度<=20;
CCC:=量能饱和度>20 AND 量能饱和度<=30; 
DDD:=量能饱和度>30 AND 量能饱和度<=50;
EEE:=量能饱和度>50 AND 量能饱和度<=70;
FFF:=量能饱和度>70 AND 量能饱和度<=80;
GGG:=量能饱和度>80 AND 量能饱和度<=90;
HHH:=量能饱和度>90;
IF BARSTATUS=2 AND AAA THEN BEGIN DRAWRECTREL(0,350,15,380,RGB(255,0,0));
END
ELSE
IF BARSTATUS=2 AND BBB THEN BEGIN DRAWRECTREL(0,320,15,380,RGB(255,0,0));
END
ELSE
IF BARSTATUS=2 AND CCC THEN BEGIN DRAWRECTREL(0,290,15,380,RGB(255,0,0));
END
ELSE
IF BARSTATUS=2 AND DDD THEN BEGIN DRAWRECTREL(0,230,15,380,RGB(255,0,0));
END
ELSE
IF BARSTATUS=2 AND EEE THEN BEGIN DRAWRECTREL(0,170,15,380,RGB(255,0,0));
END
ELSE
IF BARSTATUS=2 AND FFF THEN BEGIN DRAWRECTREL(0,140,15,380,RGB(255,0,0));
END
ELSE
IF BARSTATUS=2 AND GGG THEN BEGIN DRAWRECTREL(0,110,15,380,RGB(255,0,0));
END
ELSE
IF BARSTATUS=2 AND HHH THEN BEGIN DRAWRECTREL(0,85,15,380,RGB(255,0,0));
END;

四区主图:
MA5:MA(CLOSE,5),COLORFFFFFF,PRECIS2,LAYER0;
MA10:MA(CLOSE,10),COLOR00FFFF,PRECIS2,LAYER0;
MA24:MA(C,24),COLORFF00FF,PRECIS2,LAYER0;
W:=BARSLAST(DISPSTATUS=1);
P:=BACKSET(DISPSTATUS=2,W/2+1);
K:=BARSLAST(CROSS(P,0.5));
KJ:=HHVALL(HIGH)-LLVALL(LOW);
VERTLINE(CROSS(P,0.5),4),COLOR00FFFF;
平衡:LLVALL(LOW)+KJ/2,COLOR00FFFF,DOTLINE,PRECIS2;
{FILLRGN(平衡,HHVALL(HIGH),W>K,RGB(0,0,200)),PRECIS2;该行设置背景色}
压力:IF(K>=0,HHVALL(HIGH)-KJ*0.191,平衡),COLORFF00FF,DOTLINE,PRECIS2;
支撑:IF(K>=0,LLVALL(LOW)+KJ*0.191,平衡),COLOR00FF00,DOTLINE,PRECIS2;
{低吸:K>=0 and CROSS(平衡,LOW),COLORFF8899,LINETHICK0,PRECIS2;}
低涨:(C/LLV(LOW,W)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;
天:BARSLAST(L=LLV(LOW,W)),COLOR00FFFF,LINETHICK0,PRECIS0;
DRAWTEXT(HIGH=HHVALL(HIGH) and K>=0,HIGH*1.01,'←'+NUMTOSTRN(HIGH,2)),COLORFFFFFF;
{DRAWICON(低吸,LOW,6);}
{以下设置提示文字部分}
DRAWTEXT(DISPSTATUS=2,压力,'0.809'),COLOR0000FF,ALIGN0;
DRAWTEXT(DISPSTATUS=2,平衡,'0.500'),COLORFFFFFF,ALIGN0;
DRAWTEXT(DISPSTATUS=2,支撑,'0.191'),COLOR00FFFF,ALIGN0;
DRAWTEXT(K=0,HHVALL(HIGH)-KJ/12,'★强势区域--急拉减仓!'),COLOR00FFFF,ALIGN1;
DRAWTEXT(K=0,HHVALL(HIGH)-KJ/3,'●震荡整理--寻机低吸!'),COLOR00FF00,ALIGN1;
DRAWTEXT(K=0,LLVALL(LOW)+KJ/3,'◆反弹中轨--逢高休息!'),COLORFFFFFF,ALIGN1;
DRAWTEXT(K=0,LLVALL(LOW)+KJ/10,'■弱势区域--暂不参与!'),COLORFFFF00,ALIGN1;
{以下设置个股信息}
DRAWTEXTREL(10,50,'所属板块:'+BKNAME),COLORFFFFFF;
DRAWTEXTREL(10,120,'股票名称:'+'【'+STKLABEL+' '+STKNAME+'】'),COLOR00FF00;
DD:=FINANCE2(35);SS:=FINANCE2(37);
DRAWTEXTREL(10,190,'总股本:'+NUMTOSTRN(DD,0)+'万' +'  流通A股:'+NUMTOSTRN(SS,0)+'万'),COLOR00FFFF;
DRAWTEXTREL(10,300,'■低点至今上涨:'+NUMTOSTRN(低涨,2)+'%  '+NUMTOSTRN(天,0)+'天'),COLOR0000FF;
DRAWTEXTREL(10,360,'■目前可见K线:'+NUMTOSTRN(W+1,0)+'天'),COLOR00FF00;
DRAWTEXTREL(10,420,'■建议查阅K线:短线30天,中长线120天!'),COLORFF8899;
DRAWTEXTREL(10,920,'====【创幻论坛の一品茶缘】===='),COLOR889999;
{以下设置五彩立体K线}
STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;
STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),OPEN,CLOSE,7,0),colorred;
STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorcyan;
STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),OPEN,CLOSE,7,0),colorcyan;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00; 
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF; 
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF; 
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;

三线主图:
{参数设置:
M 88 1 300 1
N1 6 1 100 1}


DRAWGBKLAST(CLOSE>0,STRIP(RGB(95,95,95),RGB(0,0,0),0));
VAR0A:=EMA(EMA(EMA(CLOSE,2),2),2);
MA13:(MA(VAR0A,13)*0.99);
{(MA(VAR0A,13)*0.999);}
TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW)));
ATR:=MA(TLAMSENR,13);
VAR1A:=(REF(CLOSE,1)-REF(ATR,1));
生命线:(HHV(VAR1A,12)),LINETHICK2,COLOR0080FF;
VAR1:=EMA(AMOUNT/VOL/100,3);
控盘成本:EMA(VAR1,M),LINETHICK1;
低吸伏击:EMA(VAR1,M)*0.85,LINETHICK1,COLORFFFF00;
走势铁底:低吸伏击*0.87,LINETHICK1,COLORFF00FF;
VAR2:=LOW<=走势铁底 AND CLOSE>REF(CLOSE,1)*1.02;
DRAWICON(FILTER(VAR2,N1),L,1);;;

高山流水:
{参数设置
N 8 1 30 1}

高山:HHV(MA(H,N),N),COLORRED,LINETHICK2;
流水:MA(H,N),COLORFFFFFF,LINETHICK2;
出水:IF(C>HHV(MA(H,N),8) AND HHV(MA(H,N),8)>MA(H,N),1,0),COLORFF00FF,POINTDOT,LINETHICK0;
回踩:IF((CROSS(MA(H,N),L) OR CROSS(MA(H,N)*1.01,C))AND BARSLAST(出水)<=5,1,0),COLOR00FFFF,POINTDOT,LINETHICK0;
STICKLINE(出水,(C+O)/2,(C+O)/2,8,0),COLORFF00FF;
STICKLINE(出水,H,L,0,0),COLORFF00FF;
DRAWICON(回踩,L,7),ALIGN1;
HHV(流水,2),COLOR00FF00;
HHV(流水,3),COLOR00FF00;
HHV(流水,4),COLOR00FF00;
HHV(流水,5),COLOR00FF00;
HHV(流水,6),COLOR00FF00;
HHV(流水,7),COLOR00FF00;
HHV(流水,8),COLOR00FF00;
HHV(MA(H,N),N),COLORRED,LINETHICK2;

副图公式:

主升浪:
var0:=eMA(vol,20);
var1:= var0 + 2*STD(vol,10);
var2:=var0 - 2*STD(vol,10);
主升浪:STICKLINE(var1>ref(var1,1) ,var1 ,ref(var1,1) ,8 ,1),colorred;
STICKLINE(var1<ref(var1,1) ,var1 ,ref(var1,1) ,8 ,1),COLORCYAN;

AAA:
CV:=CLOSE;
BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
UPR:=BBIBOLL+6*STD(BBIBOLL,11);
DWN:=BBIBOLL-6*STD(BBIBOLL,11);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
HSL:=(XVL/20)/1.15;
攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻击,3);0,POINTDOT,COLORWHITE;
B1:SUM(LLJX,1),COLORCYAN;
B2:SUM(LLJX,2),COLORCYAN;
B3:SUM(LLJX,3),COLORCYAN;
B4:SUM(LLJX,4),COLORCYAN;
B5:SUM(LLJX,5),COLORCYAN;
B6:SUM(LLJX,6),COLORCYAN;
B7:SUM(LLJX,7),COLORCYAN;
B8:SUM(LLJX,8),COLORCYAN;
B9:SUM(LLJX,9),COLORCYAN;
B10:SUM(LLJX,10),COLORCYAN;
A1:IF(B1>REF(B1,1),B1,0),COLORRED;
A2:IF(B2>REF(B2,1),B2,0),COLORRED;
A3:IF(B3>REF(B3,1),B3,0),COLORRED;
A4:IF(B4>REF(B4,1),B4,0),COLORRED;
A5:IF(B5>REF(B5,1),B5,0),COLORRED;
A6:IF(B6>REF(B6,1),B6,0),COLORRED;
A7:IF(B7>REF(B7,1),B7,0),COLORRED;
A8:IF(B8>REF(B8,1),B8,0),COLORRED;
A9:IF(B9>REF(B9,1),B9,0),COLORRED;
A10:IF(B10>REF(B10,1),B10,0),COLORRED;

顶底:
DRAWGBKLAST(1,STRIP(RGB(4,1,28),RGB(4,1,35),0));
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
0,COLORFF00FF;
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
阶段底部:=(AV + NEWVOL);
STICKLINE((阶段底部 < 0),0,-10,0.8,1),LINETHICK6,COLORYELLOW;
趋势线:=LLV(阶段底部,1);
STICKLINE(CROSS(阶段底部,0),0,-10,0.8,1),LINETHICK6,COLORRED;
STICKLINE((趋势线 >230 ),100,90,0.3,1),LINETHICK6,COLORGREEN;

LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:EMA(RSV,3);
D:MA(K,3);
STICKLINE(K>D , K,D ,2.5,0),COLORRED,LINETHICK2;
STICKLINE(D>K,K,D,2.5,0),COLORGREEN,LINETHICK2;
逃顶线:90,COLORGREEN;
中轴线: 50,COLORRED;
抄底线:10,COLORGREEN;
DRAWICON(CROSS(K,D),12,7),COLORRED;
DRAWICON(CROSS(D,K),88,8),COLORGREEN;
DRAWTEXTREL(10,900,'㊣老兵专用㊣'),linethick1,COLOR00EEff;

股价成本:
{参数设置
P1 1.594 0 6 1
P2 0 0 300 1
P3 10 1 10000 1
P4 5 -200 300 1
P5 0 0 300 1

代码:=if(STRTONUM(STKLABEL)>=600000,1,0);
p1:=1.594;
p6:=1;
单价:=p2;
买价:if(单价=0,MA(C,10),单价),colorwhite,LINETHICK1,PRECIS2;
买数:=P3*100;
成本:=买价*p1/1000+买价+if(代码=1,if(买数*0.001>1,买数*0.001,1),0)/买数;
保本:(IF(代码=1,买价*买数*(p1+p6)/1000+IF(买数*0.001>1,买数*0.001,1),买价*买数*(p1+p6)/1000)+(IF(代码=1,买价*买数*p1/1000+IF(买数*0.001>1,买数*0.001,1),买价*买数*p1/1000))+买价*买数)/买数,LINETHICK3,colorwhite,PRECIS2;
现价:if(DYNAINFO(7)=0,DYNAINFO(3),DYNAINFO(7)),coloryellow,LINETHICK1,PRECIS2;
实本:(IF(代码=1,现价*买数*(p1+p6)/1000+IF(买数*0.001>1,买数*0.001,1),现价*买数*(p1+p6)/1000)+(IF(代码=1,现价*买数*p1/1000+IF(买数*0.001>1,买数*0.001,1),现价*买数*p1/1000))+现价*买数)/买数,LINETHICK3,coloryellow,PRECIS2;
净利:现价*买数-成本*买数-IF(代码=1,现价*买数*(p1+p6)/1000+IF(买数*0.001>1,买数*0.001,1),现价*买数*(p1+p6)/1000),coloryellow,LINETHICK0,PRECIS0;
净率:净利/(成本*买数+IF(代码=1,c*买数*(p1+p6)/1000+IF(买数*0.001>1,买数*0.001,1),c*买数*(p1+p6)/1000))*100,coloryellow,LINETHICK0,PRECIS1;
估率:P4,colorred,LINETHICK0,PRECIS1;
估价:成本*(1+估率/100),colorred,LINETHICK0,PRECIS2;
卖价:=P5;
预价:if(卖价=0,H,卖价),colormagenta,LINETHICK2,PRECIS2;
预利:=预价*买数-成本*买数-IF(代码=1,预价*买数*(p1+p6)/1000+IF(买数*0.001>1,买数*0.001,1),预价*买数*(p1+p6)/1000);
盈率:预利/(成本*买数+IF(代码=1,预价*买数*(p1+p6)/1000+IF(买数*0.001>1,买数*0.001,1),预价*买数*(p1+p6)/1000))*100,colormagenta,LINETHICK0,PRECIS1;
STICKLINE(c>=保本,c,保本,6,00),coloryellow;
STICKLINE(估价>=保本 ,估价,保本,3,00),colorred;
STICKLINE(预价>=保本,预价,保本,1,00),colormagenta;
STICKLINE(c<保本,c,保本,6,01),coloryellow;
偏离天数:=if((保本>=实本),0-last(保本>=实本),last(保本<=实本));
偏离成本均价:MA(C,ABS(偏离天数)),colorgreen,PRECIS2;
偏离率:=(1-偏离成本均价/实本)*100;
偏离日期:ref(date,abs(偏离天数)-1),LINETHICK0,PRECIS0;
VERTLINE(偏离天数=1,1),COLORRED;VERTLINE(偏离天数=-1,2),COLORGREEN;
DRAWTEXTABS(0 ,0 ,'*偏离天数:'+偏离天数+'天  '+' *偏离成本:'+NUMTOSTRN(偏离成本均价,2)+'元'+'  *偏离率:'+NUMTOSTRN(偏离率,1)+'%'+'  *偏离日期:'+INTPART(偏离日期/10000+1900)+'年'+INTPART(偏离日期/100-INTPART(偏离日期/10000)*100)+'月'+INTPART(偏离日期-INTPART(偏离日期/100)*100)+'日'+' *偏离比:'+NUMTOSTRN(WINNER(偏离成本均价)*100,1)+'%'+' *实利比:'+NUMTOSTRN(WINNER(2*现价-实本)*100,1)+'%'),colorgreen,PRECIS2;
TIPTEXT(BARSTATUS=2,0,'*买价:'+NUMTOSTRN(买价,2)+'元  '+'保本:'+NUMTOSTRN(保本,2)+'元; '+'*现价:'+NUMTOSTRN(现价,2)+'元  '+'实本:'+NUMTOSTRN(实本,2)+'元  '+'*估价:'+NUMTOSTRN(估价,2)+'元  '+'估率:'+NUMTOSTRN(估率,1)+'% ; '+' *预价:'+NUMTOSTRN(预价,2)+'元  '+'卖率:'+NUMTOSTRN(盈率,1)+'% ; '+' *偏离天数:'+偏离天数+'天 '+'偏离率:'+NUMTOSTRN(偏离率,1)+'%' +'   偏离成本均价:'+NUMTOSTRN(偏离成本均价,2)+'元;  '+'         偏离日期:'+INTPART(偏离日期/10000+1900)+'年'+INTPART(偏离日期/100-INTPART(偏离日期/10000)*100)+'月'+INTPART(偏离日期-INTPART(偏离日期/100)*100)+'日'  ),PRECIS2,colorgreen;

海底猎鹰:
stickline(c>0,-100,150,100,0),color334400;
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
短期底部:=LLV(OPEN,30);
K:SMA(RSV,3,1);
D:SMA(K,3,1);
J:((3 * K) - (2 * D));
AA10:=MA(CLOSE,10);
AA12:=MA(CLOSE,12);
BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);
BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);
MA13:=MA(CLOSE,13);
if((K > D),K,d),colorFF00FF;
if((K < D),d,K),colorFFFF00;
if((J > D),J,d),LINETHICK2,color0000FF;
if((J < D),d,J),LINETHICK2,color00FF00;
20,POINTDOT,color00FF00;
80,POINTDOT,color00FF00;
VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);
VAR6:=MA(VAR5,3);
底部1:IF(VAR6 ,20,0),colorFFFF00;
STICKLINE((CROSS(J,K) AND (底部1 >= 20)),100,0,2,0),colorFFFFFF;
DRAWICON((CROSS(J,K) AND (底部1 >= 20)),100,1);
DRAWTEXT((CROSS(J,K) AND (底部1 >= 20)),98,'--全仓');
STICKLINE((VAR6 <= (0 - 15)),80,4.88,2,0);
DRAWTEXT((VAR6 <= (0 - 15)),80,'买'),colorFFFFFF;
STICKLINE((VAR6 <= (0 - 15)),80,60,2,0),color0000FF;
VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));
VAR8:=(((CLOSE - VAR7) / VAR7) * 100);
VAR9:=((((REF(VAR8,1) < (0 - 40)) AND (VAR8 > REF(VAR8,1))) AND (REF(VAR8,1) < REF(VAR8,2))) AND ((VAR8 - REF(VAR8,1)) > 2.5));
VARA:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VARB:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VARC:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VARD:=REF(CLOSE,1);
VARE:=((SMA(MAX((CLOSE - VARD),0),5,1) / SMA(ABS((CLOSE - VARD)),5,1)) * 100);
VARF:=(((HIGH + LOW) + CLOSE) / 3);
VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));
VAR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));
VAR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));
VAR13:=(VAR11 AND VAR12);
VAR14:=((((VARA >= (0 - 45)) AND (VARA <= (0 - 10))) AND (VARB <= (0 - 15))) AND (VARC <= (0 - 20)));
VAR15:=(COUNT(VAR14,1) >= 1);
VAR16:=(VAR13 AND VAR15);
VAR17:=1;
VAR18:=(CLOSE * VOL);
VAR19:=EMA((((((MA(VAR18,4) / MA(VOL,4)) + (MA(VAR18,6) / MA(VOL,6))) + (MA(VAR18,13) / MA(VOL,13))) + (MA(VAR18,24) / MA(VOL,24))) / 4),1);
VAR1A:=(1 * VAR19);
VAR1B:=(VAR19 * 0.92);
VAR1C:=EMA(CLOSE,34);
VAR1D:=MA((VAR1C * 1.12),5);
VAR1E:=MA((VAR1C * 0.82),5);
VAR1F:=(CLOSE < VAR1E);
VAR20:=((((((MA(AMOUNT,5) * VAR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * VAR17));
VAR21:=HHV(HIGH,500);
VAR22:=LLV(LOW,500);
VAR23:=HHV(HIGH,250);
VAR24:=LLV(LOW,250);
VAR25:=HHV(HIGH,125);
VAR26:=LLV(LOW,125);
VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35);
VAR28:=MA((((VAR23 * 0.62) + VAR26) / 2),35);
VAR29:=MA((((VAR23 * 0.75) + VAR26) / 2),18);
VAR2A:=MA((((((VAR23 * 0.93) + (VAR27 * 2)) + (VAR28 * 1.8)) + (VAR29 * 1.5)) / 4),18);
VAR2B:=MA(((((VAR21 * 0.95) + (VAR27 * 3)) + (VAR28 * 2)) / 3),35);
VAR2C:=VAR27;
VAR2D:=VAR28;
VAR2E:=VAR29;
VAR2F:=VAR2A;
VAR30:=VAR2B;
VAR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));
VAR32:=(INDEXA / 100000000);
VAR33:=INDEXADV;
VAR34:=INDEXDEC;
VAR35:=((VAR18 / (VAR18 + VAR19)) * VAR17);
VAR36:=((VAR19 / (VAR18 + VAR19)) * VAR17);
VAR37:=EMA(VAR35,10);
VAR38:=EMA(VAR36,10);
VAR39:=EMA(VAR37,10);
VAR3A:=EMA(VAR38,20);
VAR3B:=EMA(VAR37,3);
VAR3C:=EMA(VAR39,6);
VAR3D:=EMA(VAR3A,2);
VAR3E:=(VAR3C - VAR3D);
VAR3F:=(((VAR3C - REF(VAR3C,1)) > 0) AND ((REF(VAR3C,1) - REF(VAR3C,2)) < 0));
VAR40:=IF((CROSS(VAR3B,VAR3C) AND (VAR3C <= 20)),30,0);
VAR41:=VAR40;
VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);
VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);
VAR44:=(CLOSE - REF(MA(CLOSE,20),11));
VAR45:=(((((((((((((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43)) OR (((CLOSE < VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE < VAR1E) AND (CLOSE < VAR43))) OR (((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43))) OR (VAR20 AND (CLOSE < VAR2C))) OR ((VAR20 AND VAR31) AND (VAR44 < (0 - 1.5)))) OR (VAR20 AND (CLOSE < VAR1E))) OR (VAR20 AND (VAR44 < (0 - 1.5)))) OR (VAR31 AND (CLOSE < VAR43))) OR ((CLOSE < VAR2C) AND (VAR44 < (0 - 1.5)))) OR ((CLOSE < VAR1E) AND VAR31));
VAR46:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VAR47:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VAR48:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VAR49:=REF(CLOSE,1);
VAR4A:=((SMA(MAX((CLOSE - VAR49),0),5,1) / SMA(ABS((CLOSE - VAR49)),5,1)) * 100);
VAR4B:=(((HIGH + LOW) + CLOSE) / 3);
VAR4C:=((VAR4B - MA(VAR4B,14)) / (0.015 * AVEDEV(VAR4B,14)));
VAR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));
VAR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));
VAR4F:=(VAR11 AND VAR12);
VAR50:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 7))) AND (VAR3 <= (0 - 11))) AND (VAR4 <= (0 - 14)));
VAR51:=(COUNT(VAR50,1) >= 1);
VAR52:=(VAR4F AND VAR51);
VAR53:=(((((VAR20 AND (CLOSE < VAR1E)) AND VAR31) AND (CLOSE < VAR2C)) AND VAR45) AND VAR52);
VAR54:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VAR55:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VAR56:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VAR57:=REF(CLOSE,1);
VAR58:=((SMA(MAX((CLOSE - VAR57),0),5,1) / SMA(ABS((CLOSE - VAR57)),5,1)) * 100);
VAR59:=(((HIGH + LOW) + CLOSE) / 3);
VAR5A:=((VAR59 - MA(VAR59,14)) / (0.015 * AVEDEV(VAR59,14)));
VAR5B:=((((((VAR54 >= (0 - 15.8)) AND (VAR54 <= (0 - 12.2))) AND (VAR55 <= (0 - 20.8))) AND (VAR56 <= (0 - 27.5))) AND (VAR58 <= 11.7)) AND (VAR5A <= (0 - 145)));
VAR5C:=9.999999884842+026;

VAR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));
VAR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);
VAR60:=((CROSS((0 - 5),VAR5F) AND (VAR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));
VAR61:=MA(CLOSE,3);
VAR62:=(REF(CLOSE,2) * 0.865);
VAR63:=(REF(CLOSE,13) * 0.772);
VAR64:=MIN(VAR62,VAR63);
VAR65:=((100 * VOL) / CAPITAL);
VAR66:=MA(CLOSE,13);
VAR67:=IF(((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8)),1,0);
猎鹰出击:IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8))),120,0),LINETHICK2,color0000FF;
VAR68:=0;
MACD:(VAR6 * 5),COLORSTICK,LINETHICK2;
STICKLINE((CROSS(K,D) AND (BB10 > 1)),70,0,2,0),colorCC99FF;
DRAWTEXT((CROSS(K,D) AND (BB10 > 1)),64,'--短买'),color00FF00;
DRAWICON((CROSS(K,D) AND (BB10 > 1)),70,0);
底部预警:STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),5,0),color88B7EA;
VARQ:=MA(CLOSE,152);
VARW:=MA(CLOSE,194.16);
VAREe:=(VARW + (2 * STD(CLOSE,170)));
VARR:=(VARQ + (2 * STD(CLOSE,170)));
VART:=IF((DATE > 1080822),0,1);
VAR611:=EMA(HHV(HIGH,500),21);
VAR71:=EMA(HHV(HIGH,250),21);
VAR81:=EMA(HHV(HIGH,90),21);
VAR91:=EMA(LLV(LOW,500),21);
VARA1:=EMA(LLV(LOW,250),21);
VARB1:=EMA(LLV(LOW,90),21);
VARC1:=EMA((((((((VAR91 * 0.96) + (VARA1 * 0.96)) + (VARB1 * 0.96)) + (VAR611 * 0.558)) + (VAR71 * 0.558)) + (VAR81 * 0.558)) / 6),21);
VARD1:=EMA((((((((VAR91 * 1.25) + (VARA1 * 1.23)) + (VARB1 * 1.2)) + (VAR611 * 0.55)) + (VAR71 * 0.55)) + (VAR81 * 0.65)) / 6),21);
VARE1:=EMA((((((((VAR91 * 1.3) + (VARA1 * 1.3)) + (VARB1 * 1.3)) + (VAR611 * 0.68)) + (VAR71 * 0.68)) + (VAR81 * 0.68)) / 6),21);
VARF1:=EMA((((((VARC1 * 3) + (VARD1 * 2)) + VARE1) / 6) * 1.738),21);
VAR101:=REF(LOW,1);
VAR111:=((SMA(ABS((LOW - VAR101)),3,1) / SMA(MAX((LOW - VAR101),0),3,1)) * 100);
VAR121:=EMA(IF(((CLOSE * 1.35) <= VARF1),(VAR111 * 10),(VAR111 / 10)),3);
VAR131:=LLV(LOW,30);
VAR141:=HHV(VAR121,30);
VAR151:=IF(MA(CLOSE,58),1,0);
VAR161:=((EMA(IF((LOW <= VAR131),((VAR121 + (VAR141 * 2)) / 2),0),3) / 618) * VAR151);
VAR171:=(((IF((VAR161 > 50),50,VAR161) / 20) * 15) * VART);
底部吸筹:STICKLINE((VAR171 > 0),0,VAR171,1,1),colorFF00FF;
STICKLINE(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,0,3,0),color0000FF;
DRAWTEXT(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,'--抄底'),color0000FF;
STICKLINE(CROSS(90,J),88,100,2,0),color00FF00;
DRAWTEXT(CROSS(90,J),108,'。逃'),colorFFFFFF;
STICKLINE(CROSS(J,(0 - 5)),0,10,6,0),color00FF00;
DRAWTEXT(CROSS(J,(0 - 5)),(0 - 4),'。低吸'),color00FF00;
SG:=EMA(HHV(HIGH,1),8);
X1:=EMA(CLOSE,8);
X30:=((X1 < REF(X1,1)) AND (CLOSE < X1));
X31:=IF(((SG < REF(SG,1)) OR X30),1,0);
全仓出击:=((((COUNT((X31 = 1),4) = 3) AND (X31 = 0)) AND (((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) > 0.085)) * 89);
STICKLINE(全仓出击>=89,0,100,6,0),color0000FF;
DRAWICON((全仓出击 >= 89),全仓出击,1);
DRAWTEXT((全仓出击 >= 89),89,'--大胆杀入');
开始关注:STICKLINE((VAR6 <= (0 - 8)),5,25,7,0);
STICKLINE((CROSS(J,0) AND (VAR6 <= (0 - 7))),0,100,8,0),color000078;
STICKLINE((CROSS(J,0) AND (VAR6 <= (0 - 7))),0,100,6,0),color00009D;
STICKLINE((CROSS(J,0) AND (VAR6 <= (0 - 7))),0,100,5,0),color0000FF;
STICKLINE((CROSS(J,0) AND (VAR6 <= (0 - 7))),0,100,2,0),color007AB5;
DRAWTEXT((CROSS(J,0) AND (VAR6 <= (0 - 7))),100,'--导弹发射'),color0000FF;
均5:=MA(CLOSE,4);
X7:=EMA(EMA(EMA(HIGH,9),9),9);
海底:=(X7 * 0.92);
海底2:=(X7 * 0.933);
中轨道:=MA(CLOSE,2);
DRAWTEXT(((CROSS(中轨道,均5) AND (LOW <= 海底)) AND (CLOSE >= 海底2)),85,'-底部'),color00FFFF;
STICKLINE(((CROSS(中轨道,均5) AND (LOW <= 海底)) AND (CLOSE >= 海底2)),0,85,4,0),color00FFFF;

肯定涨停:

{参数设置
N1 3 2 60 1
N2 6 2 120 1
N3 12 2 250 1
N4 24 2 500 1}

LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
RSI4:=SMA(MAX(CLOSE-LC,0),N4,1)/SMA(ABS(CLOSE-LC),N4,1)*100;
ZJ1:=RSI1-REF(RSI1,1)>35;
ZJ2:=RSI2-REF(RSI2,1)>25;
ZJ3:=RSI3-REF(RSI3,1)>13;
ZJ4:=RSI4-REF(RSI4,1)>8;
ZJ1 AND ZJ2 AND ZJ3 AND ZJ4;

强弱对比:
个股:((C-REF(C,1))/REF(C,1))*100,COLORRED,LINETHICK1;
大盘:((INDEXC-REF(INDEXC,1))/REF(INDEXC,1))*100,COLORBLUE,LINETHICK1;
STICKLINE(个股>=大盘,个股,大盘,1,0),COLORRED;
STICKLINE(个股<大盘,个股,大盘,1,0),COLORBLUE;
STICKLINE(个股>=大盘,0,大盘,1,0),COLORYELLOW;
STICKLINE(个股<大盘,0,个股,1,0),COLORGREEN;

强势出击:
大盘6日:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6)*100;
大盘12日:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12)*100;
大盘24日:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24)*100;
大盘:(大盘6日 + 大盘12日 + 大盘24日)/3;
个股6日:=(C-MA(C,6))/MA(C,6)*100;
个股12日:=(C-MA(C,12))/MA(C,12)*100;
个股24日:=(C-MA(C,24))/MA(C,24)*100;
个股:(个股6日 + 个股12日 + 个股24日)/3;
强势出击:IF(大盘>REF(大盘,1) AND CROSS(个股,大盘),10,0);
出击:IF(cross(个股,0),5,0);

三线共振:
INPUT:N(70,1,999),M(5,1,120);
ZSC:=IF(INBLOCK('工程建筑'),"991002$CLOSE",IF(INBLOCK('电力'),"991003$CLOSE",IF(INBLOCK('计算机'),"991004$CLOSE",
IF(INBLOCK('电子信息'),"991006$CLOSE",IF(INBLOCK('房地产'),"991007$CLOSE",IF(INBLOCK('纺织服装'),"991008$CLOSE",
IF(INBLOCK('钢铁'),"991009$CLOSE",IF(INBLOCK('供水供气'),"991010$CLOSE",IF(INBLOCK('化工化纤'),"991011$CLOSE",
IF(INBLOCK('电器'),"991014$CLOSE",IF(INBLOCK('交通设施'),"991016$CLOSE",IF(INBLOCK('银行类'),"991017$CLOSE",
IF(INBLOCK('旅游酒店'),"991018$CLOSE",IF(INBLOCK('煤炭石油'),"991019$CLOSE",IF(INBLOCK('酿酒食品'),"991020$CLOSE",
IF(INBLOCK('农林牧渔'),"991021$CLOSE",IF(INBLOCK('商业连锁'),"991023$CLOSE",IF(INBLOCK('建材'),"991024$CLOSE",
IF(INBLOCK('其他行业'),"991025$CLOSE",IF(INBLOCK('汽车类'),"991026$CLOSE",IF(INBLOCK('机械'),"991027$CLOSE",
IF(INBLOCK('医药'),"991028$CLOSE",IF(INBLOCK('外贸'),"991031$CLOSE",IF(INBLOCK('教育传媒'),"991032$CLOSE",
IF(INBLOCK('仪电仪表'),"991033$CLOSE",IF(INBLOCK('有色金属'),"991034$CLOSE",IF(INBLOCK('造纸印刷'),"991035$CLOSE",
IF(INBLOCK('券商'),"991036$CLOSE",IF(INBLOCK('电力设备'),"991037$CLOSE",IF(INBLOCK('通信'),"991135$CLOSE",
IF(INBLOCK('运输物流'),"991136$CLOSE",IF(INBLOCK('保险'),"991255$CLOSE",0))))))))))))))))))))))))))))))));
ZSH:=IF(INBLOCK('工程建筑'),"991002$HIGH",IF(INBLOCK('电力'),"991003$HIGH",IF(INBLOCK('计算机'),"991004$HIGH",
IF(INBLOCK('电子信息'),"991006$HIGH",IF(INBLOCK('房地产'),"991007$HIGH",IF(INBLOCK('纺织服装'),"991008$HIGH",
IF(INBLOCK('钢铁'),"991009$HIGH",IF(INBLOCK('供水供气'),"991010$HIGH",IF(INBLOCK('化工化纤'),"991011$HIGH",
IF(INBLOCK('电器'),"991014$HIGH",IF(INBLOCK('交通设施'),"991016$HIGH",IF(INBLOCK('银行类'),"991017$HIGH",
IF(INBLOCK('旅游酒店'),"991018$HIGH",IF(INBLOCK('煤炭石油'),"991019$HIGH",IF(INBLOCK('酿酒食品'),"991020$HIGH",
IF(INBLOCK('农林牧渔'),"991021$HIGH",IF(INBLOCK('商业连锁'),"991023$HIGH",IF(INBLOCK('建材'),"991024$HIGH",
IF(INBLOCK('其他行业'),"991025$HIGH",IF(INBLOCK('汽车类'),"991026$HIGH",IF(INBLOCK('机械'),"991027$HIGH",
IF(INBLOCK('医药'),"991028$HIGH",IF(INBLOCK('外贸'),"991031$HIGH",IF(INBLOCK('教育传媒'),"991032$HIGH",
IF(INBLOCK('仪电仪表'),"991033$HIGH",IF(INBLOCK('有色金属'),"991034$HIGH",IF(INBLOCK('造纸印刷'),"991035$HIGH",
IF(INBLOCK('券商'),"991036$HIGH",IF(INBLOCK('电力设备'),"991037$HIGH",IF(INBLOCK('通信'),"991135$HIGH",
IF(INBLOCK('运输物流'),"991136$HIGH",IF(INBLOCK('保险'),"991255$HIGH",0))))))))))))))))))))))))))))))));
ZSL:=IF(INBLOCK('工程建筑'),"991002$LOW",IF(INBLOCK('电力'),"991003$LOW",IF(INBLOCK('计算机'),"991004$LOW",
IF(INBLOCK('电子信息'),"991006$LOW",IF(INBLOCK('房地产'),"991007$LOW",IF(INBLOCK('纺织服装'),"991008$LOW",
IF(INBLOCK('钢铁'),"991009$LOW",IF(INBLOCK('供水供气'),"991010$LOW",IF(INBLOCK('化工化纤'),"991011$LOW",
IF(INBLOCK('电器'),"991014$LOW",IF(INBLOCK('交通设施'),"991016$LOW",IF(INBLOCK('银行类'),"991017$LOW",
IF(INBLOCK('旅游酒店'),"991018$LOW",IF(INBLOCK('煤炭石油'),"991019$LOW",IF(INBLOCK('酿酒食品'),"991020$LOW",
IF(INBLOCK('农林牧渔'),"991021$LOW",IF(INBLOCK('商业连锁'),"991023$LOW",IF(INBLOCK('建材'),"991024$LOW",
IF(INBLOCK('其他行业'),"991025$LOW",IF(INBLOCK('汽车类'),"991026$LOW",IF(INBLOCK('机械'),"991027$LOW",
IF(INBLOCK('医药'),"991028$LOW",IF(INBLOCK('外贸'),"991031$LOW",IF(INBLOCK('教育传媒'),"991032$LOW",
IF(INBLOCK('仪电仪表'),"991033$LOW",IF(INBLOCK('有色金属'),"991034$LOW",IF(INBLOCK('造纸印刷'),"991035$LOW",
IF(INBLOCK('券商'),"991036$LOW",IF(INBLOCK('电力设备'),"991037$LOW",IF(INBLOCK('通信'),"991135$LOW",
IF(INBLOCK('运输物流'),"991136$LOW",IF(INBLOCK('保险'),"991255$LOW",0))))))))))))))))))))))))))))))));
Var12:=(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100;
能量线:SMA(Var12,3,1)*(-1)+100,colorRED,linethick2;
KNX:=SMA(Var12,3,1);
MK:=MA(KNX,M);
买点:IF(KNX>N AND CROSS(MK , KNX),50,0),COLORWHITE,LINETHICK1;
Var13:=(HHV(ZSH,34)-ZSC)/(HHV(ZSH,34)-LLV(ZSL,34))*100;
行业线:SMA(Var13,3,1)*(-1)+100,colorgreen,linethick1;



Var11:=(HHV(INDEXH,34)-INDEXC)/(HHV(INDEXH,34)-LLV(INDEXL,34))*100;
大盘线:SMA(Var11,3,1)*(-1)+100,colorYELLOW,linethick1;
板块:=IFS(INBLOCK('工程建筑'),'工程建筑',IFS(INBLOCK('电力'),'电力',IFS(INBLOCK('计算机'),'计算机',IFS(INBLOCK('电子信息'),'电子信息',
IFS(INBLOCK('房地产'),'房地产',IFS(INBLOCK('纺织服装'),'纺织服装',IFS(INBLOCK('钢铁'),'钢铁',IFS(INBLOCK('供水供气'),'供水供气',
IFS(INBLOCK('化工化纤'),'化工化纤',IFS(INBLOCK('电器'),'电器',IFS(INBLOCK('交通设施'),'交通设施',IFS(INBLOCK('银行类'),'银行类',
IFS(INBLOCK('旅游酒店'),'旅游酒店',IFS(INBLOCK('煤炭石油'),'煤炭石油',IFS(INBLOCK('酿酒食品'),'酿酒食品',IFS(INBLOCK('农林牧渔'),'农林牧渔',
IFS(INBLOCK('商业连锁'),'商业连锁',IFS(INBLOCK('建材'),'建材',IFS(INBLOCK('其他行业'),'其他行业',IFS(INBLOCK('汽车类'),'汽车类',
IFS(INBLOCK('机械'),'机械',IFS(INBLOCK('医药'),'医药',IFS(INBLOCK('外贸'),'外贸',IFS(INBLOCK('教育传媒'),'教育传媒',IFS(INBLOCK('仪电仪表'),'仪电仪表',
IFS(INBLOCK('有色金属'),'有色金属',IFS(INBLOCK('造纸印刷'),'造纸印刷',IFS(INBLOCK('券商'),'券商',IFS(INBLOCK('电力设备'),'电力设备',
IFS(INBLOCK('通信'),'通信',IFS(INBLOCK('运输物流'),'运输物流',IFS(INBLOCK('保险'),'保险',''))))))))))))))))))))))))))))))));
DRAWTEXTABS(10,5,'所属: '+板块+'指数'),COLORYELLOW;

套利盘:
股票平均成交价:AMOUNT/(VOL*100),LINETHICK0;
历史最高成交价:=HHV(HIGH,0);
历史最低成交价:=LLV(LOW,0);
H1:=INDEXA;
大盘短线压力:=(((INDEXC + INDEXL) + INDEXH) / 3);
XHH:=((INDEXA / INDEXV) / 100);
短线支撑:=(IF((INDEXC > 200),大盘短线压力,XHH) - INDEXL);
大盘短线支撑:=(INDEXC - 短线支撑);
VAR193:=(INDEXC + 短线支撑);
DRAWTEXTABS(20,5,'历史最高成交价:'+NUMTOSTRN(历史最高成交价,2)+'元'),Color0000FF;
DRAWTEXTABS(200,5,'历史最低成交价:'+NUMTOSTRN(历史最低成交价,2)+'元'),Color0000FF;
DRAWTEXTABS(370,5,'大盘短线压力: '+NUMTOSTRN(大盘短线压力,2)+'点'),Color0000FF;
DRAWTEXTABS(540,5,'大盘短线支撑: '+NUMTOSTRN(大盘短线支撑,2)+'点'),Color0000FF;
获利盘:WINNER(CLOSE)*100,Color0000FF,LINETHICK2;
套牢盘:100*(1-WINNER(C)),Color00FFFF,LINETHICK2;
50;
F:=COST(5 );J:=COST(95 );
M:=COST(15 );N:=COST(85 );
F1:=(J-F)/(F+J)*100;M1:=(N-M)/(N+M)*100;
成本集中度90﹪:=F1;
成本集中度70﹪:=M1;
浮筹比例:=(winner(c*1.1)-winner(c*0.9))/winner(hhv(h,0))*100;
DRAWTEXTABS(20 ,20,'筹码分析:'),Color00FFFF;
DRAWTEXTABS(80,20,'获利盘:'+获利盘+'% '),LINETHICK1,Color0000FF;
DRAWTEXTABS(180,20,'套牢盘:'+套牢盘+'% '),LINETHICK1,Color00FFFF;
DRAWTEXTABS(280,20,'底仓区成本集中度:'+成本集中度70﹪+'% '),LINETHICK1,ColorFFFF00;
DRAWTEXTABS(435,20,'吸筹拉升区成本集中度:'+成本集中度90﹪+'% '),LINETHICK1,Color00FFFF;
DRAWTEXTABS(620,20,'浮筹比例:'+浮筹比例+'% '),LINETHICK1,ColorFFFF00;
VAR22:=REF(LOW,1);
VAR23:=((SMA(ABS((LOW - VAR22)),3,1) / SMA(MAX((LOW - VAR22),0),3,1)) * 100);
VAR24:=EMA(IF((CLOSE * 1.2),(VAR23 * 10),(VAR23 / 10)),3);
VAR25:=LLV(LOW,38);
VAR26:=HHV(VAR24,38);
VAR27:=IF(LLV(LOW,90),1,0);
VAR28:=((EMA(IF((LOW <= VAR25),((VAR24 + (VAR26 * 2)) / 2),0),3) / 618) * VAR27);
主力秘密筹码:STICKLINE(VAR28,0,VAR28,6,1),colorRED; 
动态底部:EMA(IF(L<= LLV(l,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(l,1),0),20,1),0),3)*10,STICK,COLORYELLOW,LINETHICK2;

{上证平均价:"SH000001$AMOUNT"/"SH000001$VOL"/100,LINETHICK0;
深圳平均价:"SZ399001$AMOUNT"/"SZ399001$VOL"/100,LINETHICK0;
沪深个股平均价:("SH000001$AMOUNT"+"SZ399001$AMOUNT")/("SH000