大智慧指标公式源码概况:

指标类别:大智慧公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、大智慧换手率公式

  

指标意义:  

1、换手率柱可直观了解个股的交易活跃程度,可以代替成交量(vol)指标;  

2、分类换手率柱可直观了解市场和主力的主动买卖程度;  

3、结合DDE、SUP主力数据和《分类换手率》指标,更可明晰各类原始量能(成交量)及其差额的价值。  

=======新建公式,拷贝以下内容======================  

换手率:HSL,VOLSTICK;  

主动买:ACTINVOL/CAPITAL*100,,COLORMAGENTA,NODRAW;  

主力买:LARGEINTRDVOL/CAPITAL*100,COLORRED,NODRAW;  

主动卖:ACTOUTVOL/CAPITAL*100,,COLORBROWN,NODRAW;  

主力卖:LARGEOUTTRDVOL/CAPITAL*100,COLORGREEN,NODRAW;STICKLINE(1,0,1*主动买,2,0),COLORMAGENTA;  

STICKLINE(1,0,主力买,2,0),COLORRED;STICKLINE(1,0,(1*主动卖),1,0),COLORBROWN;  

STICKLINE(1,0,(1*主力卖),1,0),COLORGREEN;主力净买:(LARGEINTRDVOL-LARGEOUTTRDVOL)/CAPITAL*100,,COLORYELLOW;  

半换手率:HSL/2,COLORBLUE,CIRCLEDOT;  

CC:=VOL/CAPITAL,VOLSTICK;  

AA:=Cc-MA(CC,99),VOLSTICK;  

VDIFF:(EMA(CC,9)-EMA(CC,26));  

VDEA:EMA(VDIFF,13);  

VMACD:(VDIFF-VDEA)*1,COLORSTICK,LINETHICK3;  

成交:=vol,COLORFFFF00,LINETHICK0;  

bb:=CAPITAL;//有人说这个[流通盘大小]是未来函数  

换手:=成交*100/bb,LINETHICK0;  

今日换手%:换手,LINETHICK0;  

hs:=求和(成交量,0)/流通盘大小,LINETHICK0;  

换手次数:=向下舍入(hs)LINETHICK0;  

bbb:=条件函数(换手次数>0,换手次数,0);  

bbb2:=条件函数(bbb-向前引用(bbb,1)>0,bbb,0);  

距上次完全换手天:上一次条件成立位置(bbb2),LINETHICK0,COLORGREEN;  

平均换手天:向下舍入((数据位置-距上次完全换手天)/换手次数),COLORCYAN,LINETHICK0;  

bbb3:=数字转化为字符串(向前引用(bbb,距上次完全换手天),0);  

显示文字(bbb2,VMACD,'次换手'),COLORffff,ALIGN1,PXUP100;  

DRAWNUMBER(bbb2,VMACD,换手次数,0),colorffff,ALIGN2,PXUP100;

image.png

二、大智慧换手率指标

  

获利筹码:EMA(WINNER(C)*70,5),Color00ffff,LINETHICK3;  

亏损筹码:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),Colorff0000;  

主力控筹:If(获利筹码>亏损筹码,获利筹码*2,获利筹  

码),colorff00ff,LINETHICK3;  

AI:=AMOUNT/VOL/100;  

C0:=REF(C,2)*0.865;  

C1:=REF(C,13)*0.772;  

DSY:=100*vol/CApitAl;  

抄底:If((C-MIN(C0,C1))/C<0.1ANDSUM(DSY,5)/5<1.8,100,  

0),ColorFF00ff,COLOR3D;  

stickline(抄底,0,80,4,0),ColorFF00FF;  

动态底部:EMA(IF(L<=  

LLV(l,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(l,1),0),30,1),0),3)  

*10,COLORYELLOW,LINETHICK2,COLOR3D;{STICK}  

SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/  

(HHV(AMOUNT,20)/HHV(C,20))*100);  

STICKLINE(((CLOSE>0)ANDday=2),0,120,10,1),colorFFFFFF;  

STICKLINE(((SAT<=5)ANDday=2),20,(100+SAT),8,0),colorFFFFFF;  

STICKLINE((((SAT>5)AND(SAT<=20))ANDday=2),20,(80+  

SAT),10,0),colorCCFF88;  

STICKLINE((((SAT>20)AND(SAT<=40))ANDday=2),20,(80+  

SAT),8,0),colorFF00FF;  

STICKLINE(((SAT>40)ANDday=2),20,(60+SAT),8,0),color0000FF;  

主力筹码:EMA(WINNER(CLOSE)*70,10),color0000ff,LINETHICK2;  

散户筹  

码:EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,10),colorffff00;  

FILLRGN(获利筹码,主力筹码,获利筹码>=主力筹码,RGB(255,0,0),获利筹码<主  

力筹码,RGB(0,250,0));  

FILLRGN(亏损筹码,亏损筹码,亏损筹码>=散户筹码,RGB(0,255,0));  

