通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
主力筹码主图指标公式
N:=30;M:=95;
V1:EMA(CLOSE,5),COLORYELLOW;
V2:EMA(EMA(CLOSE,29)*1.01,10),COLORFFCC66;
DRAWICON(CROSS(V1,V2),V2,1);
V3:EMA(CLOSE,10),COLORFF00FF;
V4:EMA(EMA(CLOSE,60)*0.99,10),COLOR0099FF;
DRAWICON(CROSS(V3,V4),V4,1);
VAR1:=AMOUNT/VOL/100;
庄家运作成本: MA(CLOSE,18),COLORWHITE;
庄家平均成本: EMA(EMA(VAR1,2),N),COLOR00FF00;
庄家底仓成本: EMA(EMA(VAR1,13),M),COLORBLUE;
无穷成本均线: DMA(CLOSE,VOL/CAPITAL),COLORBLUE;
STICKLINE(C=O,C,O,7,0),COLORRED;
STICKLINE(C=O,C,O,4,0),COLOR7070FF{B0B0FF};
STICKLINE(C=O,C,O,2,0),COLORYELLOW;
STICKLINE(C=O,H,L,0,0),COLORYELLOW;
VAR326:=IF(CLOSEREF(CLOSE,1),88,0);
VAR327:=IF(CLOSE/REF(CLOSE,1)1.050 AND HIGH/CLOSE1.010 AND VAR3260, 91, 0);
STICKLINE(VAR32790,L*0.99,L*0.95,4,0),COLORYELLOW;
DRAWTEXT(VAR32790,LOW*0.95,'追涨'),COLORYELLOW;
VAR1:=IF(CLOSE/REF(CLOSE,1)1.050 AND HIGH/CLOSE1.010 AND IF(CLOSEREF(CLOSE,1),88,0)0, 91, 0);
STICKLINE(VAR190,L,L*0.92,0.1,0),COLORRED;
DRAWTEXT(VAR190,LOW*0.92,'B'),COLORRED;
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
B11:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK4,COLORRED;
S11:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK4,COLORGREEN;
VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
S2:=IF(VC20 AND FILTER(VC REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK4,COLORGREEN;
A1:=BARSLAST(REF(CROSS(MACD.DIF,MACD.DEA),1));
B1:=REF(C,A1+1) C AND REF(MACD.DIF,A1+1)MACD.DIF AND CROSS(MACD.DIF,MACD.DEA);
DRAWTEXT(B1 0,L-0.02,'M底'),COLOR00FFFF;{MACD底背离}
A2:=BARSLAST(REF(CROSS(KDJ.K,KDJ.D),1));
B2:=REF(C,A2+1) C AND REF(KDJ.K,A2+1)KDJ.K AND CROSS(KDJ.K,KDJ.D);
DRAWTEXT(B2,L-0.10,'K底'),COLORFF00FF;{KDJ底背离}
A3:=BARSLAST(REF(CROSS(RSI.RSI1,RSI.RSI2),1));
B3:=REF(C,A3+1) C AND REF(RSI.RSI1,A3+1)RSI.RSI1 AND CROSS(RSI.RSI1,RSI.RSI2);
DRAWTEXT(B3 0,L-0.18,'R底'),COLOR0000FF;{RSI底背离}
C1:=BARSLAST(REF(CROSS(MACD.DEA,MACD.DIF),1));
D1:=REF(C,C1+1)C AND REF(MACD.DIF,C1+1) MACD.DIF AND CROSS(MACD.DEA,MACD.DIF);
DRAWTEXT(D1 0,H+0.16,'M顶'),COLOR00FF00;{MACD顶背离}
C2:=BARSLAST(REF(CROSS(KDJ.D,KDJ.K),1));
D2:=REF(C,C2+1)C AND REF(KDJ.K,C2+1) KDJ.K AND CROSS(KDJ.D,KDJ.K);
DRAWTEXT(D2 0,H+0.08,'K顶'),COLORFFFFCC;{KDJ顶背离}
C3:=BARSLAST(REF(CROSS(RSI.RSI2,RSI.RSI1),1));
D3:=REF(C,C3+1)C AND REF(RSI.RSI1,C3+1) RSI.RSI1 AND CROSS(RSI.RSI2,RSI.RSI1);
DRAWTEXT(D3 0,H+0.04,'R顶'),COLORFF9900;{RSI顶背离};
主力筹码副图指标
上限价格1:=C*1.1;
下限价格1:=C*0.9;
上方筹码1:=EMA((WINNER(上限价格1)-WINNER(C)),2),COLORRED;
下方筹码1:=EMA((WINNER(C)-WINNER(下限价格1)),2),COLORGREEN;
差1:=下方筹码1-上方筹码1,COLORYELLOW,LINETHICK2;
差4:=EMA((下方筹码1-上方筹码1),4),COLORGREEN,LINETHICK2;
CROSS(差1,差4) AND 差10,COLORRED;
DA1:=IF(130TOTALBARSCOUNT,TOTALBARSCOUNT,130);
DA:=IF(CURRBARSCOUNTDA1,0,DA1);
HI:=REFDATE(HHV(H,DA),DATE);
LO:=REFDATE(LLV(L,DA),DATE);
C1:=IF(CURRBARSCOUNT=DA,C,DRAWNULL);
GZ:=EXP(LN(HI/LO)/10);
LH1:=SUM(IF(C1=(HI/GZ),V,0),DA);
LH2:=SUM(IF(C1=(HI/POW(GZ,2)) AND C1(HI/GZ),V,0),DA);
LH3:=SUM(IF(C1=(HI/POW(GZ,3)) AND C1(HI/POW(GZ,2)),V,0),DA);
LH4:=SUM(IF(C1=(HI/POW(GZ,4)) AND C1(HI/POW(GZ,3)),V,0),DA);
LH5:=SUM(IF(C1=(HI/POW(GZ,5)) AND C1(HI/POW(GZ,4)),V,0),DA);
LH6:=SUM(IF(C1=(HI/POW(GZ,6)) AND C1(HI/POW(GZ,5)),V,0),DA);
LH7:=SUM(IF(C1=(HI/POW(GZ,7)) AND C1(HI/POW(GZ,6)),V,0),DA);
LH8:=SUM(IF(C1=(HI/POW(GZ,8)) AND C1(HI/POW(GZ,7)),V,0),DA);
LH9:=SUM(IF(C1=(LO*GZ) AND C1LO*POW(GZ,2),V,0),DA);
LH10:=SUM(IF(C1=LO AND C1LO*GZ,V,0),DA);
L1:=REFDATE(HHV(LH1,DA),DATE);
L2:=REFDATE(HHV(LH2,DA),DATE);
L3:=REFDATE(HHV(LH3,DA),DATE);
L4:=REFDATE(HHV(LH4,DA),DATE);
L5:=REFDATE(HHV(LH5,DA),DATE);
L6:=REFDATE(HHV(LH6,DA),DATE);
L7:=REFDATE(HHV(LH7,DA),DATE);
L8:=REFDATE(HHV(LH8,DA),DATE);
L9:=REFDATE(HHV(LH9,DA),DATE);
L10:=REFDATE(HHV(LH10,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);
STICKLINE(CEILING(DA*L1/SS)*3=CURRBARSCOUNT,HI*99/100,HI/GZ,9,0),
,COLOR002288,LINETHICK3;
STICKLINE(CEILING(DA*L2/SS)*3=CURRBARSCOUNT,HI/POW(GZ,1)*99/100
,HI/POW(GZ,2),9,0),COLOR800600,LINETHICK3;
STICKLINE(CEILING(DA*L3/SS)*3=CURRBARSCOUNT,HI/POW(GZ,2)*99/100
,HI/POW(GZ,3),9,0),COLOR808300,LINETHICK3;
STICKLINE(CEILING(DA*L4/SS)*3=CURRBARSCOUNT,HI/POW(GZ,3)*99/100
,HI/POW(GZ,4),9,0),COLOR883D88,LINETHICK3;
STICKLINE(CEILING(DA*L5/SS)*3=CURRBARSCOUNT,HI/POW(GZ,4)*99/100
,HI/POW(GZ,5),9,0),COLOR777700,LINETHICK3;
STICKLINE(CEILING(DA*L6/SS)*3=CURRBARSCOUNT,HI/POW(GZ,5)*99/100
,HI/POW(GZ,6),9,0),COLOR804000,LINETHICK3;
STICKLINE(CEILING(DA*L7/SS)*3=CURRBARSCOUNT,HI/POW(GZ,6)*99/100
,HI/POW(GZ,7),9,0),COLOR003377,LINETHICK3;
STICKLINE(CEILING(DA*L8/SS)*3=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)
*99/100,9,0),COLORLICYAN,LINETHICK3;
STICKLINE(CEILING(DA*L9/SS)*3=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)
*99/100,9,0),COLORLIMAGENTA,LINETHICK3;
STICKLINE(CEILING(DA*L10/SS)*3=CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100,9,0)
,COLORBROWN,LINETHICK3;
DRAWKLINE(H,O,L,C);
DRAWKLINE(H,O,L,C);
DRAWTEXT(CURRBARSCOUNT=98,LOW*0.88,'☆压力越大暗条越长,做多越短越好★'),COLORYELLOW;
N:=10;
T1:=CONST(HHVBARS(V,10)),COLOR0000FF,LINETHICK1;
量能平台:IF(CURRBARSCOUNT=N+15,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL)COLOR0000FF,LINETHICK2;
新量能点:IF(CURRBARSCOUNT=T1+1,量能平台,DRAWNULL),CIRCLEDOT,COLORLIGRAY,LINETHICK1;
DRAWTEXT(ISLASTBAR,量能平台,' 量能平台');
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
持股区域:STICKLINE(AB,A,B,2,0),COLORYELLOW;
持币区域:STICKLINE(AB,A,B,2,0),COLORBLUE;
主筹估算:EMA(WINNER(C)*70,3),LINETHICK2,COLORRED,NODRAW;
散筹估算:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3),COLOR009900,NODRAW;
买:CROSS(主筹估算,散筹估算);
评论(0)