大智慧指标公式源码概况:
指标类别:大智慧公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
公式解读:
二、大智慧换手率指标
获利: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
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);