通达信主力意向操盘动机副图主力进场、洗盘、控盘、拉高、出货
N1:=9;N2:=5;VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR000055;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORFFFF00;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLORFFFF00;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.6,0),COLOR000093;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.1,0),COLOR0000C6;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5,0),COLOR4A4AFF;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.9,0),COLOR7D7DFF;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLORAAAAFF;VAR21:=SMA(ABS(HIGH-VAR1),13,1)/SMA(MIN(HIGH-VAR1,0),10,1);VAR31:=EMA(VAR21,10);VAR41:=HHV(HIGH,33);VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3);拉高:IF(VAR51<REF(VAR51,1),VAR51,0);STICKLINE(VAR51<REF(VAR51,1),0,VAR51,3,0),COLOR005555;STICKLINE(VAR51<REF(VAR51,1),0,VAR51,2.6,0),COLOR007777;STICKLINE(VAR51<REF(VAR51,1),0,VAR51,2.1,0),COLOR009999;STICKLINE(VAR51<REF(VAR51,1),0,VAR51,1.5,0),COLOR11BBBB;STICKLINE(VAR51<REF(VAR51,1),0,VAR51,0.9,0),COLOR33DDDD;STICKLINE(VAR51<REF(VAR51,1),0,VAR51,0.3,0),COLOR55FFFF;出货:IF(VAR51>REF(VAR51,1),VAR51,0);STICKLINE(VAR51>REF(VAR51,1),0,VAR51,3,0 ),COLORCYAN;STICKLINE(VAR51>REF(VAR51,1),0,VAR51,3,0),COLOR555555;STICKLINE(VAR51>REF(VAR51,1),0,VAR51,2.6,0),COLOR777777;STICKLINE(VAR51>REF(VAR51,1),0,VAR51,2.1,0),COLOR999999;STICKLINE(VAR51>REF(VAR51,1),0,VAR51,1.5,0),COLORBBBBBB;STICKLINE(VAR51>REF(VAR51,1),0,VAR51,0.9,0),COLORDDDDDD;STICKLINE(VAR51>REF(VAR51,1),0,VAR51,0.3,0),COLORFFFFFF;{股票指标网}VAR18:=EMA(EMA(CLOSE,9),9);控盘:=(VAR18-REF(VAR18,1))/REF(VAR18,1)*1000;STICKLINE(控盘<0,控盘,0,2,0),COLORWHITE;A10:=CROSS(控盘,0);无控:IF(控盘<0,控盘,0),COLORWHITE;始控:IF(A10,5,0),COLORWHITE;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,2,0),COLORRED;有控:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED;VAR28:=100*WINNER(CLOSE*0.95);STICKLINE(VAR28>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,2,0),COLORFF00FF;高控:IF(VAR28>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF;STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,2,0),COLOR00FF00;卖出:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00;QS:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),9,1),COLOR0000FF;DD:IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,100,0),LINETHICK1;DRAWICON(DD=100,100,1),LINETHICK1,COLOR0088FF;V5:=SMA(QS,2,1),COLORCYAN;抄底:IF(QS>REF(QS,1) AND REF(QS,1)<REF(QS,2) AND QS<20 ,20,0),COLORYELLOW,LINETHICK2;追买:IF(QS>REF(QS,1) AND CROSS(QS,V5) AND V5<80,30,0),COLORBLUE,LINETHICK2;逃顶:=IF(QS<REF(QS,1) AND REF(QS,1)>REF(QS,2) AND QS>70,30,0),COLORLIBLUE,LINETHICK2;{STICKLINE(逃顶,80,100,5,1),COLOR00FF00;}MTM:=C-REF(C,1);快:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORRED,LINETHICK2;慢:=MA(快,N2),COLORGREEN,LINETHICK1;D:=CROSS(ZIG(3,50/5)*1,MA(ZIG(3,50/5)*1,2))*1,COLORRED;W:=CROSS(MA(ZIG(3,50/5)*1,2),ZIG(3,50/5)*1)*1,COLORBLUE;DRAWTEXT(W=1,快*1.1,'↓跌' ),COLORGREEN;DRAWTEXT(D=1,慢*1.1,'↑涨'),COLORRED;
未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:WINNER
该公式包含未来函数:COST
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N1赋值:9
N2赋值:5
VAR1赋值:REF((LOW+开盘价+收盘价+最高价)/4,1)
VAR2赋值:SMA(LOW-VAR1的绝对值,13,1)/SMA(LOW-VAR1和0较大值,10,1)
VAR3赋值:VAR2的10日指数移动平均
VAR4赋值:33日内LOW最低值
如果LOW<=VAR4返回VAR3否则返回0
输出进场:IF(VAR5>1日前的VAR5,VAR5,0),COLORRED
STICKLINE(VAR5>1日前的VAR5,0,VAR5,3,0 ),COLOR000055
STICKLINE(VAR5>1日前的VAR5,0,VAR5,2.6,0 ),COLOR000077
STICKLINE(VAR5>1日前的VAR5,0,VAR5,2.1,0 ),COLOR000099
STICKLINE(VAR5>1日前的VAR5,0,VAR5,1.5,0 ),COLOR0000BB
STICKLINE(VAR5>1日前的VAR5,0,VAR5,0.9,0 ),COLOR0000DD
STICKLINE(VAR5>1日前的VAR5,0,VAR5,0.3,0 ),COLOR0000FF
输出洗盘:IF(VAR5<1日前的VAR5,VAR5,0),COLORFFFF00
STICKLINE(VAR5<1日前的VAR5,0,VAR5,3,0),COLORFFFF00
STICKLINE(VAR5<1日前的VAR5,0,VAR5,2.6,0),COLOR000093
STICKLINE(VAR5<1日前的VAR5,0,VAR5,2.1,0),COLOR0000C6
STICKLINE(VAR5<1日前的VAR5,0,VAR5,1.5,0),COLOR4A4AFF
STICKLINE(VAR5<1日前的VAR5,0,VAR5,0.9,0),COLOR7D7DFF
STICKLINE(VAR5<1日前的VAR5,0,VAR5,0.3,0),COLORAAAAFF
VAR21:=SMA(最高价-VAR1的绝对值,13,1)/SMA(最高价-VAR1和0的较小值,10,1)
VAR31:=VAR21的10日指数移动平均
VAR41:=33日内最高价最高值
如果最高价>=VAR41返回VAR31否则返回0
输出拉高:IF(VAR51<1日前的VAR51,VAR51,0)
STICKLINE(VAR51<1日前的VAR51,0,VAR51,3,0),COLOR005555
STICKLINE(VAR51<1日前的VAR51,0,VAR51,2.6,0),COLOR007777
STICKLINE(VAR51<1日前的VAR51,0,VAR51,2.1,0),COLOR009999
STICKLINE(VAR51<1日前的VAR51,0,VAR51,1.5,0),COLOR11BBBB
STICKLINE(VAR51<1日前的VAR51,0,VAR51,0.9,0),COLOR33DDDD
STICKLINE(VAR51<1日前的VAR51,0,VAR51,0.3,0),COLOR55FFFF
输出出货:IF(VAR51>1日前的VAR51,VAR51,0)
STICKLINE(VAR51>1日前的VAR51,0,VAR51,3,0 ),画青色
STICKLINE(VAR51>1日前的VAR51,0,VAR51,3,0),COLOR555555
STICKLINE(VAR51>1日前的VAR51,0,VAR51,2.6,0),COLOR777777
STICKLINE(VAR51>1日前的VAR51,0,VAR51,2.1,0),COLOR999999
STICKLINE(VAR51>1日前的VAR51,0,VAR51,1.5,0),COLORBBBBBB
STICKLINE(VAR51>1日前的VAR51,0,VAR51,0.9,0),COLORDDDDDD
STICKLINE(VAR51>1日前的VAR51,0,VAR51,0.3,0),COLORFFFFFF
{股票指标网}VAR18:=收盘价的9日指数移动平均,9)
控盘赋值:(VAR18-1日前的VAR18)/1日前的VAR18*1000
当满足条件控盘<0时,在控盘和0之间画柱状线
A10赋值:控盘上穿0
如果控盘<0返回控盘否则返回0
如果A10返回5否则返回0
STICKLINE(控盘>1日前的控盘 AND 控盘>0,控盘,0,2,0),COLORRED
输出有控:IF(控盘>1日前的控盘 AND 控盘>0,控盘,0),COLORRED
VAR28:=100*收盘价*0.95计算的获利盘比例
STICKLINE(VAR28>50 AND 获利盘为85%的成本分布<收盘价 AND 控盘>0,控盘,0,2,0),COLORFF00FF
输出高控:IF(VAR28>50 AND 获利盘为85%的成本分布<收盘价 AND 控盘>0,控盘,0),COLORFF00FF
STICKLINE(控盘<1日前的控盘 AND 控盘>0,控盘,0,2,0),COLOR00FF00
输出卖出:IF(控盘<1日前的控盘 AND 控盘>0,控盘,0),COLOR00FF00
输出QS:3*SMA((收盘价-27日内LOW最低值)/(27日内最高价最高值-27日内LOW最低值)*100,5,1)-2*SMA(SMA((收盘价-27日内LOW最低值)/(27日内最高价最高值-27日内LOW最低值)*100,5,1),9,1),COLOR0000FF
输出DD:IF((C的5日简单移动平均-C)/C>0.04 AND (C的10日简单移动平均-C的5日简单移动平均)/C的5日简单移动平均>0.04,100,0),LINETHICK1
当满足条件DD=100时,在100和1之间画图标
QS的2日[1日权重]移动平均
输出抄底:IF(QS>1日前的QS AND 1日前的QS<2日前的QS AND QS<20 ,20,0),COLORYELLOW, 线宽为2
输出追买:IF(QS>1日前的QS AND QS上穿V5 AND V5<80,30,0), 画蓝色, 线宽为2
逃顶赋值:IF(QS<1日前的QS AND 1日前的QS>2日前的QS AND QS>70,30,0),COLORLIBLUE, 线宽为2
当满足条件逃顶时,在80和100之间画柱状线
}MTM赋值:C-1日前的C
快赋值:100*MTM的N1日指数移动平均,N1)/EMA(EMA(MTM的绝对值,N1),N1),COLORRED, 线宽为2
慢赋值:快的N2日简单移动平均,画绿色,LINETHICK1
D赋值:CROSS(ZIG(3,50/5)*1,MA(ZIG(3,50/5)*1,2))*1,COLORRED
W赋值:CROSS(MA(ZIG(3,50/5)*1,2),ZIG(3,50/5)*1)*1, 画蓝色
当满足条件W=1时,在快*1.1和'↓跌' 位置书写文字
当满足条件D=1时,在慢*1.1和'↑涨'位置书写文字