通达信刀组合画线主图指标公式

通达信机构建仓买入指标公式

通达信刀组合画线主图指标公式:
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);

VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);

VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14

OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;

stICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR0000EE;{翻红}

VAR20:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8

OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;

STICKLINE(VAR20,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR00FF00;{翻绿}

E3:=EMA(C,3),COLORFFFF00,LINETHICK1;

E5:=EMA(C,5),COLORFFFFFF,LINETHICK1;

E10:=EMA(C,10),COLOR44FF44,LINETHICK1;

E20:=EMA(C,20),COLORFF00FF,LINETHICK1;

E30:=EMA(C,30),COLORRED,LINETHICK2;

E95:=EMA(C,95),COLOR0088FF,LINETHICK2;

E12:=EMA(C,12),COLORFFFFFF,LINETHICK2;

E50:=EMA(C,50),COLOR00FFFF,LINETHICK2;

{www.zhibiaow.com 指标网_通达信股票指标公式}

M4:=MA(C,4),COLOR0000FF,LINETHICK1;{蓝色}

M5:=MA(C,5),COLORFF00FF,LINETHICK1;{牡丹红}

M10:=MA(C,10),COLOR00FFFF,LINETHICK1;{青色}

M10A:=EMA(M10,3),COLOR00FFAA;

M15:=MA(C,15),COLORFFFF00,LINETHICK1;{黄色}

M20:=MA(C,20),COLOR70DB93,LINETHICK2;{海蓝}

M25:=MA(C,25),COLOR5C3317,LINETHICK2;{巧克力色}

M18:=MA(C,18),POINTDOT,COLOR9F5F9F,LINETHICK2;{蓝紫色}

M30:MA((C+O+H+L)/4,30),COLORRED,LINETHICK3;{红色}

M95:MA(C,95),COLOR0088FF,LINETHICK3;

套牢盘:=(1-WINNER(C)*100),COLOR66FF00;

获利盘:=WINNER(C)*100,COLOR0000FF;

MB1:=EMA(C,20),COLORFF00FF, LINETHICK2;

MB2:=EMA(MB1,3),COLOR00FF00;

MB3:=EMA(MB2,3),COLOR33FF33;

MB4:=EMA(MB3,3),COLOR55FF55;

MB5:=EMA(MB4,3),COLOR88FF88, LINETHICK2;

M12A:=MA(C,12),COLORFF00FF;

M12B:=MA(M12A,3),COLOR00FF00;

M12C:=MA(M12B,3),COLOR33FF33;

M12D:=MA(M12C,3),COLOR55FF55;

M12E:=MA(M12D,3),COLOR88FF88;

V5:=MA(V,5);V13:=MA(V,13); V30:=MA(V,30);

A1:=100*vol/CAPITAL;

A2:=REF(A1,1);

A3:=REF(A1,2);

日:=181;昨前:=74;

高1:=REF(HHV(H,日),昨前);

低1:=REF(LLV(L,日),昨前),COLORBLUE,LINETHICK3;

H1:=高1-(高1-低1)*0.191,POINTDOT;

H2:=高1-(高1-低1)*0.382,POINTDOT;

H3:=高1-(高1-低1)*0.5,POINTDOT;

H4:=高1-(高1-低1)*0.618,POINTDOT;

H5:=高1-(高1-低1)*0.809,COLORBLUE,POINTDOT;

GJ:=(C+H+L+O)/4;

明日阻力:=L+(GJ-L)+(C-L);

明日支撑:=L+(C-GJ);

KOH:=L>REF(H,1);

KOL:=H<REF(L,1);

HIF:=L>REF(H,BArslAST(KOH)+1);

NHIF:=L<=REF(H,BARSLAST(KOH)+1);

LIF:=H<REF(L,BARSLAST(KOL)+1);

NLIF:=H>=REF(L,BARSLAST(KOL)+1);

下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);

RRRSV:=SMA(下档线,3,1);

KKK:=SMA(RRRSV,3,1);

DDDDD:=((3 * RRRSV) - (2 * KKK));

JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);

RSV24:=SMA(JJ12,3,1);

K24:=SMA(RSV24,3,1);

D24:=((3 * RSV24) - (2 * K24));

QA:=REF(H,10)=HHV(H,2*10+1);

QB:=BacKSET(QA,10+1);

QC:=FILTER(QB,10) AND H=HHV(H,10+1);

QD:=BARSLAST(QC);

QE:=IF(QC,CURRBARSCOUNT,0);

QF:=IF(QD,REF(QE,QD),QE);

QG:=CONST(QF);

QH:=REF(QF,QD+1);

QW:=CONST(QH);

DRAWLINE(CURRBARSCOUNT=QW,H,CURRBARSCOUNT=QG,H,1),COLORGREEN;

DRAWLINE(CURRBARSCOUNT=QW,H,ISLASTBAR,REF(H,QW-1),1),COLOR0099FF,POINTDOT;

DRAWLINE(CURRBARSCOUNT=QG,H,ISLASTBAR,REF(H,QG-1),1),COLOR0099FF,POINTDOT;

QM:=INTPART(3*8/5);

QR:=REF(H,QM)=HHV(H,2*QM+1);

QT:=FILTER(QR,QM);

QY:=BACKSET(QT,QM+1);

QU:=FILTER(QY,QM);

QI:=BACKSET(ISLASTBAR,BARSLAST(QU)+1);

QP:=QI>REF(QI,1);

DRAWLINE(QU,H,QP,H,1),COLORRED;

QA1:=REF(L,8)=LLV(L,2*8+1);

QB1:=BACKSET(QA1,8+1);

QC1:=FILTER(QB1,8) AND L=LLV(L,8+1);

QD1:=BARSLAST(QC1);

QE1:=IF(QC1,CURRBARSCOUNT,0);

QF1:=IF(QD1,REF(L,QD1),L);

QG1:=IF(QD1,REF(QE1,QD1),QE1);

QH1:=CONST(QG1);

QW1:=REF(QF1,QD1+1);

QM1:=REF(QG1,QD1+1);

QR1:=CONST(QM1);

DRAWLINE(CURRBARSCOUNT=QR1,L,CURRBARSCOUNT=QH1,L,1),COLORBLUE;

DRAWLINE(CURRBARSCOUNT=QH1,L,ISLASTBAR,REF(L,QH1-1),1),COLORWHITE,POINTDOT;

DRAWLINE(CURRBARSCOUNT=QR1,L,ISLASTBAR,REF(L,QR1-1),1),COLORWHITE,POINTDOT;

QT1:=REF(L,QM)=LLV(L,2*QM+1);

QY1:=FILTER(QT1,QM);

QU1:=BACKSET(QY1,QM+1);

QI1:=FILTER(QU1,QM);

QP1:=BACKSET(ISLASTBAR,BARSLAST(QI1)+1);

QJ1:=QP1>REF(QP1,1);

DRAWLINE(QI1,L,QJ1,L,1),COLORRED;

SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1);

SR2:=FILTER(SR1,10);

SR3:=BACKSET(SR2,10+1);

HD:=FILTER(SR3,10);

前高:=REF(H,BARSLAST(HD));

DRAWICON(crOSS(C,前高),L-0.20,3);{突破前高的信号};

{设置参数:N,1,100,10}

T1:=CONST(LLVBARS(LOW,10));

T1HIGH:=CONST(REF(HIGH,T1));

CC:=CONST(CURRBARSCOUNT);

T2:=CONST(BARSLAST(CURRBARSCOUNT>CC+T1 AND H>T1HIGH));

T2HIGH:=CONST(REF(HIGH,T2));

T3:=CONST(BARSLAST(CURRBARSCOUNT>CC+T2 AND HIGH>T2HIGH));

T3HIGH:=CONST(REF(HIGH,T3));

猎击线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK2,COLOR0000FF;

DRAWTEXT(ISLASTBAR, T3HIGH, '猎击线')LINETHICK1,COLOR0000FF;

通达信线翘选股指标公式