主力操盘指标源码大全

| 淑娟

我们都知道主力具有操盘能力,在股票投资过程中主力控盘的程度有时能够决定一个散户的生死,今天小编整理了主力操盘指标源码供大家参考,一起来看看吧!

主力操盘指标源码大全

主力操盘指标源码

趋势线

a:=金额/V/100;

VARA:=EMA((((A-EMA(A,13))/EMA(A,13))×(0-100),5);

QQ:= EMA((VARA/10)+EMA(A,13)),0);

引号:=MA(A,1);

重心:= (c+0.618 × ref (c,1)+0.382 × ref (c,1)+0.236 × ref (c,3)+0.146 × ref (c,4))/2.382;

【交易线】:EMA((斜率(c,22) × 20)+c),55),颜色黄色,线粗4;

【黄金线】:IF(重心 =【交易线】,【交易线】,画空),有色,linethick2

【空仓线】:IF(重心REF(变,1),变,画空),彩色,线粗1;

null:IF(variable =(10-0.01 × 100/REF(O,1)),1,0);

棒(涨停,O,C,1,0),COLORYELLOW

ZDF:=(C-REF(C,1))/REF(C,1)× 100;

STICKLINE(ZDFLOW+0.04,4,0);

VAR11:=ZIG(3,6)REF(ZIG(3,6),1)和REF(ZIG(3,6),1)REF(ZIG(3,22),1)和REF(ZIG(3,22),1)REF(ZIG(3,51),1)REF(ZIG(3,51),1)REF(ZIG(3,72),1)和REF(ZIG(3,72,1)0或buy 2 0,low × 0.99,draw null),十字线,线条粗细3,1

S:IF(卖1 0,高× 1.01,画空),十字圆点,线粗3,颜色绿色;

