通达信机构活跃拉升副图指标 源码附图
BB0:=(MA(CLOSE,3)+MA(CLOSE,7)+MA(CLOSE,13)+MA(CLOSE,27))/4;
BB1:=EMA(CLOSE,5);
BB:=IF(BB0==DRAWNULL,BB1,BB0);
A0:=(H+L+2*O+6*C)/10;
TK:=(C<O OR (C<REF(H,1) AND C>O) OR (C>=O AND (H-C)>=(C-O) AND C/REF(C,1)<1.02) OR (C=O AND (H-C)>=(C-L) AND C/REF(C,1)<1.05));
TP:=((C>O AND C/REF(C,1)>0.94 ) OR (C>REF(L,1) AND C<O) OR (C<=O AND (C-L)>=(O-C) AND C/REF(C,1)>0.98) OR (C=O AND (C-L)>=(H-C) AND C/REF(C,1)>0.95));
C1:=CROSS(A0,BB) AND TK;
C2:=CROSS(BB,A0) AND TP;
A1:=IF(C1,BB*0.98,IF(C2,BB*1.02,A0));
C12:=CROSS(A1,BB) AND TK;
C22:=CROSS(BB,A1) AND TP;
A2:=IF(C12,BB*0.98,IF(C22,BB*1.02,A1));
C13:=CROSS(A2,BB) AND TK;
C23:=CROSS(BB,A2) AND TP;
A3:=IF(C13,BB*0.98,IF(C23,BB*1.02,A2));
C14:=CROSS(A3,BB) AND TK;
C24:=CROSS(BB,A3) AND TP;
A4:=IF(C14,BB*0.98,IF(C24,BB*1.02,A3));
C15:=CROSS(A4,BB) AND TK;
C25:=CROSS(BB,A4) AND TP;
A5:=IF(C15,BB*0.98,IF(C25,BB*1.02,A4));
C16:=CROSS(A5,BB) AND TK;
C26:=CROSS(BB,A5) AND TP;
A6:=IF(C16,BB*0.98,IF(C26,BB*1.02,A5));
C17:=CROSS(A6,BB) AND TK;
C27:=CROSS(BB,A6) AND TP;
A7:=IF(C17,BB*0.98,IF(C27,BB*1.02,A6));
C18:=CROSS(A7,BB) AND TK;
C28:=CROSS(BB,A7) AND TP;
A8:=IF(C18,BB*0.98,IF(C28,BB*1.02,A7));
C19:=CROSS(A8,BB) AND TK;
C29:=CROSS(BB,A8) AND TP;
A9:=IF(C19,BB*0.98,IF(C29,BB*1.02,A8));
C31:=CROSS(A9,BB) AND TK;
C41:=CROSS(BB,A9) AND TP;
A:=IF(C31,BB*0.98,IF(C41,BB*1.02,A9));
KK0:=CROSS(A,BB);
X_4:=IF(CLOSE<=OPEN,CLOSE,OPEN);
X_5:=(X_4-LOW)/LOW*100;
X_6:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_7:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_8:=(CLOSE-OPEN)/OPEN*100;
X_9:=IF(CLOSE>=OPEN,CLOSE,OPEN);
X_10:=(HIGH-X_9)/X_9*100;
X_11:=X_10;
X_12:=X_5;
X_13:=X_8+X_10;
X_14:=X_8+X_5;
X_15:=X_10+X_5;
X_16:=X_6;
X_17:=X_7;
X_18:=MAX(MAX(MAX(MAX(MAX(MAX(X_15,X_16),X_14),X_13),X_12),X_11),X_17)*1.2;
机构活跃度:=X_18>=6;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,AA *(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2))/25000;
卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2))/25000;
一日资金流入:=AMOUNT*买量/1000000,COLORRED;
一日资金流出:=AMOUNT*卖量/1000000,COLORGREEN;
净额:=一日资金流入+一日资金流出>0;
XG:KK0 AND 机构活跃度 AND 净额;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
BB0赋值:(收盘价的3日简单移动平均+收盘价的7日简单移动平均+收盘价的13日简单移动平均+收盘价的27日简单移动平均)/4
BB1赋值:收盘价的5日指数移动平均
如果BB0==DRAWNULL返回BB1否则返回BB0
A0赋值:(H+L+2*O+6*C)/10
TK赋值:(CO) OR (C>=O AND (H-C)>=(C-O) AND C/1日前的C<1.02) OR (C=O AND (H-C)>=(C-L) AND C/1日前的C<1.05))
TP赋值:((C>O AND C/1日前的C>0.94 ) OR (C>1日前的L AND C=(O-C) AND C/1日前的C>0.98) OR (C=O AND (C-L)>=(H-C) AND C/1日前的C>0.95))
C1赋值:A0上穿BB AND TK
C2赋值:BB上穿A0 AND TP
A1赋值:IF(C1,BB*0.98,IF(C2,BB*1.02,A0))
C12:=A1上穿BB AND TK
C22:=BB上穿A1 AND TP
A2赋值:IF(C12,BB*0.98,IF(C22,BB*1.02,A1))
C13:=A2上穿BB AND TK
C23:=BB上穿A2 AND TP
A3赋值:IF(C13,BB*0.98,IF(C23,BB*1.02,A2))
C14:=A3上穿BB AND TK
C24:=BB上穿A3 AND TP
A4赋值:IF(C14,BB*0.98,IF(C24,BB*1.02,A3))
C15:=A4上穿BB AND TK
C25:=BB上穿A4 AND TP
A5赋值:IF(C15,BB*0.98,IF(C25,BB*1.02,A4))
C16:=A5上穿BB AND TK
C26:=BB上穿A5 AND TP
A6赋值:IF(C16,BB*0.98,IF(C26,BB*1.02,A5))
C17:=A6上穿BB AND TK
C27:=BB上穿A6 AND TP
A7赋值:IF(C17,BB*0.98,IF(C27,BB*1.02,A6))
C18:=A7上穿BB AND TK
C28:=BB上穿A7 AND TP
A8赋值:IF(C18,BB*0.98,IF(C28,BB*1.02,A7))
C19:=A8上穿BB AND TK
C29:=BB上穿A8 AND TP
A9赋值:IF(C19,BB*0.98,IF(C29,BB*1.02,A8))
C31赋值:A9上穿BB AND TK
C41赋值:BB上穿A9 AND TP
A赋值:IF(C31,BB*0.98,IF(C41,BB*1.02,A9))
KK0赋值:A上穿BB
如果收盘价<=开盘价返回收盘价否则返回开盘价
X_5赋值:(X_4-最低价)/最低价*100
X_6赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100
X_7赋值:(开盘价-1日前的收盘价)/1日前的收盘价*100
X_8赋值:(收盘价-开盘价)/开盘价*100
如果收盘价>=开盘价返回收盘价否则返回开盘价
X_10赋值:(最高价-X_9)/X_9*100
X_11赋值:X_10
X_12赋值:X_5
X_13赋值:X_8+X_10
X_14赋值:X_8+X_5
X_15赋值:X_10+X_5
X_16赋值:X_6
X_17赋值:X_7
X_18赋值:X_15和X_16较大值,X_14),X_13),X_12),X_11),X_17)*1.2
机构活跃度赋值:X_18>=6
AA赋值:成交量/((最高价-最低价)*2-收盘价-开盘价的绝对值)
买量赋值:IF(收盘价>开盘价,AA *(最高价-最低价),IF(收盘价<开盘价,AA*((最高价-开盘价)+(收盘价-最低价)),成交量/2))/25000
卖量赋值:IF(收盘价>开盘价,0-AA*((最高价-收盘价)+(开盘价-最低价)),IF(收盘价<开盘价,0-AA*(最高价-最低价),0-成交量/2))/25000
一日资金流入赋值:AMOUNT*买量/1000000,画红色
一日资金流出赋值:AMOUNT*卖量/1000000,画绿色
净额赋值:一日资金流入+一日资金流出>0
输出XG:KK0 AND 机构活跃度 AND 净额