aa:cross(ma(close,5),ma(close,20));//表示5日均线与20日均线交金**b:cross(ma(close,10),ma(close,20));//表示10日均线与20日均线交金叉选股:aa and bb;或者直接选股:cross(ma(close,5),ma(close,20)) and cross(ma(close,10),ma(close,20));
a:=ma(c,20)>ma(c,10) and ma(c,10)>ma(c,5) and ma(c,5)>ma(c,60);a:=c<ma(c,5) and c>ma(c,60) and ma(c,60)>ref(ma(c,60),1);xg:a and a1;股票公式专家团为你解答,希望能帮到你,祝投资顺利。
根据你的要求条件,我使用通达信南京证券版来写,公式为:公式名称:30日上60日公式类型:指标条件选股代码如下:ma30:=ema(c,30);ma60:=ema(c,60);上穿多头:=ma30>ma60 and ma30>ref(ma30,1) and ma60>ref(ma60,1) and cross(ma(c,30),ma(c,60));上穿多头;我试过可以选出股票.