VAR100:=(100 - ((90 × (HHV(高,20) -收盘))/ (HHV(高,20) - LLV(低,20)));

VAR200:=(100 - ((90 × (HHV(高,20) -收盘))/ (HHV(高,20) - LLV(低,20)));

VAR300:=(100毫安((100 × (HHV(高,5) -收盘))/ (HHV(高,5) - LLV(低,5))),34));

F:IF(CROSS(VAR200,MA(VAR300,5)),LOW × 0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLORFF00FF

DRAWTEXT(CROSS(S,sell 1),S,'← escape '),COLORWHITE,LINETHICK1

DRAWTEXT(CROSS(B,buy 1),B,'← ready '),COLORRED,LINETHICK1 1

{价格:}

{JC1:=(REF(C,3)+REF(C,5)+REF(C,7)+REF(C,8)+REF(C,13)+REF(C,21))/6;

参考价格1: SMA (JC1,5,1),圆圈圆点,颜色绿色;

IF(C=参考价1,参考价1,画空),圈点,颜色0000ff}

PH:=TROUGHBARS(2,5,1);

LL:=HHV(H,PH);

TJ1:= LL =高且LL = PH

DRAWICON(TJ,高×1.01+0.02,2);

警示灯:if (TJ,高× 1.008,画空),十字圆点,线粗2,颜色青色;

PL:= bars last(TJ);

支持:IF(BARSLAST(TJ1),

REF(LOW,BARSLAST(TJ1)),DRAWNULL),COLOREA91B5

压力:if(杠last (TJ),ref (high,PL),draw null),颜色黄色;

TJ_2:=LOWREF(REF(LOW,TS),PL);

DRAWTEXT(ISLASTBAR,pressure,' pressure '),COLORYELLOW。

DRAWTEXT(ISLASTBAR,support,' support '),COLOREA91B5

{DRAWICON(COUNT(TJ_2,PL+1)=1,HIGH×1.005,2);{//向下箭头表示退出点}

{DRAWICON(BARSLAST(TJ1),REF(LOW×0.995,BARSLAST(TJ1)),1);};

通达信主力绝密操盘系统主图指标源码

所属地区:DRAWTEXT_FIX(1,0,0,0,'地区:'),COLORYELLOW;

DRAWTEXT_FIX(1,0.05,0,0,DYBLOCK),COLORYELLOW;

所属行业:DRAWTEXT_FIX(1,0,0.08,0,'行业:'),COLORYELLOW;

DRAWTEXT_FIX(1,0.05,0.08,0,HYBLOCK),COLORYELLOW;

所属概念:DRAWTEXT_FIX(1,0,0.16,0,'概念:'),COLORYELLOW;

DRAWTEXT_FIX(1,0.05,0.16,0,GNBLOCK),COLORYELLOW;

所属风格:DRAWTEXT_FIX(1,0,0.24,0,'风格:'),COLORYELLOW;

DRAWTEXT_FIX(1,0.05,0.24,0,FGBLOCK),COLORYELLOW;

上市日期:=CONST(DAYTODATE((DATETODAY(DATE)-FINANCE(42))))+19000000,NODRAW;

DRAWTEXT_FIX(1,0,0.32,0,'上市日期:'),COLORYELLOW;

DRAWNUMBER_FIX(1,0.05,0.32,0,上市日期),COLORYELLOW;

MA3:MA(C,3),COLORRED;

短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00;

多空线:SMA((O+CLOSE+HIGH+LOW)/4,3,1),COLORRED;

多空线1:=SMA((O+CLOSE+HIGH+LOW)/4,5,1);

主力成本:EMA(COST(9),250),COLORGREEN;

长命线:EMA(COST(27),120),COLORWHITE;

强命线:EMA(COST(81),10),COLORBLUE;

VARG1:=1.86×EMA(CLOSE,5)-EMA(CLOSE,13);

趋势力度:=VARG1;

FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1)),COLORF4E202;

FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1),COLORF4E202,LINETHICK2;

CG:=IF(MA(CLOSE,17)<fs,fs,ma(close,17)),colorf4e202,linethick2;< p="">

浮筹:=CG-(EMA(C,3)-CG),COLORYELLOW;

力度:=趋势力度-浮筹,NODRAW;

年线:=EMA(C,250);

散筹:=年线-(EMA(C,3)-年线),COLORFF80FF,LINETHICK2;

操作线:=EMA(C,7),COLOR00FF00;

A:=(REF(操作线,1));

{STICKLINE((操作线>A),A,操作线,2,0),COLORBLUE;

STICKLINE((操作线<=A),A,操作线,2,0),COLORYELLOW;}

JJ:=(3×C+H+L+O)/6;

VAR11:=(8×JJ+7×REF(JJ,1)+6×REF(JJ,2)+5×REF(JJ,3)

+4×REF(JJ,4)+3×REF(JJ,5)+2×REF(JJ,6)+REF(JJ,8))/36;

TJ1:=VOL=HHV(VOL,10) AND VOL>2×REF(VOL,1) AND CLOSE>VAR11 AND C>REF(C,1);

LJL:=FILTER(TJ1,5);

TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(HIGH,1),1,

IF(BARSLAST(LJL)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3

AND CLOSE>REF(HIGH,3),1,0)));

TP:=TJ2=1;

TJ3:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(LJL)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(LOW,3),1,0)));

STFZ:=TJ3=1;

CL:=STFZ AND TP;

TJCL:=FILTER(CL,3);

STICKLINE(LJL,OPEN,CLOSE,1,0),COLORYELLOW;

IF(多空线>REF(多空线,1),多空线,DRAWNULL),COLORMAGENTA,LINETHICK2;

IF(多空线<ref(多空线,1),多空线,drawnull),colorgreen,linethick2;< p="">

DRAWICON(CROSS(强命线,多空线1),H+0.6,2);

DRAWICON(CROSS(多空线,强命线),L-0.6,1);

CTX:=(3×C+H+L+O)/6;

IONG:=(8×CTX+7×REF(CTX,1)+6×REF(CTX,2)+5×REF(CTX,3)+4×REF(CTX,4)+3×REF(CTX,5)+2×REF(CTX,6)+REF(CTX,8))/36;

CTXIONG:=VOL=HHV(VOL,10) AND VOL>2×REF(VOL,1) AND CLOSE>IONG AND C>O;

XG:=FILTER(CTXIONG,5);

BB1:=CROSS(多空线,强命线);

X1:=EMA(C,8),COLORWHITE;

X2:=EMA(C,20),COLORYELLOW;

主线:=EMA(X2,20),COLORGREEN;

VBR1:=EMA(CLOSE,8),COLORWHITE;

VBR2:=EMA(CLOSE,20),COLORYELLOW;

YA:=IF(C>=O,AMOUNT,0);

YAOBV:=SUM(YA,0);

