高抛低吸 同花顺分时指标

 

源码

均价:=MONEY/VOL;
e:=(NEW-均价)/均价;
//(1)上涨动量指标;
IF(FORMATTIME(1)>0)
{
DIFF :=EMA(NEW,5) - EMA(NEW,12);
DEA  :=EMA(DIFF,9);
上涨动量 :2*(DIFF-DEA)*100;
}
ELSE
{
DIFF:=0;
DEA:=0;
上涨动量:0;
}
//(2)大单指标与大单差值{大单指标};
DDJL:=((BIGBUYCOUNT1+BIGBUYCOUNT2+WAITBUYCOUNT1+WAITBUYCOUNT2)-(BIGSELLCOUNT1+BIGSELLCOUNT2+WAITSELLCOUNT1+WAITSELLCOUNT2))/SHGZG*100;
zdm:=(BIGBUYCOUNT1+BIGBUYCOUNT2)/SHGZG*100;
dm:=ddjl-REF(ddjl,1);
dz:=zdm-REF(zdm,1);
zdzq:=COUNT(dz=0,3)>=2;
//(3)成交量{成交量指标};
b:=MAX(0,SUBSAMEDAY(&VOL));
Vb:=SUM(b,FORMATTIME(1));
MA5b:=(SUM(b,6)-b)/5;
dv:=b/MA5b;
VL5:=SUM(b,5);
Vl51:=SUM(b,10)-SUM(b,5);
dl5:=Vl5/Vl51;
//(4)振幅和最低涨幅条件;
H1:=HHV(NEW,20);
L1:=LLV(NEW,20);
p1:=(H1-L1);
p2:=PRE;
zf:=p1/p2;
zd:=(NEW-L1)/PRE;
zg:=(NEW-H1)/PRE;
//5分钟震荡量
H0:=HHV(NEW,5);
L0:=LLV(NEW,5);
HL:=(H0-L0)/PRE;
MAhl:=MA(Hl,FORMATTIME(1));
dhl:=Hl/MAhl;
//(5)委托指标
委买:=BUYCOUNT;
委卖:=SELLCOUNT;
//(6)均线趋势指标
MA1:=MA(NEW,5);
MA2:=MA(NEW,30);
sv:=MA1-MA2;
sv1:=MA(NEW,2)-MA(NEW,5);
//卖出条件1
ss:=CROSS(dea,diff) AND 委卖>0  AND Hl>=0.01 AND dhl>1 AND e>0.02 AND zd>0.02;
sd:=COUNT(ss>0,FORMATTIME(1));
IF(sd<=1)
ss1:=ss;
ELSE
ss1:=0;
//买入条件1
zq:=BARSLAST(ss1>0);
jg:=REF(NEW,zq);
zff:=(NEW-REF(NEW,zq))/REF(NEW,zq);
bb:=CROSS(diff,dea) AND zff<-0.01 AND sd>0 AND dm>=0 AND dv>1 ;
ssb:=COUNT(bb>0,FORMATTIME(1));
IF(ssb<=1)
bb1:=bb;
ELSE
bb1:=0;
//卖出条件2 
H2:=HHV(NEW,MIN(FORMATTIME(1),10));
L2:=LLV(NEW,MIN(FORMATTIME(1),10));
zf1:=IF(FORMATTIME(1)>=10,(NEW-L2)/PRE,0);;
ss0:=CROSS(dea,diff) AND HHV(zf1,10)>0.03 AND HHV(zf1,10)<0.08AND 委卖>0 AND ss=0;
sd0:=COUNT(ss0>0,FORMATTIME(1));
IF(sd0<=1)
ss2:=ss0;
ELSE
ss2:=0;
//买入条件2
zq1:=BARSLAST(ss2>0);
jg:=REF(NEW,zq1);
zf2:=(NEW-REF(NEW,zq1))/REF(NEW,zq1);
bb0:=CROSS(diff,dea) AND sd0>0 AND ((zf2<-0.01 AND sv>0)OR (zf2<-0.02 AND sv1>0));
ssb1:=COUNT(bb0>0,FORMATTIME(1));
IF(ssb1<=1)
bb2:=bb0;
ELSE
bb2:=0;
FILLRGN(diff,dea,上涨动量>0,Color0000ff,上涨动量<0,Color00ff00);
//卖
DRAWTEXT(ss1>0,diff+0.8*ABS(diff),"高抛"),colorliblue;
DRAWTEXT(ss2>0 ,diff+0.8*ABS(diff),"出"),colorligreen;
VERLINE( ss1>0,1),colorwhite,LINETHICK2;
VERLINE(ss2>00,1),COLOR00FF00,LINETHICK2;
//买
DRAWTEXT(bb1>0,diff-0.1,"低吸"),colorred;
DRAWTEXT(bb2>0 ,diff-0.1,"入"),colorlired;
VERLINE( bb1>0,1),colorred,LINETHICK2;
VERLINE(bb2>0 ,1),colorlired,LINETHICK2;




