股票公式count
㈠ 求一个股票公式~~~~~~~~~~~~~~~~~~~~~~~~~~~~
通达信
hhv(h,5)=hhv(h,60)
5日内最高价的最高值=60日内最高价的最高值
选出股票,就看到个数了
你可以点击我的名字,进入我的网络空间,学习理财知识,分享股市中的利润,规避股市中的风险!
稳定收益一天2个点 一年141倍,看了后你还会天天去追涨停吗?
㈡ 股票,通达信,指标COUNT(HHV(H,60),5)=1;{统计5日中满足60日内最高价的最高值的天数=1}
COUNT(H=HHV(H,60),5)=1 AND (COUNT(C<O,4)=4 OR COUNT(C<REF(C,1),4)=4);
{统计5日中满足最高价=60日内最高价的最高值的天数=1 AND (统计4日中满足收阴线的天数=4 OR 统计4日中满足收盘价<昨收的天数=4)}
㈢ 请教股票公式:假如赋的值在if里面那么如何定义count函数呢
count(x<0,10)<=0或者用LAST(x<0,10,0)表示.
㈣ 写一个股票公式
提供个思路,如不能解决可以再找我,实在是忙,抱歉
1:高点连线
INPUT:N(55,1,300),N1(21,1,300),N2(13,1,300);
t:=BARSSINCE(datacount-55=BARPOS);
t1:=BARSSINCE(datacount-21=BARPOS);
t2:=BARSSINCE(datacount-13=BARPOS);
g:=hhv(h,t);
g1:=hhv(h,t1);
g2:=hhv(h,t2);
gw:=cross(BACKSET(ISLASTBAR,HHVBARS(h,t)+1),0.5);
gw1:=cross(BACKSET(ISLASTBAR,HHVBARS(h,t1)+1),0.5);
gw2:=cross(BACKSET(ISLASTBAR,HHVBARS(h,t2)+1),0.5);
LINEVALUE(gw,g,gw1,g1,0,0);
LINEVALUE(gw1,g1,gw2,g2,0,0);
DRAWICON(gw,h,10);
DRAWICON(gw1,h,10);
DRAWICON(gw2,h,10);
/////////////////////////////////////////////////
2:低点连线
INPUT:N(55,1,300),N1(21,1,300),N2(13,1,300);
t:=BARSSINCE(datacount-55=BARPOS);
t1:=BARSSINCE(datacount-21=BARPOS);
t2:=BARSSINCE(datacount-13=BARPOS);
D:=LLv(L,t);
D1:=LLv(L,t1);
D2:=LLv(L,t2);
Dw:=cross(BACKSET(ISLASTBAR,LLVBARS(L,t)+1),0.5);
Dw1:=cross(BACKSET(ISLASTBAR,LLVBARS(L,t1)+1),0.5);
Dw2:=cross(BACKSET(ISLASTBAR,LLVBARS(L,t2)+1),0.5);
LINEVALUE(Dw,D,Dw1,D1,0,0)COLORMAGENTA;
LINEVALUE(Dw1,D1,Dw2,D2,0,0)COLORGREEN;
DRAWICON(Dw,L,11);
DRAWICON(Dw1,L,11);
DRAWICON(Dw2,L,11);
㈤ 一个非常不错的股票公式需要转换通达信格式
VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
VAR7:=EMA(VAR6,5);
指标: EMA(EMA(VAR3,5),5)*3, COLORSTICK;
VAR8:=IF(VAR6<=-20,10,0);
VAR9:=HHV(VAR8,10);
STICKLINE(VAR8=10,20,10,5,0),COLOR6666FF;
VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
DRAWTEXT(VARA=20,15,'底部'),LINETHICK1,COLORWHITE;
STICKLINE((VARA=20),0,10,5,0),COLORWHITE;
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)<=REF(ZIG(3,5),3));
VARD:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)>=REF(ZIG(3,5),3));
STICKLINE((VARC=1),(-14),0,4,0),COLOR0000FF;
DRAWTEXT((VARC=1),(-14),'高抛低吸。买入'),COLOR0000FF;
STICKLINE((VARD=1),14,0,4,0),COLOR00FF00;
DRAWTEXT((VARD=1),18,'高抛低吸。卖出'),COLOR00FF00;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,15,'大资金活动'),LINETHICK1,COLORFF00FF;
STICKLINE(VAR11 AND COUNT(VAR11,30)=1,1,10,5,0),COLORFF00FF;
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);
VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18<90,VAR18,100);V1:=ZIG(3,12);
V2:IF(REF(V1,2)>REF(V1,1) AND V1>REF(V1,1),50,0),COLORRED,LINETHICK2;
V3:IF(REF(V1,2)<REF(V1,1) AND V1<REF(V1,1),50,0),COLORGREEN,LINETHICK2;
VAR1:=ZIG(3,12)<REF(ZIG(3,12),1) AND REF(ZIG(3,12),1)>REF(ZIG(3,12),2);
VAR2:=ZIG(3,12)>REF(ZIG(3,12),1) AND REF(ZIG(3,12),1)<REF(ZIG(3,12),2);
DRAWTEXT(VAR1,50,'趋势跌。卖出'),COLORYELLOW;
DRAWTEXT(VAR2,50,'趋势升。买入'),COLORYELLOW;
资金趋势:EMA(30*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3)*3, COLORRED,LINETHICK1;
VA3:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
买点:= VA3,COLORRED;
DRAWTEXT(买点>0,45,'低吸点'),COLORMAGENTA;
STICKLINE(买点,0,50,2,0),COLORMAGENTA,LINETHICK1;
㈥ 跪求一股票公式,
股价到ene中轨,是上穿还是下穿,是哪个价格,这要定义清楚.
下面公式是最低价下穿过ene中轨
UPPER:=(1+11/100)*MA(CLOSE,10);
LOWER:=(1-9/100)*MA(CLOSE,10);
ENE:=(UPPER+LOWER)/2;
XG:REF(COUNT(C/REF(C,1)>1.097 AND C=H,2)=2,2) AND REF(H<REF(H,1),1) AND CROSS(ENE,L);
㈦ 麻烦编写一个股票选股公式
这个条件可以编写选股公式
但有个细节问题。7日内如果多次跌破60日均线是选首次还是哪一次都可以。
下图效果是选7日内首次跌破60日均线。
㈧ 我想编辑股票公式,内容如下:前几天成交量连续减少,今天放量。请问用count函数怎么编谢谢
N:=6;{连续减少的天数+1}
HSL:=100*VOL/(FINANCE(7)/100);
HSL>3 AND HSL>REF(HSL,1)*2 AND COUNT(HSL<REF(HSL,1),N)=(N-1) AND HSL=HHV(HSL,N);
㈨ 选股公式count(c>1.098*ref(c,1),5)>0;是什么意思
选股公式:COUNT(C>1.098*REF(C,1),5)>0;
---------------------------------------------------------
输出选股公式:统计5日中满足收盘价>1.098*1日前的收盘价的天数>0
===================================================
现在可以通过,你把第一句代码复制粘贴到公式编辑器里即可,别忘了给公式起个名称.
㈩ 股票公式释疑:关于count的用法
count(X<20,15)>3:本意是x的值小于20,从今天起在15天内出现次数大于3天或3天以上,这个信号都会出现。表现的是是今天往前15天内的情况。
以前满足这个条件股票的也会选出来,应该不可能。选股前请先下载完整的日线数据。同时可以将条件选股公式作为指标,在日K线中查看信号发出情况,检验一下这个公式是否正确。