通达信公式操盘手小护士副图
VARTIME:=IF(YEAR>=2050 AND MONTH>=11 AND DAY>=07,0,1);
VARDTIME:=IF(YEAR=2050 AND MONTH=11 AND DAY=06,1,0);
DRAWTEXT(VARDTIME,115,''),COLOR008000;
DRAWTEXT(VARDTIME,100,''),COLOR008000;
{股票指标网}
DRAWTEXT(VARDTIME,85,''),COLOR008000;
DRAWTEXT(VARDTIME,70,''),COLOR008000;
DRAWTEXT(VARDTIME,45,''),COLOR008000;
QW1:=(HIGH+LOW+CLOSE*2)/4*VARTIME;
QW3:=EMA(QW1,10)*VARTIME;
QW4:=STD(QW1,10)*VARTIME;
QW5:=(QW1-QW3)*100/QW4*VARTIME;
QW6:=EMA(QW5,5)*VARTIME;
RK7:=EMA(QW6,10)*VARTIME;
涨:EMA(QW6,10)+100/2-5,LINETHICK1,COLORRED;
跌:EMA(涨,4),LINETHICK1,COLORFFFF34;
多线:IF(CROSS(涨,跌) AND 跌<-10,30,0),LINETHICK1,COLORFF00FF;
空线:IF(CROSS(跌,80),70,100),COLOR0099FF,LINETHICK1;
买1:EMA(跌,4)*VARTIME,COLORWHITE;
买2:EMA(买1,4)*VARTIME,COLORGREEN;
买M3:=EMA(买2,4)*VARTIME,COLORYELLOW;
买M4:=EMA(买M3,4)*VARTIME,COLORCC9900;
-10,POINTDOT,COLOR888888,LINETHICK2;
80,POINTDOT,COLOR888888,LINETHICK2;
STICKLINE(涨<REF(涨,1)*VARTIME,涨,MA(涨,3),0,0 ),COLORWHITE;
STICKLINE(涨<REF(涨,1)*VARTIME,涨,MA(涨,3),2,0 ),COLOR008800;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),0,0) ,COLOR00BBFF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),2,0) ,COLOR0011FF;
DRAWICON(多线,30,1),COLORFF00FF;
DRAWICON(CROSS(跌,80),70,2),COLORGREEN;
DRAWTEXT(CROSS(涨,跌) AND 跌<20 AND 跌>-10,40,'买入'),COLORCCFF99;
DRAWTEXT(多线>0,-20,'看涨'),COLOR0000FF;
VAR811:=SUMBARS(VOL,FINANCE(7)*100)*VARTIME;
VAR822:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL)*VARTIME;
VAR883:=(CLOSE-VAR822)/VAR822*100*VARTIME;
VAR884:=HHV(VAR883,VAR811)*VARTIME;
VAR885:=LLV(VAR883,VAR811)*VARTIME;
VAR886:=(VAR883-VAR885)/(VAR884-VAR885)*100*VARTIME;
K:=SMA(VAR886,3,1)*VARTIME;
D:=SMA(K,3,1)*VARTIME;
J:=3*K-2*D; {股票指标网}
MA1:=MA(J,3)*VARTIME,COLORGREEN;
STICKLINE(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,涨,涨+20,3,0),COLORYELLOW;
DRAWTEXT(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,60,'考虑买进'),COLORFFFFFF;
VAR1:=MA(CLOSE,152);
VAR2:=MA(CLOSE,194);
VAR3:=VAR2+2*STD(CLOSE,170);
VAR4:=VAR1+2*STD(CLOSE,170);
顶:(CLOSE>VAR3)*13*10,COLORBLUE,LINETHICK2;
VAR6:=EMA(HHV(HIGH,500),21);
VAR7:=EMA(HHV(HIGH,250),21);
VAR8:=EMA(HHV(HIGH,90),21);
VAR9:=EMA(LLV(LOW,500),21);
VARA:=EMA(LLV(LOW,250),21);
VARB:=EMA(LLV(LOW,90),21);
VARC:=EMA((VAR9*0.96+VARA*0.96+VARB*0.96+VAR6*0.558+VAR7*0.558+VAR8*0.558)/6,21);
VARD:=EMA((VAR9*1.25+VARA*1.23+VARB*1.2+VAR6*0.55+VAR7*0.55+VAR8*0.65)/6,21);
VARE:=EMA((VAR9*1.3+VARA*1.3+VARB*1.3+VAR6*0.68+VAR7*0.68+VAR8*0.68)/6,21);
VARF:=EMA((VARC*3+VARD*2+VARE)/6*1.738,21);
VAR10:=REF(LOW,1);
VAR11:=SMA(ABS(LOW-VAR10),3,1)/SMA(MAX(LOW-VAR10,0),3,1)*100;
VAR12:=EMA(IF(CLOSE*1.35<=VARF,VAR11*10,VAR11/10),3);
VAR13:=LLV(LOW,30);
VAR14:=HHV(VAR12,30);
VAR15:=IF(MA(CLOSE,58),1,0);
VAR16:=EMA(IF(LOW<=VAR13,(VAR12+VAR14*2)/2,0),3)/618*VAR15;
VAR17:=IF(VAR16>50,50,VAR16)/3.82*6;
VAR18:=HHV(HIGH,30);
VAR19:=LLV(LOW,30);
NL:=EMA((CLOSE-VAR19)/(VAR18-VAR19)*100,5)/8*10,COLORYELLOW,LINETHICK2;
VAR1A:=(EMA(AMOUNT,5)/EMA(VOL,5)/100-EMA(AMOUNT,125)/EMA(VOL,125)/100)/(EMA(AMOUNT,5)/EMA(VOL,5)/100)<-0.4;
VAR1B:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1C:=SMA(VAR1B,3,1);
VAR1D:=SMA(VAR1C,3,1);
VAR1E:=(-100)*(HHV(HIGH,52)-CLOSE)/(HHV(HIGH,52)-LLV(LOW,52));
VAR1F:=COUNT(VAR1A,5)>=1 AND (VAR1E<-99.9 OR VAR1D<15 AND VAR1C<12);
VAR20:=VOL/FINANCE(7);
VAR21:=100*WINNER(CLOSE);
VAR22:=MA(VAR21,3);
VAR23:=MA(VAR20,34);
VAR24:=VAR22<VAR23*100 AND VAR21<VAR20;
VAR25:=SUM(IF(CLOSE>REF(CLOSE,1),1,0),0);
VAR26:=SUMBARS(VOL,CAPITAL);
VAR27:=IF(CLOSE>LLV(CLOSE,VAR26),1,-1)*IF(VAR25>LLV(VAR25,VAR26),1,-1);
VAR28:=COUNT(IF(VAR27=-1,1,0)=1,8)>2;
VAR29:=(CLOSE-DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100)))/DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100))*100<-18;
VAR2A:=(CLOSE-MIN(REF(CLOSE,5)*0.865,REF(CLOSE,21)*0.772))/CLOSE<0.01;
VAR2B:=VAR28 AND VAR29 AND VAR2A;
VAR2C:=VOL/CAPITAL>=0.02 AND VOL/CAPITAL<=0.2 AND OPEN=1.105;
VAR2D:=VAR2C AND COUNT(VAR2C,5)=1;
VAR2E:=VAR2B OR VAR2C;
VAR2F:=REF(CLOSE,1);
VAR30:=SMA(MAX(CLOSE-VAR2F,0),7,1)/SMA(ABS(CLOSE-VAR2F),7,1)*100;
VAR31:=SMA(MAX(CLOSE-VAR2F,0),13,1)/SMA(ABS(CLOSE-VAR2F),13,1)*100;
VAR32:=VAR30<20 AND VAR31<25;
VAR33:=VAR32;
VAR34:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL,0)),0);
VAR35:=IF(CLOSE>LLV(CLOSE,VAR26),1,-1);
VAR36:=IF(VAR34>LLV(VAR34,VAR26),1,-1);
VAR37:=VAR35*VAR36;
VAR38:=IF(VAR37=-1,1,0);
VAR39:=VAR38 AND CLOSE=LLV(CLOSE,120) AND VAR21<VAR20;
VAR3A:=IF(FILTER(VAR1F AND VAR24 AND VAR2E AND VAR33 AND VAR39>0,4),70,0);
DRAWTEXT(FILTER(VAR24 AND VAR2E AND VAR33 OR VAR33 AND VAR39,1),VAR2*4-13,'抄底'),COLORRED;
STICKLINE(IF(VAR24 AND VAR2E AND VAR33 OR VAR33 AND VAR39,35,0),0,VAR2*4-4,15,0);
VAR3B:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR3C:=SMA(VAR3B,3,1);
VAR3D:=SMA(VAR3C,3,1);
VAR3E:=SMA(VAR3D,3,1);
VAR40:=CROSS(VAR3E,VAR3D) AND VAR3D>80;
VAR41:=5;{股票指标网}
DRAWTEXT(CROSS(VAR41,NL),30,'★做底'),COLORWHITE;
VAR42:="RSI#WEEK(12,12,12)";
VAR43:="RSI#WEEK(55,55,55)";
VAR44:=REF(CLOSE,1);
VAR45:=SMA(MAX(CLOSE-VAR44,0),6,1)/SMA(ABS(CLOSE-VAR44),6,1)*100;
VAR46:=FILTER(VAR40,5)=1 AND BARSLAST(CROSS(VAR42,VAR43) AND VAR42<=60)>=20;
STICKLINE(CROSS(VAR42,VAR43) AND VAR42<=60,0,VAR2*15+5,2,0),COLORMAGENTA;
DRAWTEXT(CROSS(VAR42,VAR43) AND VAR42<=60,(VAR2*12+3)/1,'加仓'),COLORMAGENTA;
STICKLINE(CROSS(84,VAR45),0,VAR2*15+3,2,1),COLORGREEN;
STICKLINE(VAR46,VAR2*15+10,10,2,0.3),COLORGREEN ;
{IF(CROSS(84,VAR45),DRAWTEXT(CROSS(84,VAR45),80,'防空警报'),IF(VAR46,DRAWTEXT(VAR46,100,'减仓'),0)),COLORGREEN ,;}
DRAWTEXT(CROSS(84,VAR45),80,'防空警报'),COLORGREEN ,;
DRAWTEXT(VAR46,100,'减仓'),COLORGREEN ,
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
该公式包含未来函数:FINANCE
该公式包含未来函数:#WEEK
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
如果YEAR>=2050 AND MONTH>=11 AND DAY>=07返回0否则返回1
如果YEAR=2050 AND MONTH=11 AND DAY=06返回1否则返回0
当满足条件VARDTIME时,在115和''位置书写文字
当满足条件VARDTIME时,在100和''位置书写文字
当满足条件VARDTIME时,在85和''位置书写文字
当满足条件VARDTIME时,在70和''位置书写文字
当满足条件VARDTIME时,在45和''位置书写文字
QW1赋值:(最高价+最低价+收盘价*2)/4*VARTIME
QW3赋值:QW1的10日指数移动平均*VARTIME
QW4赋值:QW1的10估算标准差*VARTIME
QW5赋值:(QW1-QW3)*100/QW4*VARTIME
QW6赋值:QW5的5日指数移动平均*VARTIME
RK7赋值:QW6的10日指数移动平均*VARTIME
输出
涨:QW6的10日指数移动平均+100/2-5,LINETHICK1,画红色
输出
跌:涨的4日指数移动平均,LINETHICK1,COLORFFFF34
输出
多线:IF(涨上穿跌 AND 跌<-10,30,0),LINETHICK1,COLORFF00FF
输出
空线:IF(跌上穿80,70,100),COLOR0099FF,LINETHICK1
输出
买1:跌的4日指数移动平均*VARTIME,画白色
输出
买2:买1的4日指数移动平均*VARTIME,画绿色
买M3赋值:买2的4日指数移动平均*VARTIME,画黄色
买M4赋值:买M3的4日指数移动平均*VARTIME,COLORCC9900
-10,POINTDOT,COLOR888888, 线宽为2
80,POINTDOT,COLOR888888, 线宽为2
STICKLINE(涨<1日前的涨*VARTIME,涨,涨的3日简单移动平均,0,0 ),画白色
STICKLINE(涨<1日前的涨*VARTIME,涨,涨的3日简单移动平均,2,0 ),COLOR008800
STICKLINE(涨> 1日前的涨,涨,涨的3日指数移动平均,0,0) ,COLOR00BBFF
STICKLINE(涨> 1日前的涨,涨,涨的3日指数移动平均,2,0) ,COLOR0011FF
当满足条件多线时,在30和1之间画图标
DRAWICON(跌上穿80,70,2),画绿色
DRAWTEXT(涨上穿跌 AND 跌<20 AND 跌>-10,40,'买入'),COLORCCFF99
当满足条件多线>0时,在-20和'看涨'位置书写文字
VAR811赋值:SUMBARS(成交量,FINANCE(7)*100)*VARTIME
VAR822赋值:D收盘价的12日指数移动平均的5的成交量日累和/3/当前流通股本日简单移动平均*VARTIME
VAR883赋值:(收盘价-VAR822)/VAR822*100*VARTIME
VAR884赋值:VAR811日内VAR883最高值*VARTIME
VAR885赋值:VAR811日内VAR883最低值*VARTIME
VAR886赋值:(VAR883-VAR885)/(VAR884-VAR885)*100*VARTIME
VAR886的3日[1日权重]移动平均
K的3日[1日权重]移动平均
J赋值:3*K-2*D
{股票指标网}
MA1赋值:J的3日简单移动平均*VARTIME,画绿色
STICKLINE(J>MA1 AND J<=3的5过滤=1 AND 跌<0,涨,涨+20,3,0),画黄色
DRAWTEXT(J>MA1 AND J<=3的5过滤=1 AND 跌<0,60,'考虑买进'),COLORFFFFFF
VAR1赋值:收盘价的152日简单移动平均
VAR2赋值:收盘价的194日简单移动平均
VAR3赋值:VAR2+2*收盘价的170估算标准差
VAR4赋值:VAR1+2*收盘价的170估算标准差
输出
顶:(收盘价>VAR3)*13*10, 画蓝色, 线宽为2
VAR6赋值:E500日内最高价最高值的21日简单移动平均
VAR7赋值:E250日内最高价最高值的21日简单移动平均
VAR8赋值:E90日内最高价最高值的21日简单移动平均
VAR9赋值:E500日内最低价最低值的21日简单移动平均
VARA赋值:E250日内最低价最低值的21日简单移动平均
VARB赋值:E90日内最低价最低值的21日简单移动平均
VARC赋值:EMA((VAR9*0.96+VARA*0.96+VARB*0.96+VAR6*0.558+VAR7*0.558+VAR8*0.558)/6,21)
VARD赋值:EMA((VAR9*1.25+VARA*1.23+VARB*1.2+VAR6*0.55+VAR7*0.55+VAR8*0.65)/6,21)
VARE赋值:EMA((VAR9*1.3+VARA*1.3+VARB*1.3+VAR6*0.68+VAR7*0.68+VAR8*0.68)/6,21)
VARF赋值:EMA((VARC*3+VARD*2+VARE)/6*1.738,21)
VAR10:=1日前的最低价
VAR11:=SMA(最低价-VAR10的绝对值,3,1)/SMA(最低价-VAR10和0较大值,3,1)*100
如果收盘价*1.35<=VARF返回VAR11*10否则返回VAR11/10
VAR13:=30日内最低价最低值
VAR14:=30日内VAR12最高值
VAR15:=IF(收盘价的58日简单移动平均,1,0)
VAR16:=EMA(IF(最低价<=VAR13,(VAR12+VAR14*2)/2,0),3)/618*VAR15
如果VAR16>50返回50否则返回VAR16
VAR18:=30日内最高价最高值
VAR19:=30日内最低价最低值
NL赋值:EMA((收盘价-VAR19)/(VAR18-VAR19)*100,5)/8*10,画黄色, 线宽为2
VAR1A:=(成交额的5日指数移动平均/成交量的5日指数移动平均/100-成交额的125日指数移动平均/成交量的125日指数移动平均/100)/(成交额的5日指数移动平均/成交量的5日指数移动平均/100)<-0.4
VAR1B:=(收盘价-15日内最低价最低值)/(15日内最高价最高值-15日内最低价最低值)*100
VAR1B的3日[1日权重]移动平均
VAR1C的3日[1日权重]移动平均
VAR1E:=(-100)*(52日内最高价最高值-收盘价)/(52日内最高价最高值-52日内最低价最低值)
VAR1F:=统计5日满足VAR1A的天数>=1 AND (VAR1E<-99.9 OR VAR1D<15 AND VAR1C<12)
VAR20:=成交量/FINANCE(7)
VAR21:=100*收盘价计算的获利盘比例
VAR22:=VAR21的3日简单移动平均
VAR23:=VAR20的34日简单移动平均
VAR24:=VAR22
VAR25:=SUM(IF(收盘价>1日前的收盘价,1,0),0)
VAR26:=成交量累加至当前流通股本的天数
VAR27:=IF(收盘价>VAR26日内收盘价最低值,1,-1)*IF(VAR25>VAR26日内VAR25最低值,1,-1)
如果VAR27=-1返回1否则返回0
VAR29:=(收盘价-DMA((3*最高价+最低价+开盘价+2*收盘价)/7,成交量/(13的成交额日累和/(成交额/成交量/100)/100)))/DMA((3*最高价+最低价+开盘价+2*收盘价)/7,成交量/(13的成交额日累和/(成交额/成交量/100)/100))*100<-18
VAR2A:=(收盘价-5日前的收盘价*0.865和21日前的收盘价*0.772的较小值)/收盘价<0.01
VAR2B:=VAR28 AND VAR29 AND VAR2A
VAR2C:=成交量/当前流通股本>=0.02 AND 成交量/当前流通股本<=0.2 AND 开盘价=1.105
VAR2D:=VAR2C AND 统计5日满足VAR2C的天数=1
VAR2E:=VAR2B OR VAR2C
VAR2F:=1日前的收盘价
VAR30:=SMA(收盘价-VAR2F和0较大值,7,1)/SMA(收盘价-VAR2F的绝对值,7,1)*100
VAR31:=SMA(收盘价-VAR2F和0较大值,13,1)/SMA(收盘价-VAR2F的绝对值,13,1)*100
VAR32:=VAR30<20 AND VAR31<25
VAR33:=VAR32
VAR34:=SUM(IF(收盘价>1日前的收盘价,成交量,IF(收盘价<1日前的收盘价,0-成交量,0)),0)
VAR35:=IF(收盘价>VAR26日内收盘价最低值,1,-1)
VAR36:=IF(VAR34>VAR26日内VAR34最低值,1,-1)
VAR37:=VAR35*VAR36
如果VAR37=-1返回1否则返回0
VAR39:=VAR38 AND 收盘价=120日内收盘价最低值 AND VAR21
VAR3A:=IF(VAR1F AND VAR24 AND VAR2E AND VAR33 AND VAR39>0的4过滤,70,0)
DRAWTEXT(VAR24 AND VAR2E AND VAR33 OR VAR33 AND VAR39的1过滤,VAR2*4-13,'抄底'),画红色
如果VAR24 AND VAR2E AND VAR33 OR VAR33 AND VAR39返回35否则返回0
VAR3B:=(收盘价-36日内最低价最低值)/(36日内最高价最高值-36日内最低价最低值)*100
VAR3B的3日[1日权重]移动平均
VAR3C的3日[1日权重]移动平均
VAR3D的3日[1日权重]移动平均
VAR40:=VAR3E上穿VAR3D AND VAR3D>80
VAR41:=5
{股票指标网}
DRAWTEXT(VAR41上穿NL,30,'★做底'),画白色
VAR42:="RSI#WEEK(12,12,12)"
VAR43:="RSI#WEEK(55,55,55)"
VAR44:=1日前的收盘价
VAR45:=SMA(收盘价-VAR44和0较大值,6,1)/SMA(收盘价-VAR44的绝对值,6,1)*100
VAR46:=VAR40的5过滤=1 AND 上次VAR42上穿VAR43 AND VAR42<=60距今天数>=20
STICKLINE(VAR42上穿VAR43 AND VAR42<=60,0,VAR2*15+5,2,0),画洋红色
DRAWTEXT(VAR42上穿VAR43 AND VAR42<=60,(VAR2*12+3)/1,'加仓'),画洋红色
STICKLINE(84上穿VAR45,0,VAR2*15+3,2,1),画绿色
当满足条件VAR46时,在VAR2*15+10和10之间画柱状线
{IF(84上穿VAR45,DRAWTEXT(84上穿VAR45,80,'防空警报'),IF(VAR46,DRAWTEXT(VAR46,100,'减仓'),0)),画绿色 ,
}
DRAWTEXT(84上穿VAR45,80,'防空警报'),画绿色 ,
当满足条件VAR46时,在100和'减仓'位置书写文字