来函数检测结果如下
该公式没有未来函数


解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

源码均价赋值:MONEY/成交量(手)
E赋值:(NEW-均价)/均价
//(1)上涨动量指标
如果FORMATTIME(1)>0,返回?,否则返回?ELSE//(2)大单指标与大单差值
DDJL赋值:((BIGBUYCOUNT1+BIGBUYCOUNT2+WAITBUYCOUNT1+WAITBUYCOUNT2)-(BIGSELLCOUNT1+BIGSELLCOUNT2+WAITSELLCOUNT1+WAITSELLCOUNT2))/SHGZG*100
ZDM赋值:(BIGBUYCOUNT1+BIGBUYCOUNT2)/SHGZG*100
DM赋值:DDJL-1日前的DDJL
DZ赋值:ZDM-1日前的ZDM
ZDZQ赋值:统计3日中满足DZ=0的天数>=2
//(3)成交量
B赋值:0和SUBSAMEDAY(&成交量(手))的较大值
VB赋值:B的FORMATTIME(1)日累和
MA5B赋值:(B的6日累和-B)/5
DV赋值:B/MA5B
VL5赋值:B的5日累和
VL51赋值:B的10日累和-B的5日累和
DL5赋值:VL5/VL51
//(4)振幅和最低涨幅条件
H1赋值:20日内NEW的最高值
L1赋值:20日内NEW的最低值
P1赋值:(H1-L1)
P2赋值:PRE
ZF赋值:P1/P2
ZD赋值:(NEW-L1)/PRE
ZG赋值:(NEW-H1)/PRE
5分钟震荡量H0赋值:5日内NEW的最高值
L0赋值:5日内NEW的最低值
HL赋值:(H0-L0)/PRE
MAHL赋值:HL的FORMATTIME(1)日简单移动平均
DHL赋值:HL/MAHL
委托指标委买赋值:BUYCOUNT
委卖赋值:SELLCOUNT
赋值:NEW的5日简单移动平均
MA2赋值:NEW的30日简单移动平均
SV赋值:MA1-MA2
SV1赋值:NEW的2日简单移动平均-NEW的5日简单移动平均
卖出条件1SS赋值:DEA上穿DIFF AND 委卖>0 AND HL>=0.01 AND DHL>1 AND E>0.02 AND ZD>0.02
SD赋值:统计FORMATTIME(1)日中满足SS>0的天数
SS1赋值:SS
SS1赋值:0
买入条件1ZQ赋值:上次SS1>0距今天数
JG赋值:ZQ日前的NEW
ZFF赋值:(NEW-ZQ日前的NEW)/ZQ日前的NEW
BB赋值:DIFF上穿DEA AND ZFF<-0.01 AND SD>0 AND DM>=0 AND DV>1
SSB赋值:统计FORMATTIME(1)日中满足BB>0的天数
BB1赋值:BB
BB1赋值:0
H2赋值:FORMATTIME(1)和10的较小值日内NEW的最高值
L2赋值:FORMATTIME(1)和10的较小值日内NEW的最低值
ZF1赋值:如果FORMATTIME(1)>=10,返回(NEW-L2)/PRE,否则返回0

SS0赋值:DEA上穿DIFF AND 10日内ZF1的最高值>0.03 AND 10日内ZF1的最高值<0.08AND 委卖>0 AND SS=0
SD0赋值:统计FORMATTIME(1)日中满足SS0>0的天数
SS2赋值:SS0
SS2赋值:0
买入条件2ZQ1赋值:上次SS2>0距今天数
JG赋值:ZQ1日前的NEW
ZF2赋值:(NEW-ZQ1日前的NEW)/ZQ1日前的NEW
BB0赋值:DIFF上穿DEA AND SD0>0 AND ((ZF2<-0.01 AND SV>0)OR (ZF2<-0.02 AND SV1>0))
SSB1赋值:统计FORMATTIME(1)日中满足BB0>0的天数
BB2赋值:BB0
BB2赋值:0
FILLRGN(DIFF,DEA,上涨动量>0,COLOR0000FF,上涨动量<0,COLOR00FF00)
//卖DRAWTEXT(SS1>0,DIFF+0.8*DIFF的绝对值,"高抛"),画淡蓝色
当满足条件SS2>0时,在DIFF+0.8*DIFF的绝对值位置书写文字,画淡绿色
VERLINE( SS1>0,1),画白色,线宽为2
VERLINE(SS2>00,1),COLOR00FF00,线宽为2
//买DRAWTEXT(BB1>0,DIFF-0.1,"低吸"),画红色
当满足条件BB2>0时,在DIFF-0.1位置书写文字,画淡红色
VERLINE( BB1>0,1),画红色,线宽为2
VERLINE(BB2>0 ,1),画淡红色,线宽为2

指标安装下载帮助  |   联系我们  |  乐淘公式网  |  公式网   |  指标公式  |   加入收藏   |  设为主页

@2005-2025 浙ICP备2024071487号-1 乐淘公式网公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:乐淘公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图