最重要的公式第9个。
{1.缠学分笔1 CXF1}
{同 缠论画线-通达信可用}
KU1:=IF(HIGH=HHV(HIGH,3),1,0);
KD1:=IF(LOW=LLV(LOW,3),1,0);
UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0
AND KU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1
AND REF(KU1,1)=0 AND KU1=0)));
DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0
AND KD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1
AND REF(KD1,1)=0 AND KD1=0)));
HV:=H>UL AND H>REF(H,1) ;
LV:=L
GP:=BARSLAST(HV);
DP:=BARSLAST(LV);
IP:=IF(GP=0,DP,GP)>3;
HV1:=HV AND IP AND H>=HHV(H,BARSLAST(LV));
LV1:=LV AND IP AND L<=LLV(L,BARSLAST(HV));
DRAWLINE(LV1,LOW,HV1, HIGH,0),COLORYELLOW,LINETHICK1;
DRAWLINE(HV1,HIGH,LV1, LOW,0),COLORMAGENTA,LINETHICK1;
M77:MA(CLOSE,77),COLORRED;
M177:MA(CLOSE,177),COLORWHITE;
{2.缠学分笔2 CXF2}
HH:=REF(H,5)=HHV(H,11);
LL:=REF(L,5)=LLV(L,11);
FG01:=BACKSET(HH,6)>BACKSET(HH,5) ;
FD01:=BACKSET(LL,6)>BACKSET(LL,5) ;
FG0:=FG01 AND H=HHV(H,BARSLAST(FD01));
FD0:=FD01 AND L=LLV(L,BARSLAST(FG01));
GP:IF(FG0,H,DRAWNULL),CIRCLEDOT,COLORCYAN;
DP:IF(FD0,L,DRAWNULL),CIRCLEDOT,COLORCYAN;
J0:=(H+L)/2;
FGH:=REF(H,BARSLAST(FG0));
FGH1:=REF(H,BARSLAST(FG0)+1);
FGL1:=REF(L,BARSLAST(FG0)+1);
FGH2:=REF(H,BARSLAST(FG0)+2);
FGL2:=REF(L,BARSLAST(FG0)+2);
FGJ0:=REF(J0,BARSLAST(FG0));
FGL:=REF(L,BARSLAST(FG0));
FDH:=REF(H,BARSLAST(FD0));
FDL:=REF(L,BARSLAST(FD0));
FDH1:=REF(H,BARSLAST(FD0)+1);
FDL1:=REF(L,BARSLAST(FD0)+1);
FDH2:=REF(H,BARSLAST(FD0)+2);
FDL2:=REF(L,BARSLAST(FD0)+2);
FDJ0:=REF(J0,BARSLAST(FD0));
FGZH:=IF(FGL
FDZL:=IF(FDH>FDH1,FDL2,FDL1);
FG1:=IF(((FGL>FDH AND FGH>FDZH) OR (FGH>FDH1 AND FDH1>FDH AND FDH>FDH2)),FG0
,FG0 AND FGJ0>FDH AND FGH>FDZH);
FD1:=IF(((FDH
GQ:=L>REF(H,1) AND DAY!=REF(DAY,1);
DQ:=H G1:=(FG AND BARSLAST(FD)>BK) OR (FG1 AND COUNT(GQ,BARSLAST(FD)));
D1:=(FD AND BARSLAST(FG)>BK) OR (FD1 AND COUNT(DQ,BARSLAST(FG)));
G1H:=IF(BARSLAST(D1)>BARSLAST(G1),REF(H,BARSLAST(G1)),REF(H,BARSLAST(D1))),;
D1L:=IF(BARSLAST(G1)>BARSLAST(D1),REF(L,BARSLAST(D1)),REF(L,BARSLAST(G1)));
G2:=G1 AND H=HHV(G1H,BARSLAST(D1)) AND BARSLAST(D1)>BARSLAST(G1);
D2:=D1 AND L=LLV(D1L,BARSLAST(G1)) AND BARSLAST(G1)>BARSLAST(D1);
G3:=G2 OR (FG1 AND REF(H,BARSLAST(FG1))>REF(H,BARSLAST(G2)) AND BARSLAST(D2)>BARSLAST(G2));
D3:=D2 OR (FD1 AND REF(L,BARSLAST(FD1))BARSLAST(D2));
GPB:IF(G1,H,DRAWNULL),CIRCLEDOT,COLORYELLOW;
DPB:IF(D1,L,DRAWNULL),CIRCLEDOT,COLORYELLOW;
{??}
NN:=G3;UU:=D3;
L1:DRAWLINE(UU,L,NN, H,0),COLORYELLOW;L2:DRAWLINE(NN,H,UU, L,0),COLORYELLOW;
M77:MA(CLOSE,77),COLORRED;
M177:MA(CLOSE,177),COLORWHITE;
{3.弘历趋势阶梯 QSJT}
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,13);
B:=REF(A,1);
M1:=EMA(CLOSE,3);
M2:=EMA(CLOSE,8);
M3:=EMA(M2,13);
M55:EMA(M2,55),COLORWHITE;
持股区域:STICKLINE(A>B,A,B,6,0),COLORRED;
持币区域:STICKLINE(A M330:EMA(M2,330),COLORGREEN;
{4.弘历六彩神龙}
变量00:=5;
变量01:=30;
A02:=(WINNER((CLOSE * 1.100)) * 100.000);
A03:=(WINNER((CLOSE * 0.9)) * 100.000);
A04:=MA(A03,变量00);STICKLINE( 1.000,0,A04, 7.450,0),COLORRED;
获利:MA(A03,变量00),COLORRED;A06:=( 100.000 - MA(A02,变量00));
STICKLINE( 1.000, 100.000,MA(A02,变量00), 7.450,0),COLORGREEN;
套牢: ( 100.000 - MA(A02,变量00)),COLORGREEN;
A08:=(MA(A02,变量00) - MA(A03,变量00));
STICKLINE( 1.000,A04,MA(A02,变量00), 7.450,0),COLORYELLOW;
浮动: (MA(A02,变量00) - MA(A03,变量00)),COLORYELLOW;
A0A:=(((((HHV(A04, 15.000) - A03) / A03) * 100.000) > 变量01) AND (HHV(A04, 15.000) > 50.000));
STICKLINE(A0A,(0 - 2.000), 2.000,
10.000,0);
STICKLINE(NOT(A0A),(0 - 2.000), 2.000, 10.000,0),COLORBLUE;
{5.弘历动力金叉指标}
A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));
B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
分水岭:IF(MA(CLOSE,17) 操作线:分水岭-(EMA(C,3)-分水岭),LINETHICK1,COLORYELLOW;
PM:MA(C,5),COLORWHITE;
{www.gupang.com 股旁网_通达信股票指标公式}
IF(PM>REF(PM,1),PM,DRAWNULL),COLORRED;
IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;
IF(PM S:=(PM>操作线);
DD:=分水岭 IF(DD,分水岭,DRAWNULL),COLORGREEN;
IF(S,分水岭,DRAWNULL),LINETHICK7,POINTDOT,COLORGREEN;
{6.趋势买卖 QSMM}
{类似于ENE,但是不同,标明买卖点}
N:=20;M:=32;P1:=80;P2:=100;
VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,N)(1+P1/1000),COLORGREEN,LINETHICK2;
买入:XMA(VAR1,M)(1-P2/1000),COLORMAGENTA,LINETHICK2;
幅度:100(卖出-买入)/买入,NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(卖出>LOW AND 卖出
STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
DRAWTEXT(CROSS(LOW,买入),LOW
DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'S'),COLORGREEN;
{7 futu操盘线 CLCP 通达信}
买线:=MA(C,10);
卖线:=MA(C,60);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(BU,L-0.1,1);
DRAWICON(SEL,H+0.1,2);
DRAWTEXT(BU,L0.99,'买');
DRAWTEXT(SEL,H1.03,'卖');
STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN;
STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORGREEN;
STICKLINE(BU,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;
主力:=EMA(CLOSE,10),COLORRED;
散户:=EMA(CLOSE,5),COLORWHITE;
绿降:=(46.18EMA(CLOSE,10)-31.82EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1;
操盘:MA(CLOSE,10),COLORCYAN,LINETHICK2;
界点:MA(CLOSE,60),COLORMAGENTA;
{futu操盘线 CLCP 东方财富通}
买线:=MA(C,10);
卖线:=MA(C,60);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(BU,L0.97,4);
DRAWICON(SEL,H1.01,5);
DRAWTEXT(BU,L0.99,'买');
DRAWTEXT(SEL,H1.03,'卖');
STICKLINE(BU,OPEN,CLOSE,2,0),COLORblue;
STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;
STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN;
STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORGREEN;
操盘:MA(CLOSE,10),COLORRED;
界点:MA(CLOSE,60),COLORWHITE,LINETHICK2;
{8.ENE 参数11 9 10}
{9.DIF和0交叉买卖点 通达信 主图 DIF上穿0轴 用于60分钟 红K且线上买,绿K卖。}
{by futu 2016.7.30 QQ5672317}
DIF:=MACD.DIF;
BU:=CROSS(DIF,0);
SEL:=CROSS(0,DIF);
DRAWTEXT(BU,H1.01,'买');
DRAWTEXT(SEL,L0.99,'卖');
STICKLINE(DIF>=0,LOW,HIGH,0.2,1),COLORRED;
STICKLINE(DIF>=0,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(DIF<0,LOW,HIGH,0.2,1),COLORGREEN;
STICKLINE(DIF<0,CLOSE,OPEN,3,1),COLORGREEN;
界点:MA(CLOSE,100),COLORMAGENTA;
DRAWTEXT_FIX(1,0.95,0.98,0,'红柱线上买');
DRAWTEXT_FIX(1,0.95,0.94,0,'绿柱卖');