VERTLINE(CROSS(主力筹码,散户筹码),2);  

DRAWICON(CROSS(主力筹码,散户筹码),亏损筹码,1);  

N1:=5;N2:=55;  

总手:VOL;  

MA5:MA(VOL,N1),coloryellow,LINETHICK2;  

MA55:MA(VOL,N2),colormagenta,LINETHICK2;  

DRAWICON(CROSS(MA5,MA55),V,2);  

SELECTCROSS(MA5,MA55);  

量比:(VOL*(TRADETIME+1))/(FIVEDAYVOL/5*(FROMOPEN+1));  

换手:VOL/CAPITAL*100;  

换5:MA(换手,5);  

换和10:SUM(换手,10);  

换20:=MA(换手,20);  

红色柱子是当天的换手率,黄色线是10天平均换手率,粉红色线是20天平均换手率  

VOLUME:SUM(100*V/CAPITAL,1),COLORSTICK;  

换手1天均线:MA(VOLUME,1);  

换手10天均线:MA(VOLUME,10);  

换手20天均线:MA(VOLUME,20);  

DRAWTEXTREL(4,5,'流通A股:'+NUMTOSTRN(FINANCE2(7),0)+'万'+'市净  

率:'+NUMTOSTRN((DYNAINFO(7)/FINANCE2(34)),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)+'%'),linethick1,colorWhite;  

DRAWTEXTREL(22,40,'工作线'),linethick5,colorRed;  

DRAWTEXTREL(180,50,'黄点工作线'),linethick1,colorYellow;  

DRAWTEXTREL(260,50,'多空停损点'),linethick1,colorMagenta;  

DRAWTEXTREL(340,50,'线上工作|线下休息'),linethick1,colorWhite;  

DRAWTEXTREL(470,50,'最低点靠近工作线低吸'),linethick1,colorYellow;  

DRAWTEXTREL(210,100,STKLABEL+''+STKNAME),linethick5,ColorFFFF80;  

DRAWTEXTREL(6,150,'空心:阳线|实体:阴线'),linethick2,colorWhite;  

DRAWTEXTREL(10,200,'线上阴线买|买错也要买'),linethick1,colorRed;  

DRAWTEXTREL(10,240,'线下阳线卖|卖错也要卖'),linethick1,colorGreen;  

七天线:MA(C,7),colorgray;  

工作线:(EMA(C,17)),POINTDOT,linethick4,colorYellow;  

生命线:(MA(C,25)),linethick2,colorMagenta;  

不惑线:(MA(C,43)),colorCyan;  

姊妹线:(EMA(C,50)),CIRCLEDOT,colorWhite;  

九号线:(MA(C,99)),linethick1,Color0099FF;  

{卖线:EMA(SLOPE(C,21)*21+C,42),COLORRED,LINETHICK2;}  

A2:="[email=cpzb@cp]cpzb@cp[/email]";  

STICKLINE((A2>=8),H,L,0.8,1),colorGreen;  

STICKLINE(((A2>=8)AND(C>O)),O,C,8,1),colorGreen;  

STICKLINE(((A2>=8)AND(C<O)),C,O,8,0),colorGreen;  

STICKLINE(((A2>0)AND(A2<=2)),H,L,0.8,1),colorRed;  

STICKLINE((((A2>0)AND(A2<=2))AND(C>O)),O,C,8,1),colorRed;  

STICKLINE((((A2>0)AND(A2<=2))AND(C<O)),C,O,8,0),colorRed;  

STICKLINE(((C>=工作线)AND(C>=O)),H,L,0.5,1),colorRed;  

STICKLINE(((C>=工作线)AND(C>=O)),O,C,8,1),colorRed;  

STICKLINE(((C>=工作线)AND(C<=O)),H,L,0.5,0),colorRed;  

STICKLINE(((C>=工作线)AND(C<=O)),O,C,8,0),colorRed;  

STICKLINE(((C<工作线)AND(C>=O)),H,L,0.5,1),colorGreen;  

STICKLINE(((C<工作线)AND(C>=O)),O,C,8,1),colorGreen;  

STICKLINE(((C<工作线)AND(C<=O)),H,L,0.5,0),colorGreen;  

STICKLINE(((C<工作线)AND(C<=O)),O,C,8,0),colorGreen;  

DRAWTEXT((A2=1),L,' ̄'),linethick2,ALIGN1,Color208FFF;  

DRAWTEXT((A2=1),L,'B'),linethick5,ALIGN1,colorYellow;  

DRAWTEXT((A2=9),H,' ̄'),linethick2,ALIGN1,colorCyan;  

DRAWTEXT((A2=9),H+0.38,'S'),linethick5,colorCyan;  

STICKLINE((A2=9),C,O,0,0),colorWhite;  

STICKLINE((A2=9),C,O,8,0),colorWhite;  

STICKLINE((A2=9),C,O,7,0),ColorDDDDDD;  

STICKLINE((A2=9),C,O,6,0),ColorCCCCCC;  

STICKLINE((A2=9),C,O,5,0),colorWhite;  

STICKLINE((A2=9),C,O,4,0),ColorEEEEEE;  

STICKLINE((A2=9),C,O,3,0),ColorDDDDDD;  

STICKLINE((A2=9),C,O,2,0),ColorCCCCCC;  

STICKLINE((A2=9),C,O,1,0),colorWhite;  

STICKLINE((A2=1),C,O,0,0),ColorFFBBFF;  

STICKLINE((A2=1),C,O,8,0),colorMagenta;  

STICKLINE((A2=1),C,O,7,0),ColorFF22FF;  

STICKLINE((A2=1),C,O,6,0),ColorFF44FF;  

STICKLINE((A2=1),C,O,5,0),ColorFF66FF;  

STICKLINE((A2=1),C,O,4,0),ColorFF88FF;  

STICKLINE((A2=1),C,O,3,0),ColorFF99FF;  

STICKLINE((A2=1),C,O,2,0),ColorFFAAFF;  

STICKLINE((A2=1),C,O,1,0),ColorFFBBFF;  

A3:=EMA((((SLOPE(C,21))*20)+C),68);  

A4:=EMA(C,10);  

A5:=REF(C,2);  

A6:=((SMA((MAX((C-A5),0)),6,1))/(SMA(ABS((C-A5)),6,1)))*100;  

A7:=IF(((A6<(REF(A6,1)))AND(A6>79)),A6,0);  

DRAWTEXT((CROSS(A4,A3)),L,'△'),linethick2,ALIGN1,colorYellow;  

DRAWTEXT(A7,H,'○'),linethick3,colorGreen;  

A8:=LLV(L,21);  

A9:=HHV(H,21);  

A10:=EMA((((CLOSE-A8)/(A9-A8))*100),5);  

A11:=EMA((((CLOSE-A8)/(A9-A8))*50),13);  

A12:=EMA(((0.667*(REF(A10,1)))+(0.333*A10)),2);  

A13:=LLV(L,55);  

A14:=HHV(H,34);  

A15:=EMA((((C-A13)/(A14-A13))*100),3);  

A16:=(A11+A15)/2;  

A17:=EMA(((0.667*(REF(A15,1)))+(0.333*A10)),2);  

A18:=EMA(A16,5);  

A19:=EMA(((0.667*(REF(A18,1)))+(0.333*A18)),2);  

A20:=CROSS(A10,A11);  

A21:=(CROSS(A10,A19))AND(A19<30);  

A22:=A21*0.6;  

DRAWTEXT((A22=0.6),L,'◇'),linethick4,ALIGN1,colorYellow;  

DRAWTEXT((A20=1),L,'◇'),linethick4,ALIGN1,colorWhite;  

A23:=((C+L)+H)/3;  

A24:=EMA(A23,6);  

A25:=EMA(A24,5);  

A26:=CROSS(A24,A25);  

DRAWicon(A26,(LOW/1.005),3),linethick2,ALIGN1,colorMagenta;  

STICKLINE(((C>=工作线)AND(C>=O)),H,L,0.5,1),colorRed;  

STICKLINE(((C>=工作线)AND(C>=O)),O,C,8,1),colorRed;  

STICKLINE(((C>=工作线)AND(C<=O)),H,L,0.5,0),colorRed;  

STICKLINE(((C>=工作线)AND(C<=O)),O,C,8,0),colorRed;  

STICKLINE(((C<工作线)AND(C>=O)),H,L,0.5,1),colorGreen;  

STICKLINE(((C<工作线)AND(C>=O)),O,C,8,1),colorGreen;  

STICKLINE(((C<工作线)AND(C<=O)),H,L,0.5,0),colorGreen;  

STICKLINE(((C<工作线)AND(C<=O)),O,C,8,0),colorGreen;  

[源码注释]大智慧公式动态翻译结果

CYSMAX赋值:1日前的收盘价

VA1赋值:(((收盘价-CYSMAX)和0的较大值的7日[1日权重]移动平均 / (收盘价-CYSMAX)的绝对值的7日[1日权重]移动平均) * 100)

VA2赋值:(((收盘价-CYSMAX)和0的较大值的13日[1日权重]移动平均 / (收盘价-CYSMAX)的绝对值的13日[1日权重]移动平均) * 100)

VA3赋值:收盘价的有效数据周期数

输出XG:(((VA1 < 20) AND (VA2 < 25)) AND (VA3 > 50))

每日公式解答:

  

公式编写要求:  

选出存在如下五根K线组合的票:四天的收盘价开盘价均高于第一天的收盘价。  

公式编写方法:  

x:=min(c,o);  

ref(c>o,4)andx>ref(c,4)andref(x,1)>ref(c,4)andref(x,2)>ref(c,4)andref(x,3)>ref(c,4);

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。