马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
151.问:
5日、10日、20日均线在30天内始终保持多头排列,怎么编写
答(懒汉):
m:=ma(c,5); m1:=(c,10); m2:=ma(c,20);
count(m>m1 and m1>m2,30)=30;
152.问:
有没有个股K线的副图指标
答(懒汉):
STICKLINE(c/o>=1,o,c,6,1) colorred;
STICKLINE(c/o>=1,c,h,0.3,1) colorred;
STICKLINE(c/o>=1,o,l,0.3,1) colorred;
STICKLINE(c/o<1,c,o,6,0) colorcyan;
STICKLINE(c/o<1,l,h,0.3,0) colorcyan;
153.问:
以历史最低点为起点写股价回升创新高点次数并在窗新高日收盘价处标出数字
答(懒汉):
LL:=LLv(L,0);
w:=barssince(L=LL[datacount]);
hh:=hhv(h,w);
s:=sum(h>ref(hh,1),0);
DRAWNUMBER(s>ref(s,1),h*1.01,s,0);
154.问:
求这个指标的条件不成立时也画绿柱怎么写?
DIFF:=STKINDI('','MACD日.DIFF',0,6);
k线:=STKINDI('','kdj.k',0,6);
d线:=STKINDI('','kdj.d',0,6);
STICKLINE(k线>ref(d线,1) and DIFF>=ref(DIFF,1),VOL,0,7,0)colorred;
STICKLINE(k线<ref(d线,1) and DIFF<ref(DIFF,1),VOL,0,7,0)COLORCYAN;
答(yyzzqq):
DIFF:=STKINDI('','MACD日.DIFF',0,6);
k线:=STKINDI('','kdj.k',0,6);
d线:=STKINDI('','kdj.d',0,6);
STICKLINE(k线>ref(d线,1) and DIFF>=ref(DIFF,1),VOL,0,7,0)colorred;
STICKLINE(k线<ref(d线,1) and DIFF<ref(DIFF,1),VOL,0,7,0)COLORCYAN;
STICKLINE((k线>ref(d线,1) and DIFF<=ref(DIFF,1)) or (k线<ref(d线,1) and DIFF>ref (DIFF,1),VOL,0,7,0)COLORGREEN;
155.问:
需要一个用业绩来排序的公式,
答(yyzzqq):
业绩指标有多种。如以每股收益排序可这样。
FINANCE(33);
|