通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
HH:=IF(C REF(C,1)ANDH REF(L,1),REF(L,1),H);
LL:=IF(C REF(C,1)ANDL REF(H,1),REF(H,1),L);
穿越筹码:=(WINNER(HH)-WINNER(LL))*100,COLORBLUE;
STICKLINE(1,穿越筹码/2,穿越筹码/2,2.5,0),COLORBLUE;
STICKLINE(1,穿越筹码/2,穿越筹码/2,3.2,0),COLOR990000;
STICKLINE(1,穿越筹码/2,-穿越筹码/2,2.5,0),COLORCC0000;
STICKLINE(1,穿越筹码/2,-穿越筹码/2,1.9,0),COLORFF4400;
STICKLINE(1,穿越筹码/2,-穿越筹码/2,1.4,0),COLORFF8800;
STICKLINE(1,穿越筹码/2,-穿越筹码/2,0.4,0),COLORFFCC00;
获套利牢出割货肉码码
:(PWINNER(1,LL)-
:(WINNER(HH)-
WINNER(LL))*100,POINTDOT,COLOR000099;
PWINNER(1,HH))*100,POINTDOT,COLORGREEN;
STICKLINE(获利出货码 0,0,获利出货码,2.5,0),COLORRED;
STICKLINE(获利出货码 0,0,获利出货码,2.8,0)COLOR000066;
STICKLINE(获利出货码 0,0,获利出货码,2.3,0)COLOR000077;
STICKLINE(获利出货码 0,0,获利出货码,1.7,0)COLOR000099;
STICKLINE(获利出货码 0,0,获利出货码,1.2,0)COLOR0000CC;
STICKLINE(获利出货码 0,0,获利出货码,0.1,0)COLORCC66FF;
STICKLINE(套牢割肉码 0,0,-套牢割肉码,2.5,0),COLORGREEN;
STICKLINE(套牢割肉码 0,0,-套牢割肉码,3.2,0),COLOR007700;
STICKLINE(套牢割肉码 0,0,-套牢割肉码,2.8,0),COLOR009900;
STICKLINE(套牢割肉码 0,0,-套牢割肉码,2.1,0),COLOR00BB00;
STICKLINE(套牢割肉码 0,0,-套牢割肉码,1.6,0),COLOR00DD00;
STICKLINE(套牢割肉码 0,0,-套牢割肉码,0.4,0),COLOR00FF00;
A:=90+(100-90)/2;
B:=(100-90)/2;
CC:=COST(A);
DD:=COST(B);
CMJZD:=(CC-DD)/(CC+DD)*100/2;
筹码集中度:MA(CMJZD,3),COLORGRAY;
筹码集中度升:IF(筹码集中度 =REF(筹码集中度,3),筹码集中
度,DRAWNULL),COLORRED,LINETHICK2;
筹码集中度降:IF(筹码集中度 REF(筹码集中度,3),筹码集中度,DRAWNULL),COLORFAABEC,LINETHICK2;
比例变化:(筹码集中度-REF(筹码集中度,1))/REF(筹码集中度,1)*100,COLORYELLOW,LINETHICK2;
拉高加仓:IF(筹码集中度 REF(筹码集中度,3)AND
MA(C,20) REF(MA(C,20),3),1,0),COLOR0095FF;
拉高加仓1:STICKLINE(拉高加仓 0,0,筹码集中度
*0.33,2.7,0),COLOR0095FF;
STICKLINE(
STICKLINE(
STICKLINE(
STICKLINE(
拉拉拉拉高高高高加加加加仓仓仓仓
0,0,
0,0,
0,0,
0,0,
筹筹筹筹码码码码集集集集中中中中度度度度
*0.33,2.1,0),COLOR0064FF;
*0.33,1.5,0),COLOR0093FF;
*0.33,0.9,0),COLOR00C2FF;
*0.33,0.3,0),COLOR00FFFF;
下跌加仓:IF(筹码集中度 REF(筹码集中度,3)AND
MA(C,20) REF(MA(C,20),3),1,0),COLORFF0066;
下跌加仓1:STICKLINE(下跌加仓 0,0,筹码集中度
*0.33,2.7,0),COLORFF0033;
STICKLINE(
STICKLINE(
STICKLINE(
下下下跌跌跌加加加仓仓仓
0,0,
0,0,
0,0,
筹筹筹码码码集集集中中中度度度
*0.33,2.7,0),COLORFF0066;
*0.33,1.5,0),COLORFF0099;
*0.33,0.9,0),COLORFF00CC;
STICKLINE(
底:0;
线1:10,COLORLIBLUE,POINTDOT;
线2:20,COLORFF00FF,POINTDOT;
VAR02:=LLV(LOW,10);
VAR03:=HHV(HIGH,25);
支撑线:EMA((CLOSE-VAR02)/(VAR03-
VAR02)*4,4),COLORBLUE;
VAR01:=支撑线 REF(支撑线,1)AND支撑线
MA3:=MA(C,3);
VAR04:=HIGH MA3*1.1;
买进:FILTER(CROSS(C,MA3)AND
VAR01,5),STICK,LINETHICK3,COLOR0099FF;
DRAWICON(FILTER(CROSS(C,MA3)ANDVAR01,5),10,35);
卖出:FILTER(VAR04AND支撑线 3,10),STICK,LINETHICK3,COLORFFAA66;
DRAWICON(FILTER(VAR04AND支撑线 3,10),1.5,36);
VARF:=TROUGHBARS(3,15,1)
庄筹:=WINNER(CLOSE)*100;
筹码集中度:EMA(庄筹,20),COLORRED;
筹码集中警戒线:EMA(筹码集中度,5),COLORyellow;
筹码集中生命线:EMA(筹码集中警戒线,5),COLORgreen,linethick1;
STICKLINE(筹码集中度 筹码集中警戒线,筹码集中度,筹码集中警戒线,2,0),COLORred;
STICKLINE(筹码集中度 筹码集中警戒线,筹码集中度,筹码集中警戒线,2,0),COLORgreen;
STICKLINE(筹码集中警戒线 筹码集中生命线,筹码集中警戒线,筹码集中生命线,2,0),COLORff00ff;
STICKLINE(筹码集中警戒线 筹码集中生命线,筹码集中警戒线,筹码集中生命线,2,0),COLORffff00;
A:=CROSS(筹码集中度,筹码集中警戒线);
B:=CROSS(筹码集中警戒线,筹码集中度);
DRAWICON(A,筹码集中度-0.1,10);
DRAWICON(B,筹码集中度+0.1,12);
操作指标公式
Var1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
Var2:=SMA(Var1,3,1);
Var3:=SMA(Var2,3,1);
Var4:=3*Var2-2*Var3;
Var5:=LLV(LOW,5);
Var6:=HHV(HIGH,5);
Var7:=EMA((CLOSE-Var5)/(Var6-Var5)*100,4)*2;
Var8:=EMA(0.667*REF(Var7,1)+0.333*Var7,2);
Var9:=3*Var7-2*Var8;
VarA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VarB:=POW(MA(LOW,5),2)+MA(LOW,5);
VarC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VarD:=(VarA-LLV(VarB,64))/(HHV(VarC,64)-LLV(VarB,64))*150+65-10;
VarE:=SMA(VarD,3,1)*1.5-100;
VarF:=SMA(VarE,3,1);
Var10:=3*VarE-2*VarF;
Var11:=(HIGH+LOW+CLOSE*2)/4;
Var12:=EMA(Var11,13);
Var13:=STD(Var11,13);
Var14:=(Var11-Var12)*100/Var13;
Var15:=EMA(Var14,5);
Var17:=EMA(Var15,13)+200-100;
Var18:=EMA(Var17,10);
Var19:=3*Var17-2*Var18;
Var1A:=Var2+Var7+VarE+Var17;
Var1B:=Var3+Var8+VarF+Var18;
Var1C:=Var4+Var9+Var10+Var19;
Var1D:=(HIGH+LOW+CLOSE)/3;
Var20:=(Var1D-MA(Var1D,34))/(0.015*AVEDEV(Var1D,34));
Var22:=(HIGH+LOW+CLOSE+Var1D)/4;
Var23:=EMA(Var22,24);
Var24:=STD(Var22,24);
Var25:=(Var22-Var23)/Var24*100;
Var26:=(Var1D-MA(Var1D,24))/(0.015*AVEDEV(Var1D,24));
Var27:=EMA(Var25,5);
Var2A:=((Var27+Var26+Var20)/3+165)/4;
Var2B:=(EMA(EMA(EMA(Var2A,15),10),5)-25)*2;
Var2C:=(Var1A+Var1B+Var1C*30)/32/5-15;
Var2D:=EMA(Var2C,7);
Var2E:=(Var2A+Var2C)/2/1.1;
超短:EMA(Var2E,3),colorred;
短线:EMA(超短,5),colorwhite;
主力持
仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),colorff0
0ff
,linethick2;
指数趋
势:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3)
,COLORFFAA66,LINETHICK3;
强弱分界:80,coloryellow;
主力筹码集中度:WINNER(C)*100,COLORRED,linethick2;
散筹筹码集中
度:(WINNER(C*1.1)-WINNER(C*0.9))*100,colorgreen,linethick2
主力持仓附图
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,56),1,0);
VAR8:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=EMA(CLOSE,5);
VAR10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10);
VAR11:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*(-1);
VAR12:=EMA(CLOSE,5)*(-1);
STICKLINE(VAR12 REF(VAR12,1),0,VAR12*0.08,4,1),COLOR10E410;
减仓:IF(VAR12 REF(VAR12,1),VAR12,0),COLOR10E410,LINETHICK1,NODRAW;
STICKLINE(VAR9 REF(VAR9,1),0,VAR9*0.08,4,1),COLOR1010FF;
增仓:IF(VAR9 REF(VAR9,1),VAR9*0.2,0),COLOR1010FF,LINETHICK1;
STICKLINE(VAR8 REF(VAR8,1),0,VAR8,4,1),COLOR10FFFF,LINETHICK1;
主力进场:IF(VAR8 REF(VAR8,1),VAR8*8,0),COLOR10FFFF,LINETHICK1,NODRAW;
STICKLINE(VAR11 REF(VAR11,1),0,VAR11,4,1),COLORFFF810;
洗盘:IF(VAR11 REF(VAR11,1),VAR11*8,0),COLORFFF810,LINETHICK1,NODRAW;
主力持仓:LOW,COLORFF10FF,LINETHICK1,NODRAW;
增减力度:VAR10*5,COLORWHITE,LINETHICK1;
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
XL3:=REF(XL1,1) XL2ANDREF(XL1,1) XL1ANDREF(XL1,1) REF(XL1,2);
STICKLINE(XL3,0,VAR8*3,4,0),COLOR006EFF;
DRAWTEXT(XL3,VAR8*2, 买 ),COLORMAGENTA;
↑买:DRAWICON(XL3,VAR8*3.5,1),COLORRED;
XL4:=CROSS(0,增减力度);
DRAWTEXT(XL4,VAR8*3, 加仓 ),COLORYELLOW;
将五个(多空、主力、大户、中户、)合在一起了
V1:=DMA((((HIGH+LOW)+(CLOSE*2))/4),0.9);
HY1:=REF(EMA(V1,3),1);
多空:=(MA((CLOSE-HY1)*10,2))*0.1;
操盘4:STICKLINE(多空趋势 =0AND多空趋势 =REF(多空趋势,1),6,6+多空趋
势,1,0),COLORYELLOW;
减仓4:STICKLINE(多空趋势 =0AND多空趋势 REF(多空趋势,1),6,6+多空趋
势,1,0),COLORYELLOW;
反弹4:STICKLINE(多空趋势 0AND多空趋势 =REF(多空趋势,1),6,6+多空趋
势,1,0),COLORGREEN;
寻底4:STICKLINE(多空趋势 0AND多空趋势 REF(多空趋势,1),6,6+多空趋
势,1,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(多空趋势 =0,6,6.3), 多空 ),COLORWHITE;
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
主力能量:(主力-均量),NODRAW;
大户能量:(大户-均量),NODRAW;
DRAWTEXT(FILTER(VARF=1,3),5, 庄影 ),COLORYELLOW;
CB1:=COST(100-10/3);
CB2:=COST(100-14/3);
CB3:=COST(100-18/3);
CB4:=COST(100-22/3);
CB5:=COST(100-26/3);
CB6:=COST(100-30/3);
CB7:=COST(100-34/3);
CB8:=COST(100-38/3);
CB9:=COST(100-42/3);
SCBD:=MAX(CB1,MAX(CB2,MAX(CB3,MAX(CB4,MAX(CB5,MAX(CB6,MAX(CB7,MAX(CB8,C
B9))))))));
SCBX:=MIN(CB1,MIN(CB2,MIN(CB3,MIN(CB4,MIN(CB5,MIN(CB6,MIN(CB7,MIN(CB8,CB9)
)))))));
SCBJ:=(CB1+CB2+CB3+CB4+CB5+CB6+CB7+CB8+CB9)/9;
SCB:(((CB1+CB2+CB3)/3+2*(CB1+CB2+CB3+CB4+CB5+CB6)/6)/3+3*SCBJ)/4;
CB11:=COST(100-(100-10/3));
CB12:=COST(100-(100-14/3));
CB13:=COST(100-(100-18/3));
CB14:=COST(100-(100-22/3));
CB15:=COST(100-(100-26/3));
CB16:=COST(100-(100-30/3));
CB17:=COST(100-(100-34/3));
CB18:=COST(100-(100-38/3));
CB19:=COST(100-(100-42/3));
XCBD:=MAX(CB11,MAX(CB12,MAX(CB13,MAX(CB14,MAX(CB15,MAX(CB16,MAX(CB17,MA
X(CB18,CB19))))))));
XCBX:=MIN(CB11,MIN(CB12,MIN(CB13,MIN(CB14,MIN(CB15,MIN(CB16,MIN(CB17,MIN(
CB18,CB19))))))));
XCBJ:=(CB11+CB12+CB13+CB14+CB15+CB16+CB17+CB18+CB19)/9;
XCB:(((CB11+CB12+CB13)/3+2*(CB11+CB12+CB13+CB14+CB15+CB16)/6)/3+3*XCBJ)
/4;
LC:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
获利筹码:=CONST(WINNER(C)*100);
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
饱和:=(IF(SAT 1,1,SAT)*100);
WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
活跃:=(WRSI-WR10);
活跃度比:=IF(活跃 =0,(活跃+100)/2,100-ABS((活跃-100)/2));
DRAWTEXT_FIX(ISLASTBAR=1,0.83,0.25,1,STRCAT(STRCAT( 量能饱和: ,CON2STR(量
能饱和,2)), % )),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR=1,0.83,0.52,1,STRCAT(STRCAT( 活跃度比: ,CON2STR(活
跃度比,2)), % )),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR=1,0.83,0.75,1,STRCAT(STRCAT( 获利筹码: ,CON2STR(获
利筹码,2)), % )),COLORYELLOW;
DRAWRECTREL(950,470,630,365,RGB(150,10,250));
DRAWRECTREL(950,710,630,610,RGB(150,10,250));
DRAWRECTREL(950,855,630,955,RGB(150,10,250));
DRAWRECTREL(950,470,630+CONST(量能饱和*(950-630)/100),365,RGB(0,100,0));
DRAWRECTREL(790,470,790,365,RGB(0,0,10));
DRAWRECTREL(950,710,630+CONST(活跃度比*(950-630)/100),610,RGB(0,100,0));
DRAWRECTREL(790,710,790,610,RGB(0,0,10));
DRAWRECTREL(950,855,630+CONST(获利筹码*(950-630)/100),955,RGB(0,100,0));
DRAWRECTREL(790,855,790,955,RGB(0,0,10));
总涨幅周期:=350;
高点位:=REFDATE(HHV(H,总涨幅周期),DATE);
低点位:=REFDATE(LLV(L,总涨幅周期),DATE);
低位价:=REF(L,BARSLAST(低点位=L)),COLORGREEN,NODRAW;
高位价:=REF(H,BARSLAST(高点位=H)),COLORRED,NODRAW;
曾最大涨幅:=(高位价-低位价)/低位价*100;
当前涨幅:=(C-低位价)/低位价*100;
ZFA:=CON2STR(CONST(曾最大涨幅),2);
ZFB:=CON2STR(CONST(当前涨幅),2);
ZFC:=STRCAT( 【曾最大涨幅】: ,ZFA);
ZFD:=STRCAT(ZFC, %
ZFE:=STRCAT(ZFD, 【当前总涨幅】:
ZFF:=STRCAT(ZFE,ZFB);
ZFG:=STRCAT(ZFF, %
{DRAWTEXT_FIX(ISLASTBAR,0.73,0.345,0, ),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.73,0.345,0,ZFG),COLORYELLOW};
AA1X:=SUM(IF(CLOSE REF(CLOSE,1),VOL/CAPITAL*100,IF(CLOSE REF(CLOSE,1),-
VOL/CAPITAL*100,0)),0)};
成交额:=V*C/100,NODRAW;{万元}
AA2X:=SUM((IF(((成交额/8 20)AND(CLOSE (REF(CLOSE,1)))),成交额,0)),0);
AA3X:=SUM((IF(((成交额/8 20)AND(CLOSE (REF(CLOSE,1)))),成交额,0)),0);
AA4X:=SUM((IF(((成交额/8 20)AND(CLOSE (REF(CLOSE,1)))),成交额,0)),0);
AA5X:=SUM((IF(((成交额/8 20)AND(CLOSE (REF(CLOSE,1)))),成交额,0)),0);
AA6X:=((AA2X+AA3X)+AA4X)+AA5X;
DD1X:=1;
AAA1:=STRCAT(STRCAT( 持有 ,CON2STR((100*AA2X)/AA6X,0)), %
AAA2:=STRCAT(STRCAT( 散户持有 ,CON2STR((100*AA3X)/AA6X,0)), %
DRAWTEXT_FIX(1,0.83,0,1, 《★筹码分析★》 ),COLORRED;
DRAWTEXT_FIX(DD1X=1,0.63,0,0,AAA1),COLORMAGENTA;
DRAWTEXT_FIX(DD1X=1,0.89,0,0,AAA2),COLORGREEN;
VARA5:=CONST(AA2X/AA6X*100);
DRAWRECTREL(950,220,630,115,RGB(150,10,250));
DRAWRECTREL(950,220,630+CONST(VARA5*(950-630)/100),115,RGB(0,100,0));
DRAWRECTREL(790,220,790,115,RGB(0,0,10));
MA3赋值:收盘价的3日简单移动平均
YTSL赋值:(3*收盘价+最低价+开盘价+最高价)/6
输出辰星线:(20*YTSL+19*1日前的YTSL+18*2日前的YTSL+17*3日前的YTSL+16*4日前的YTSL+15*5日前的YTSL+14*6日前的YTSL+13*7日前的YTSL+12*8日前的YTSL+11*9日前的YTSL+10*10日前的YTSL+9*11日前的YTSL+8*12日前的YTSL+7*13日前的YTSL+6*14日前的YTSL+5*15日前的YTSL+4*16日前的YTSL+3*17日前的YTSL+2*18日前的YTSL+20日前的YTSL)/211,COLORFFFF00
输出牵牛线:收盘价的26日简单移动平均,COLOR669933
输出等待:如果MA3 =辰星线,返回牵牛线,否则返回无效数,画绿色,线宽为2
中轨赋值:收盘价的26日简单移动平均
上轨赋值:中轨+收盘价的20日估算标准差
下轨赋值:中轨-收盘价的20日估算标准差
输出上极限:(中轨+2*收盘价的20日估算标准差),COLORFF937F,线宽为2
输出下极限:(中轨-2*收盘价的20日估算标准差),画白色,线宽为2
急速超跌赋值:(收盘价-收盘价的34日简单移动平均)/收盘价的34日简单移动平均*100 -14
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日前的收盘价)
输出持股:如果VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARC,返回辰星线,否则返回无效数,画红色,POINTDOT,线宽为5
VARD赋值:(收盘价 1日前的收盘价 AND 收盘价 2日前的收盘价)
VARE赋值:(1日前的VARD AND 收盘价 =1日前的收盘价 AND 收盘价 =2日前的收盘价)
VARF赋值:(1日前的VARE AND 收盘价 =1日前的收盘价 AND 收盘价 =2日前的收盘价)
VAR10赋值:(1日前的VARF 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日前的收盘价)
输出持币:如果VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18,返回辰星线,否则返回无效数,画淡灰色,POINTDOT,线宽为5
VAR19赋值:((1日前的VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18) AND VAR1)
VAR1A赋值:((1日前的VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARC) AND VARD)
当满足条件VAR19时,在最低价位置书写文字,COLOR33FFCC
当满足条件VAR1A时,在最高价+0.1位置书写文字,COLORFF99FF
获利筹码:EMA(WINNER(C)*70,5),COLORRED;
亏损筹码:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),COLORF0FF00;
STICKLINE(亏损筹码 0,0,亏损筹码,2.5,0),COLOR66FF00;
主⼒控筹:IF(获利筹码 亏损筹码,获利筹码*2,获利筹码),,COLORRED;
STICKLINE(主⼒控筹 0,0,主⼒控筹,2.5,0),COLORFFFFFF;
STICKLINE(获利筹码 0,0,获利筹码,2.5,0),COLORFFFFFF;
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),COLOR00FF00;
STICKLINE(抄底,0,30,4,0),,COLORFF00FC;
动态底部:EMA(IF(L =LLV(L,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(LREF(L,1),0),30,1),0),3)*10,STICK,COLORYELLOW,LINETHICK2;
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100 100,100,
(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
主⼒筹码:EMA(WINNER(CLOSE)*70,10),COLORWHITE;
散户筹码:EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,10),COLOR00FF00;
{STICKLINE(主⼒筹码 散户筹码,主⼒筹码,散户筹码,6,0),COLORRED;
STICKLINE(主⼒筹码 散户筹码,主⼒筹码,散户筹码,6,0),COLOR00FF00;};
ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主⼒筹码估算}
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//散户筹码估算}
ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码⽐率}
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主⼒控盘筹码⽐率}
ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}
ZZNTS:=BARSLAST(ZSHTL 90ANDREF(ZSHTL,1) {//⾛⽜天数}
ZSHJJ:=EMA(ZSHTL,89);{//散户警戒}
ZZLJJ:=EMA(ZZLKP,89);{//主⼒警戒}
ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资⾦流⼊强度}
SH8:=EMA(ZSHTL,8);
DKB:=IF(ZZLKP-REF(ZZLKP,1) ZSHTL-REF(ZSHTL,1),1,0);
{散户套牢筹码}
STICKLINE(C 0,ZSHTL,ZZLKP,0,0),COLOREEEEEE;
{散户筹码警戒}
STICKLINE(ZSHJJ REF(ZSHJJ,1),ZSHTL,ZSHJJ,1,0),COLORAAAAAA;
{主⼒控盘筹码}
STICKLINE(C 0,ZZLKP,0,0,0),COLORBLUE;
{铸顶风险区}
STICKLINE(ZZLKP 75,ZZLKP,0,2,0),COLORFFFFFF;
{顶部:(ZZLKP 75),COLORFFFFFF;}
{主⼒筹码警戒}
STICKLINE(ZZLJJ REF(ZZLJJ,1),ZZLKP,ZZLJJ,4,0),COLORRED;
{筑底散兵坑}
STICKLINE(ZSHTL =90,ZZLKP,0,5,0),COLOR66FFCC;
{底部:(ZSHTL =90),COLOR66FFCC;}
{筹码总量上升}
IF(ZCMZL,ZCMZL REF(ZCMZL,1),DRAWNULL),COLOR0066FF,LINETHICK1;
{增量资⾦};
{//------【数值显⽰】}
强分界:80,COLORYELLOW;
主持仓:=EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)),9);
庄筹集中度:=EMA(主持仓,1);
庄筹集中监控线:EMA(庄筹集中度,1),COLORRED,LINETHICK3;
庄筹集中警戒线:=EMA(庄筹集中监控线,3);
庄筹集中⽣命线:EMA(庄筹集中警戒线,20),COLORFF00C5,LINETHICK3;
弱分界:20,COLORYELLOW;
VAR1:=(HIGH+LOW+CLOSE)/3;
短线:EMA((HHV(VAR1,15)-VAR1)/(HHV(VAR1,15)-
LLV(VAR1,15)),2)*50,COLORFF0000,LINETHICK3;
⿊马启动点:CROSS(庄筹集中度,短线);
DRAWICON(⿊马启动点,庄筹集中度-0.1,10)
介入:EXIST(CROSS(COST(50),REF(COST(50),3)),13)
ANDCROSS(COST(60),REF(COST(60),3))
AND(CLOSE-REF(CLOSE,1))*100 3.5
AND(WINNER(C)*100)
2、非常精准的筹码趋向指标
VAR1:=1;
VAR3:=MA(CLOSE,13);
VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);
VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);
VARA:=3*VAR8-2*SMA(VAR8,15,1);
VARB:=3*VAR9-2*SMA(VAR9,15,1);
VARC:=100-VARB;
主力筹码趋向:=(100-VARA)*VAR1,COLOR0099FF;
VARD:=主力筹码趋向 VAR4;
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR11:=EMA(VARF,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=VAR18 =25ANDVAR19 -95ANDVAR1F 20ANDVAR1B -30ANDVAR1E 30
ANDVAR11-CLOSE =-0.25ANDVAR15 22ANDVAR16 28ANDVAR17
STICKLINE(VAR20,0,80,1,0),COLORRED,LINETHICK3;
3、筹码买入公式
HAN:=DATE 1141230;
当前获利筹码:=IF(WINNER(CLOSE),WINNER(CLOSE)*100,0);
九十集中:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
成本价:=COST(九十成本集中);
DF2:=(C-REF(C,1))/REF(C,1)*100
DF3:=(C-O)/O*100
V型:=L 成本价ANDDF2;
V型反转2:=CROSS(C,成本价)ANDDF2;
V型反转3:=L 成本价ANDDF3;
XG:V型反转ORV型反转2ORV型反转3;
4、筹码选股十倍指标公式
A1:=COST(85);
A2:=COST(15);
A3:=A1-A2;
A4:=(A1+A2)/2;
A5:=A3/A4*100
B1:=HHV(HIGH,250);
B2:=LLV(LOW,250);
B3:=B1-B2;
B4:=(A4-B2);
XG:A5ANDB4ANDWINNER(C) =0.90ANDC=HANDC REF(C,1);
5、低位单峰密集的选股公式
MJ:=8;T:=100;
A1:=COST(85);
A2:=COST(15);
A3:=A1-A2;