MOBV:=SUM(AMOUNT,0);

BL:=100×YAOBV/MOBV;

MABL3:=IF(BARSSINCE(C)>=3,MA(BL,3),50);

MABL30:=IF(BARSSINCE(C)>=30,MA(BL,30),MABL3);

SSS3:=COUNT(CROSS(VBR1,VBR2),10)>=1;

SSS4:=COUNT(CROSS(MABL3,MABL30),10)=1;

TJ:=DYNAINFO(4)>0

AND HHV(HIGH,10)/LLV(LOW,10)<1.25

AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))×0.85)

AND CLOSE>OPEN

AND CLOSE>=HHV(HIGH,10);

DRAWTEXT(COUNT(XG,5)>=1 AND BB1 AND SSS3 AND SSS4,L,'黑马'),COLORWHITE;

{涨停板}

{ TB:=(C-REF(C,1))/REF(C,1)×100;

STICKLINE(TB>9.9,O,C,2.5,1)COLORMAGENTA;

STICKLINE(TB<-9.9,O,C,2.5,0)COLOR1D7300;}

{涨停颜色粉色,完美区分20%10%5%}

{涨停颜色粉色,完美区分20%10%5%,创业板20200823前10%照样变色}

BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)));

XA_1:=IF(DATE<=1200823,1,0);

STICKLINE((C>=ZTPRICE(REF(CLOSE,1),0.1) AND C=H) AND XA_1=1,O,C,2.7,0),COLORFF00FF;

STICKLINE((C<=DTPRICE(REF(CLOSE,1),0.1) AND C=L) AND XA_1=1,O,C,2.7,0),COLOR80FF00;

STICKLINE((C>=ZTPRICE(REF(C,1),BK) AND C=H),C,O,2.7,0),COLORFF00FF;

STICKLINE((C<=DTPRICE(REF(C,1),BK) AND C=L),C,O,2.7,0),COLOR80FF00;

STICKLINE((H=ZTPRICE(REF(C,1),BK) AND C<h),h,max(c,o),0.1,0),colormagenta;{涨停后回落}< p="">

STICKLINE((L=DTPRICE(REF(C,1),BK) AND C>L),L,MIN(C,O),0.1,0),COLOR80FF00;{跌停后回升}

今涨停:IF(INBLOCK('科创板'),REF(C,1)×1.2,IF(INBLOCK('创业板') AND XA_1=0,REF(C,1)×1.2,IF(INBLOCK('ST板块'),REF(C,1)×1.05,REF(C,1)×1.1))),NODRAW;

今跌停:IF(INBLOCK('科创板'),REF(C,1)×0.8,IF(INBLOCK('创业板') AND XA_1=0,REF(C,1)×0.8,IF(INBLOCK('ST板块'),REF(C,1)×0.95,REF(C,1)×0.9))),NODRAW;

明涨停:IF(INBLOCK('科创板'),CLOSE×1.2,IF(INBLOCK('创业板') AND XA_1=0,CLOSE×1.2,IF(INBLOCK('ST板块'),CLOSE×1.05,CLOSE×1.1))),NODRAW;

{近期高位}

AB1:=REF(C,10)=HHV(C,2×10+1);

BD1:=FILTER(AB1,10);

CB1:=BACKSET(BD1,10+1);

HBD:=FILTER(CB1,10);

近期压力:REF(C,BARSLAST(HBD)) NODRAW,COLORYELLOW;

STICKLINE(C,近期压力,近期压力,10,0),COLORYELLOW ;

DRAWTEXT(ISLASTBAR,近期压力,' 近期压力');

{长期高位}

AS1:=REF(C,60)=HHV(C,2×60+1);

AS2:=FILTER(AS1,60);

AS3:=BACKSET(AS2,60+1);

AS4:=FILTER(AS3,60);

长期压力:REF(C,BARSLAST(AS4)) NODRAW COLORRED;

STICKLINE(C,长期压力,长期压力,10,0),COLORRED;

DRAWTEXT(ISLASTBAR,长期压力,' 长期压力');

{以下为偏离值}

A0:=("399107$C");{指数当日}

A2:=REF(A0,2);{指数倒数第3天}

A3:=REF(A0,3);{指数倒数第4天}

B2:=REF(C,2);

B3:=REF(C,3);

偏二:(C/B2-A0/A2)×100,COLORWHITE,NODRAW;

