指标编写学习论坛

标题: 选出股价站在30周均线上方,股票现价不超过30周均线价格上方20%的股票公式怎么写? [打印本页]

作者: admin    时间: 2016-5-7 13:47
标题: 选出股价站在30周均线上方,股票现价不超过30周均线价格上方20%的股票公式怎么写?
选出股价站在30周均线上方,股票现价不超过30周均线价格上方20%的股票公式怎么写?
   正确答案:
xx1.fnc
aa30:ma(c,30);
------------------------------------
{n=3,5,3(默认)}
xx2.fnc
bb:”xx1.aa30#week”;
cc:count(cross(c,bb),5)=1 and count(c>bb,5)>=n and count(c<bb*1.2,5)=5;
    正确答案:(99801):
a1:=c>ma(c,30);
c>a1 and c/a1<1.2






欢迎光临 指标编写学习论坛 (http://www.shgm.net/) Powered by Discuz! X3.2