通达信抓牛大法抓牛法宝指标公式副图源码
N:=10;
TA:=MAX(MAX((HIGH-LOW),Abs(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=EMA(TA,21);
VAR81:=REF(CLOSE,N)-REF(ATR,1);
筹码线:=HHV(VAR81,21),COLORYELLOW;
上:=(1+7/100)*筹码线;
下:=(1-7/100)*筹码线;
中:=(上+下)/2;
XGD:DRAWBAND(上,RGB(258,88,1),下,RGB(258,88,1));
{XGD:DRAWBAND(上,RGB(136,30,0),下,RGB(0,0,0));}
UPPER: MA(CLOSE,60)+ 2*STD(CLOSE,60),LINETHICK2,COLORFFFF00;
LOWER: MA(CLOSE,60)- 2*STD(CLOSE,60),LINETHICK2,COLORFFFF00;
{UPPER90: MA(CLOSE,90)+ 2*STD(CLOSE,90),LINETHICK2,COLORC080FF;
LOWER90: MA(CLOSE,90)- 2*STD(CLOSE,90),LINETHICK2,COLORC080FF;}
{盖住双横杠}
F:=C/O;
STICKLINE(F>=1,C,O,2.8,1),COLORRED;
STICKLINE(F>=1,C,H,0.00001,0),COLORRED;
STICKLINE(F>=1,L,O,0.00001,0),COLORRED;
STICKLINE(F<1,C,O,2.8,0),COLORCYAN;
STICKLINE(F<1,O,H,0.00001,0),COLORCYAN;
STICKLINE(F<1,L,C,0.00001,0),COLORCYAN;
{牛熊线}
短期线:EMA(CLOSE,7),COLORWHITE,LINETHICK1;
中期线:EMA(CLOSE,25),COLORFF00FF,LINETHICK1;
长期线MacP:EMA(中期线,55),COLORYELLOW,LINETHICK2;
牛熊分水岭905:EMA(CLOSE,905),COLORRED,LINETHICK3;
大牛控盘线:MA(CLOSE,1650),COLORGREEN,LINETHICK3;
X_3:=MAX(DYNAINFO(3),DYNAINFO(5));
X_4:=MIN(DYNAINFO(3),DYNAINFO(6));
银河线:=(X_3-X_4);
DRAWICON(crOSS(中期线,长期线MACP),长期线MACP,23);
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;
VAR1A:=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;
DRAWICON(VAR19 AND C>短期线,L*0.998,1);
DRAWICON(VAR1A,H*1.002,2),NODRAW;
TJ5:=REF("cci.CCI",1)<-100 AND "CCI.CCI">REF("CCI.CCI",1);
TJ6:=REF("kdj.J"(9,3,3),1)<20 AND "kdJ.J"(9,3,3)>REF( "KDJ.J"(9,3,3),1);
TJ7:=REF("rsi.RSI1",1)<20 AND "RSI.RSI1">REF("RSI.RSI1",1);
TJ8:=COUNT(TJ5,5) AND COUNT(TJ6,5) AND COUNT(TJ7,5);
大底:=CROSS(TJ8,0.5);
DRAWICON(大底,L*0.991,11);
T1:EMA(SLOPE(CLOSE,34)*20+CLOSE,75),COLORYELLOW,NODRAW;
T2:MA(C,120),COLORCYAN,LINETHICK2,NODRAW;
T3:MA(C,250),COLORGREEN,LINETHICK2,NODRAW;
乖离线:=((C-REF(T1,1))/20+T1)*1.20;
TT1:=CROSS(T1,T2) AND CROSS(T1,T3) AND V>REF(V,1);
TT2:=T1>REF(T1,2) AND V>REF(V,1) AND CROSS(C,T1);
DRAWICON((T2>=REF(T2,1) AND CROSS(C,T1) AND CROSS(C,T2) AND V>REF(V,1)),L*0.997,9);
DRAWICON(TT2,L*0.995,11);
DRAWICON(CROSS(C,乖离线) AND L!=H,H*1.005,12);
N1:=10;
N2:=3;
N3:=6;
PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=(vol / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2)))));
ZLL:=(VOL / CAPITAL);
HSL1:=IF((ZLL > 10),10,ZLL);
HSL:=((XVL / 20) / 1.15);
攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));
STICKLINE(((HSL * 0.4) >= 0),((HSL/1000) * 1.0),0,1,0),COLORRED,NODRAW;
STICKLINE(((HSL * 0.4) < 0),((HSL/1000) * 1.0),0,1,0),COLORBLUE,NODRAW;
力度: (HSL / 1000),LINETHICK0,NODRAW;
A1:=SUM(力度,N1);
A2:=EMA(A1,N2);
A3:=EMA(A1,N3);
累积能量:A1,NODRAW;
bias1:(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100,NODRAW;
买:DRAWICON(CROSS(A1,A3) AND C>短期线,L*0.998,1),NODRAW;
卖:DRAWICON(CROSS(A3,A1) AND BIAS1>1,H*1.002,10),NODRAW;
VAR1Y:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
VAR2Y:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
VAR3Y:=SMA(VAR2Y,2,1);
卖出:100+(-ABS(VAR1Y)),NODRAW;
预防:SMA(VAR3Y,2,1),COLORRED,LINETHICK2,NODRAW;
DRAWICON(CROSS(预防,卖出),H*1.02,2),NODRAW;
VV:=(C+L+H)/3;
DSA:=SMA(EMA(VV,2),2,1)LINETHICK2,COLORRED;
Y396:=DSA;
险1:=Y396*1.1,COLORLIRED;
险2:=Y396*1.125,COLORLIRED;
险3:=Y396*1.15,COLORLIRED;
良1:=Y396*0.9,COLORLIBLUE;
良2:=Y396*0.875,COLORLIBLUE;
良3:=Y396*0.85,COLORLIBLUE;
变色:=IF(Y396<REF(Y396,1),Y396,DRAWNULL),LINETHICK2,COLORBLUE;
{WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;}
{WSR2:=CROSS(WSR1,5);}
{WSR3:=CROSS(8,WSR1);}
{WSR4:=CROSS(WSR1,-5);}
{WSR5:=CROSS(WSR1,-8);}
{WSR6:=WSR3;}
{WSR7:=WSR4 OR WSR5;}
{WSR8:=WSR7 AND FILTER(WSR7,5);}
{WSR10:DRAWICON(WSR8,L-0.01,1);}
{WSR9:=WSR6 AND FILTER(WSR6,5);}
{WSR11:DRAWICON(WSR9,H+0.01,2);}
WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
WSR2:=CROSS(WSR1,5);
WSR3:=CROSS(8,WSR1);
WSR4:=CROSS(WSR1,-5);
WSR5:=CROSS(WSR1,-8);
WSR6:=WSR3;
WSR7:=WSR4 OR WSR5;
WSR8:=WSR7 AND FILTER(WSR7,5);
WSR10:
DRAWICON(WSR8,L-0.01,1),NODRAW;
WSR9:=WSR6 AND FILTER(WSR6,5);
WSR11:DRAWICON(WSR9,H+0.01,10),NODRAW;
WSR12:=O<良3;
DRAWICON(WSR12 AND FILTER(WSR12,12),L-0.03,9);
W1:=C>REF(C,1) AND macd<REF(MACD,1) AND MACD>0 AND V<REF(V,1);
W2:=C>REF(C,1) AND MACD<0 AND MACD<REF(MACD,1) AND V<REF(V,1);
XG:=W1 OR W2;
VAR1AA:=AMOUNT/VOL/7;
VAR2AA:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR3AA:=SUM(AMOUNT,10)/VAR1AA/7;
VAR4AA:=DMA(VAR2AA,VOL/VAR3AA);
VAR5AA:=(CLOSE-VAR4AA)/VAR4AA*100,COLORLIMAGENTA;
XG1:=CROSS(VAR5AA,MA(VAR5AA,2)) AND VAR5AA<0 AND C<(HHV(H,5)*0.88) AND REF(O>C,1) AND REF(O>C,2);
XG3:=XG AND XG1 AND L<良1;
WSR13:=O>良3 AND L<良1 OR XG3;
DRAWICON(WSR13 AND FILTER(WSR13,10),L-0.03,5);
WSR14:=H>险3;
DRAWICON(WSR14 AND FILTER(WSR14,15),H+0.03,10);
WSR15:=H<险3 AND H>险2;
DRAWICON(WSR15 AND FILTER(WSR15,5),H+0.03,4),NODRAW;
ZLCM:=EMA(WINNER(CLOSE)*70,3),NODRAW;{//主力筹码估算}
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3),NODRAW;{//散户筹码估算}
ZSHTL:=SHCM/(ZLCM+SHCM)*100,NODRAW;{//散户套牢筹码比率}
ZZLKP:=ZLCM/(ZLCM+SHCM)*100,NODRAW;{//主力控盘筹码比率}
ZZLJJ:=EMA(ZZLKP,89),NODRAW;{//主力警戒}
ZJLRQD:=INTPART(ZZLKP-ZZLJJ),NODRAW;{//资金流入强度}
天界:INTPART(ZSHTL),COLORCYAN,LINETHICK2,NODRAW;
凡间:ZJLRQD,LINETHICK2,COLORRED,NODRAW;
DRAWICON(CROSS(天界,凡间),H*1.02,12);
{涨停跌停标记}
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
均价线:=AMOUNT/V/100;
STICKLINE (涨停, OPEN ,CLOSE,4,0),COLORBLACK;
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
{基本面概况}
DRAWTEXT_FIX(ISLASTBAR,0.0,0,0,HYBLOCK),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.2,0,0,GNBLOCK),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.5,0,0,FGBLOCK),COLORWHITE;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:10
TA赋值:MAX(MAX((最高价-最低价),1日前的收盘价-最高价的绝对值),ABS(1日前的收盘价-最低价))
ATR赋值:TA的21日指数移动平均
VAR81赋值:N日前的收盘价-1日前的ATR
筹码线赋值:21日内VAR81最高值,画黄色
上赋值:(1+7/100)*筹码线
下赋值:(1-7/100)*筹码线
中赋值:(上+下)/2
输出XGD:DRAWBAND(上,RGB(258,88,1),下,RGB(258,88,1))
{输出XGD:DRAWBAND(上,RGB(136,30,0),下,RGB(0,0,0))
输出}
UPPER: 收盘价的60日简单移动平均+ 2*收盘价的60估算标准差,LINETHICK2,COLORFFFF00
输出LOWER: 收盘价的60日简单移动平均- 2*收盘价的60估算标准差,LINETHICK2,COLORFFFF00
输出{UPPER90: 收盘价的90日简单移动平均+ 2*收盘价的90估算标准差,LINETHICK2,COLORC080FF
LOWER90: 收盘价的90日简单移动平均- 2*收盘价的90估算标准差,LINETHICK2,COLORC080FF
}
{盖住双横杠}
F赋值:C/O
当满足条件F>=1时,在C和O之间画柱状线
当满足条件F>=1时,在C和H之间画柱状线
当满足条件F>=1时,在L和O之间画柱状线
当满足条件F<1时,在C和O之间画柱状线
当满足条件F<1时,在O和H之间画柱状线
当满足条件F<1时,在L和C之间画柱状线
输出{牛熊线}
短期线:收盘价的7日指数移动平均,画白色,LINETHICK1
中期线:收盘价的25日指数移动平均,COLORFF00FF,LINETHICK1
输出长期线MACP:中期线的55日指数移动平均,画黄色,LINETHICK2
输出牛熊分水岭905:收盘价的905日指数移动平均,画红色,LINETHICK3
输出大牛控盘线:收盘价的1650日简单移动平均,COLORGREEN,LINETHICK3
X_3赋值:MAX(DYNAINFO(3),DYNAINFO(5))
X_4赋值:MIN(DYNAINFO(3),DYNAINFO(6))
银河线赋值:(X_3-X_4)
DRAWICON(中期线上穿长期线MACP,长期线MACP,23)
VAR1赋值:收盘价>1日前的收盘价 AND 收盘价>2日前的收盘价
VAR2赋值:1日前的VAR1 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR3赋值:1日前的VAR2 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR4赋值:1日前的VAR3 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR5赋值:1日前的VAR4 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR6赋值:1日前的VAR5 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR7赋值:1日前的VAR6 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR8赋值:1日前的VAR7 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR9赋值:1日前的VAR8 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VARA赋值:1日前的VAR9 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VARB赋值:1日前的VARA AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VARC赋值:1日前的VARB AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VARD赋值:收盘价<1日前的收盘价 AND 收盘价<2日前的收盘价
VARE赋值:1日前的VARD AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VARF赋值:1日前的VARE AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR10:=1日前的VARF AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR11:=1日前的VAR10 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR12:=1日前的VAR11 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR13:=1日前的VAR12 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR14:=1日前的VAR13 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR15:=1日前的VAR14 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR16:=1日前的VAR15 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR17:=1日前的VAR16 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价
VAR18:=1日前的VAR17 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价
VAR19:=1日前的VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR
VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18 AND VAR1
VAR1A:=1日前的VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR
VAR8 OR VAR9 OR VARA OR VARB OR VARC AND VARD
当满足条件VAR19 AND C>短期线时,在L*0.998和1之间画图标
当满足条件VAR1A时,在H*1.002和2之间画图标
TJ5赋值:1日前的"CCI.CCI"<-100 AND "CCI.CCI">1日前的"CCI.CCI"
TJ6赋值:REF("KDJ.J"(9,3,3),1)<20 AND "KDJ.J"(9,3,3)>REF( "KDJ.J"(9,3,3),1)
TJ7赋值:1日前的"RSI.RSI1"<20 AND "RSI.RSI1">1日前的"RSI.RSI1"
TJ8赋值:统计5日满足TJ5的天数 AND 统计5日满足TJ6的天数 AND 统计5日满足TJ7的天数
大底赋值:TJ8上穿0.5
当满足条件大底时,在L*0.991和11之间画图标
输出T1:EMA(SLOPE(收盘价,34)*20+收盘价,75),画黄色,NODRAW
输出T2:C的120日简单移动平均,COLORCYAN,LINETHICK2,NODRAW
输出T3:C的250日简单移动平均,COLORGREEN,LINETHICK2,NODRAW
乖离线赋值:((C-1日前的T1)/20+T1)*1.20
TT1赋值:T1上穿T2 AND T1上穿T3 AND V>1日前的V
TT2赋值:T1>2日前的T1 AND V>1日前的V AND C上穿T1
DRAWICON((T2>=1日前的T2 AND C上穿T1 AND C上穿T2 AND V>1日前的V),L*0.997,9)
当满足条件TT2时,在L*0.995和11之间画图标
DRAWICON(C上穿乖离线 AND L!=H,H*1.005,12)
N1:=10
N2:=3
N3:=6
PJJ赋值:DMA((((最高价 + 最低价) + (收盘价 * 2)) / 4),0.9)
JJ赋值:1日前的PJJ的3日指数移动平均
QJJ赋值:(成交量 / (((最高价 - 最低价) * 2) - (收盘价 - OPEN的绝对值)))
XVL赋值:(IF((收盘价 > OPEN),(QJJ * (最高价 - 最低价)),IF((收盘价 < OPEN),(QJJ * ((最高价 - OPEN) + (收盘价 - 最低价))),(成交量 / 2))) + IF((收盘价 > OPEN),(0 - (QJJ * ((最高价 - 收盘价) + (OPEN - 最低价)))),IF((收盘价 < OPEN),(0 - (QJJ * (最高价 - 最低价))),(0 - (成交量 / 2)))))
ZLL赋值:(成交量 / CAPITAL)
HSL1赋值:IF((ZLL > 10),10,ZLL)
HSL赋值:((XVL / 20) / 1.15)
攻击流量赋值:(((HSL * 0.55) + (1日前的HSL * 0.33)) + (2日前的HSL * 0.22))
STICKLINE(((HSL * 0.4) >= 0),((HSL/1000) * 1.0),0,1,0),画红色,NODRAW
STICKLINE(((HSL * 0.4) < 0),((HSL/1000) * 1.0),0,1,0), 画蓝色,NODRAW
输出力度: (HSL / 1000),LINETHICK0,NODRAW
A1赋值:N1的力度日累和
A2赋值:A1的N2日指数移动平均
A3赋值:A1的N3日指数移动平均
输出累积能量:A1,NODRAW
输出BIAS1:(收盘价-收盘价的6日简单移动平均)/收盘价的6日简单移动平均*100,NODRAW
输出买:DRAWICON(A1上穿A3 AND C>短期线,L*0.998,1),NODRAW
输出卖:DRAWICON(A3上穿A1 AND BIAS1>1,H*1.002,10),NODRAW
VAR1Y:=(收盘价-收盘价的21日简单移动平均)/收盘价的21日简单移动平均*100
VAR2Y:=(收盘价-43日内最低价最低值)/(43日内最高价最高值-43日内最低价最低值)*100
VAR2Y的2日[1日权重]移动平均
卖出:100+(-VAR1Y的绝对值),NODRAW
VAR3Y的2日[1日权重]移动平均
DRAWICON(预防上穿卖出,H*1.02,2),NODRAW
VV赋值:(C+L+H)/3
DSA赋值:SMA(VV的2日指数移动平均,2,1)LINETHICK2,画红色
Y396赋值:DSA
险1赋值:Y396*1.1,COLORLIRED
险2赋值:Y396*1.125,COLORLIRED
险3赋值:Y396*1.15,COLORLIRED
良1赋值:Y396*0.9,COLORLIBLUE
良2赋值:Y396*0.875,COLORLIBLUE
良3赋值:Y396*0.85,COLORLIBLUE
变色赋值:IF(Y396<1日前的Y396,Y396,DRAWNULL),LINETHICK2, 画蓝色
{WSR1赋值:(收盘价-收盘价的5日简单移动平均)/收盘价的5日简单移动平均*100
}
{WSR2赋值:WSR1上穿5
}
{WSR3赋值:8上穿WSR1
}
{WSR4赋值:WSR1上穿-5
}
{WSR5赋值:WSR1上穿-8
}
{WSR6赋值:WSR3
}
{WSR7赋值:WSR4 OR WSR5
}
{WSR8赋值:WSR7 AND WSR7的5过滤
当满足条件WSR8时,在L-0.01和1之间画图标
}
{WSR9赋值:WSR6 AND WSR6的5过滤
当满足条件WSR9时,在H+0.01和2之间画图标
}
WSR1赋值:(收盘价-收盘价的5日简单移动平均)/收盘价的5日简单移动平均*100
WSR2赋值:WSR1上穿5
WSR3赋值:8上穿WSR1
WSR4赋值:WSR1上穿-5
WSR5赋值:WSR1上穿-8
WSR6赋值:WSR3
WSR7赋值:WSR4 OR WSR5
WSR8赋值:WSR7 AND WSR7的5过滤
当满足条件WSR8时,在L-0.01和1之间画图标
WSR9赋值:WSR6 AND WSR6的5过滤
当满足条件WSR9时,在H+0.01和10之间画图标
WSR12赋值:O<良3
DRAWICON(WSR12 AND WSR12的12过滤,L-0.03,9)
W1赋值:C>1日前的C AND MACD<1日前的MACD AND MACD>0 AND V<1日前的V
W2赋值:C>1日前的C AND MACD<0 AND MACD<1日前的MACD AND V<1日前的V
XG赋值:W1 OR W2
VAR1AA:=AMOUNT/成交量/7
VAR2AA:=(3*最高价+最低价+OPEN+2*收盘价)/7
VAR3AA:=10的AMOUNT日累和/VAR1AA/7
VAR4AA:=DVAR2AA的成交量/VAR3AA日简单移动平均
VAR5AA:=(收盘价-VAR4AA)/VAR4AA*100,COLORLIMAGENTA
XG1:=CROSS(VAR5AA,VAR5AA的2日简单移动平均) AND VAR5AA<0 AND C<(5日内H最高值*0.88) AND 1日前的O>C AND 2日前的O>C
XG3:=XG AND XG1 AND L<良1
WSR13赋值:O>良3 AND L<良1 OR XG3
DRAWICON(WSR13 AND WSR13的10过滤,L-0.03,5)
WSR14赋值:H>险3
DRAWICON(WSR14 AND WSR14的15过滤,H+0.03,10)
WSR15赋值:H<险3 AND H>险2
DRAWICON(WSR15 AND WSR15的5过滤,H+0.03,4),NODRAW
ZLCM赋值:EMA(收盘价计算的获利盘比例*70,3),NODRAW
{//主力筹码估算}
SHCM赋值:EMA((收盘价*1.1计算的获利盘比例-WINNER(收盘价*0.9))*80,3),NODRAW
{//散户筹码估算}
ZSHTL赋值:SHCM/(ZLCM+SHCM)*100,NODRAW
{//散户套牢筹码比率}
ZZLKP赋值:ZLCM/(ZLCM+SHCM)*100,NODRAW
{//主力控盘筹码比率}
ZZLJJ赋值:ZZLKP的89日指数移动平均,NODRAW
{//主力警戒}
ZJLRQD赋值:INTPART(ZZLKP-ZZLJJ),NODRAW
输出{//资金流入强度}
天界:INTPART(ZSHTL),COLORCYAN,LINETHICK2,NODRAW
输出凡间:ZJLRQD,LINETHICK2,画红色,NODRAW
DRAWICON(天界上穿凡间,H*1.02,12)
{涨停跌停标记}
C2赋值:1日前的C
涨停赋值:IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0)
均价线赋值:AMOUNT/V/100
STICKLINE (涨停, OPEN ,收盘价,4,0),COLORBLACK
当满足条件涨停时,在OPEN和收盘价之间画柱状线
跌停赋值:IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0)
当满足条件跌停时,在OPEN和收盘价之间画柱状线
当满足条件ISLASTBAR时,在横轴0.0纵轴0位置书写文字
当满足条件ISLASTBAR时,在横轴0.1纵轴0位置书写文字
当满足条件ISLASTBAR时,在横轴0.2纵轴0位置书写文字
当满足条件ISLASTBAR时,在横轴0.5纵轴0位置书写文字