偏三:(C/B3-A0/A3)×100,COLORWHITE,NODRAW;

界三:((0.2+A0/A3)×B3/REF(C,1)-1)×100,COLORMAGENTA,NODRAW;

界三价:(0.2+A0/A3)×B3,COLORMAGENTA,NODRAW;

深A预三:((C×1.1/REF(C,2)-0.2)×A2/A0-1)×100,COLORGREEN,NODRAW;

{以下为股票异动提示}

D1:=DATETODAY(1220711);

D2:=DATETODAY(DATE);

PL2:=IF(D2>D1,(C/REF(C,2)-A0/REF(A0,2))×100,(C/REF(C,1)+REF(C,1)/REF(C,2)-A0/REF(A0,1)-REF(A0,1)/REF(A0,2))×100);

PL3:=IF(D2>D1,(C/REF(C,3)-A0/REF(A0,3))×100,(C/REF(C,1)+REF(C,1)/REF(C,2)+REF(C,2)/REF(C,3)-A0/REF(A0,1)-REF(A0,1)/REF(A0,2)-REF(A0,2)/REF(A0,3))×100);

YD:=(PL2>20 OR PL3>20);

SCYD:=(REF(COUNT(YD,3)=0,1) AND YD AND NOT(FINANCE(3)=3 OR FINANCE(3)=4));

STICKLINE(SCYD,O,C,2.7,0),COLORYELLOW;

ECYD1:=(EXISTR(SCYD,2,2) AND PL2>20);

ECYD2:=(EXISTR(SCYD,3,3) AND PL3>20 AND REF(COUNT(ECYD1,2)=0,1));

ECYD:=(ECYD1 OR ECYD2);

STICKLINE(ECYD,O,C,2.7,0),COLORYELLOW;

SACYD1:=(EXISTR(ECYD,2,2) AND PL2>20);

SACYD2:=(EXISTR(ECYD,3,3) AND PL3>20 AND REF(COUNT(SACYD1,2)=0,1));

SACYD:=(SACYD1 OR SACYD2);

STICKLINE(SACYD,O,C,2.7,0),COLORYELLOW;

SICYD1:=(EXISTR(SACYD,2,2) AND PL2>20);

SICYD2:=(EXISTR(SACYD,3,3) AND PL3>20 AND REF(COUNT(SICYD1,2)=0,1));

SICYD:=(SICYD1 OR SICYD2);

STICKLINE(SICYD,O,C,2.7,0),COLORYELLOW;

WCYD1:=(EXISTR(SICYD,2,2) AND PL2>20);

WCYD2:=(EXISTR(SICYD,3,3) AND PL3>20 AND REF(COUNT(WCYD1,2)=0,1));

WCYD:=(WCYD1 OR WCYD2);

STICKLINE(WCYD,O,C,2.7,0),COLORYELLOW;

LCYD1:=(EXISTR(WCYD,2,2) AND PL2>20);

LCYD2:=(EXISTR(WCYD,3,3) AND PL3>20 AND REF(COUNT(LCYD1,2)=0,1));

LCYD:=(LCYD1 OR LCYD2);

STICKLINE(LCYD,O,C,2.7,0),COLORYELLOW;

主力控盘指标是什么?

主力控盘指标(CYW)指的是一种主力维系股价不下跌的能力,刚开始的时候它是主要用在股价的涨跌中的量价关系确定主力对盘子的控制能力。它的算法上参考了一位神经生物学上的一个神经元模型,股价上涨和下跌的成交量就会对神经元的兴奋或抑制起到一个刺激作用。如果输出是正向的话,那么这就表明主力控盘,如果输出是负向的,那么就表明主力不控盘。我们一般就只关注CYW的正负,其数值对股市的涨跌没有什么太大的关系。由于CYW的算法,使得该指标只在有庄家操纵市场的才有意义,所以它对于强庄股来说是一个适用的指标,但对于无庄或弱庄股它的市场来说就是不明确的。这就一般情况下所遇到的问题:每个指标都有其特定的适用范围,也有其盲点和误区。适用范围如下所示:主要用于上升行情启动前、上升行情启动初期及上升行情到顶后。然后其使用原则如下所示:做股票只买CYW指标柱线呈紫色的股票,柱线持续兰色的股票近期不可能大涨,千万不能碰它。

29808