通达信资金拉升非常实用的指标
VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入亿:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+ (CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;
流出亿:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;
额亿:流入亿+流出亿,COLORFFFF00,NODRAW;
{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}
YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;
{量:(线),VOLSTICK;}
分界:0;
STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR0D0C6A;
STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0D06AA;
STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.5,0)COLOR2108C1;
STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR9F5DFF;
STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR22736F;
STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR22AAD5;
STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR10C7BF;
STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR80FFFF;
STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR1B7411;
STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR17A715;
STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR08D306;
STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR40FF00;
STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR080E71;
STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0B0E8C;
STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.52,0)COLOR0905B0;
STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR0204F2;
{趋势}
主力:=(CLOSE*2+HIGH+LOW+O)/4;
散户:=EMA(主力,11)-EMA(主力,22);
量比:=EMA(散户,5);
量: (-2)*(散户-量比)*5,COLORWHITE,LINETHICK1;
量1: 2*(散户-量比)*5,COLOR0000FF,LINETHICK1;
{股票指标网}
轴:0;
X_1:=1;
X_2:=1/WINNER(CLOSE);
X_3:=MA(CLOSE,13);
X_4:=100-ABS((CLOSE-X_3)/X_3*100);
X_5:=LLV(LOW,75);
X_6:=HHV(HIGH,75);
X_7:=(X_6-X_5)/100;
X_8:=SMA((CLOSE-X_5)/X_7,21,1);
X_9:=SMA((OPEN-X_5)/X_7,21,1);
X_10:=3*X_8-2*SMA(X_8,13,1);
X_11:=3*X_9-2*SMA(X_9,13,1);
X_12:=100-X_11;
X_13:=MA(CLOSE,60);
X_14:=IF(DATE<=1371030,1,0);
X_15:=MA(WINNER(CLOSE*0.95)*100,3)*X_1;
X_16:=(100-X_10)*X_1;
X_17:=CLOSE=HHV(CLOSE,20);
X_18:=BARSLAST(X_17);
X_19:=IF(X_18>0,REF(CLOSE,X_18),REF(CLOSE,X_18));
X_20:=CROSS(CLOSE,REF(X_19,1));
X_21:=X_20*X_14 AND CROSS(X_15,X_16)*X_14 AND MACD.DIF>MACD.DEA*X_14 AND COUNT(X_20,5)=1*X_14 AND VOL>REF(VOL,1)*X_14 AND REF(MACD.DIF,1)>REF(MACD.DIF,2)*X_14 AND REF(X_13,3)<REF(X_13,2)*X_14 AND REF(X_13,2)<REF(X_13,1)*X_14 AND X_13>REF(X_13,1)*X_14 AND CLOSE>OPEN*X_14;
阴线进:REF(X_21=1,1)*X_14 AND CLOSE<REF(CLOSE,1)*X_14,COLORRED,LINETHICK2;
DRAWICON(阴线进,0.6,9);
DRAWICON(阴线进,1.2,1);
未来函数检测结果如下:
该公式包含未来函数:WINNER
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:成交额/((最高价-最低价)*2-收盘价-开盘价的绝对值)
输出流入亿:IF(收盘价>开盘价,VAR1*(最高价-最低价),IF(收盘价<开盘价,VAR1*((最高价-开盘价)+ (收盘价-最低价)),成交额/2))/100000000,画红色,NODRAW
输出流出亿:IF(收盘价>开盘价,0-VAR1*((最高价-收盘价)+(开盘价- 最低价)),IF(收盘价<开盘价,0-VAR1*(最高价-最低价),0-成交额/2))/100000000,COLOR00FF00,NODRAW
输出额亿:流入亿+流出亿,COLORFFFF00,NODRAW
{线赋值:收盘价的1日简单移动平均-收盘价的6日简单移动平均,NODRAW
}
YUWEI赋值:收盘价的1日简单移动平均-收盘价的6日简单移动平均,NODRAW
输出{量:(线),成交量STICK
输出}
分界:0
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI,0,YUWEI,4,0)COLOR0D0C6A
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI,0,YUWEI,3,0)COLOR0D06AA
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI,0,YUWEI,1.5,0)COLOR2108C1
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI,0,YUWEI,0.5,0)COLOR9F5DFF
STICKLINE(YUWEI>0 AND YUWEI<1日前的YUWEI,0,YUWEI,4,0)COLOR22736F
STICKLINE(YUWEI>0 AND YUWEI<1日前的YUWEI,0,YUWEI,3,0)COLOR22AAD5
STICKLINE(YUWEI>0 AND YUWEI<1日前的YUWEI,0,YUWEI,1.5,0)COLOR10C7BF
STICKLINE(YUWEI>0 AND YUWEI<1日前的YUWEI,0,YUWEI,0.5,0)COLOR80FFFF
STICKLINE(YUWEI<0 AND YUWEI<1日前的YUWEI,0,YUWEI,4,0)COLOR1B7411
STICKLINE(YUWEI<0 AND YUWEI<1日前的YUWEI,0,YUWEI,3,0)COLOR17A715
STICKLINE(YUWEI<0 AND YUWEI<1日前的YUWEI,0,YUWEI,1.5,0)COLOR08D306
STICKLINE(YUWEI<0 AND YUWEI<1日前的YUWEI,0,YUWEI,0.5,0)COLOR40FF00
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,4,0)COLOR080E71
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,3,0)COLOR0B0E8C
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,1.52,0)COLOR0905B0
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,0.5,0)COLOR0204F2
{趋势}
主力赋值:(收盘价*2+最高价+最低价+O)/4
散户赋值:主力的11日指数移动平均-主力的22日指数移动平均
量比赋值:散户的5日指数移动平均
输出量: (-2)*(散户-量比)*5,画白色,LINETHICK1
量1: 2*(散户-量比)*5,COLOR0000FF,LINETHICK1
输出{股票指标网}
轴:0
X_1赋值:1
X_2赋值:1/收盘价计算的获利盘比例
X_3赋值:收盘价的13日简单移动平均
X_4赋值:100-(收盘价-X_3的绝对值/X_3*100)
X_5赋值:75日内最低价最低值
X_6赋值:75日内最高价最高值
X_7赋值:(X_6-X_5)/100
X_8赋值:SMA((收盘价-X_5)/X_7,21,1)
X_9赋值:SMA((开盘价-X_5)/X_7,21,1)
X_8的13日[1日权重]移动平均
X_9的13日[1日权重]移动平均
X_12:=100-X_11
X_13:=收盘价的60日简单移动平均
如果DATE<=1371030返回1否则返回0
X_15:=MA(收盘价*0.95计算的获利盘比例*100,3)*X_1
X_16:=(100-X_10)*X_1
X_17:=收盘价=20日内收盘价最高值
X_18:=上次X_17距今天数
X_19:=IF(X_18>0,X_18日前的收盘价,X_18日前的收盘价)
X_20:=CROSS(收盘价,1日前的X_19)
X_21:=X_20*X_14 AND X_15上穿X_16*X_14 AND MACD.DIF>MACD.DEA*X_14 AND 统计5日满足X_20的天数=1*X_14 AND 成交量>1日前的成交量*X_14 AND 1日前的MACD.DIF>2日前的MACD.DIF*X_14 AND 3日前的X_13<2日前的X_13*X_14 AND 2日前的X_13<1日前的X_13*X_14 AND X_13>1日前的X_13*X_14 AND 收盘价>开盘价*X_14
输出阴线进:1日前的X_21=1*X_14 AND 收盘价<1日前的收盘价*X_14,画红色, 线宽为2
当满足条件阴线进时,在0.6和9之间画图标
当满足条件阴线进时,在1.2和1之间画图标