{多头选股公式}
{一、各周期均价线}
ma5:ma(c,5);
ma10:ma(c,10);
ma20:ma(c,20);
ma60;ma(c,60);
ma120:ma(c,120);
{二、多头趋势即各周期均价线趋势向上(各均价线大于昨日均价线且
收盘价未下破10日均价线)}
DT:ma5>ref(ma5,1) and ma5>ma10 and ma10>ref(ma10,1) and ma10>ma20
and ma20>ref(ma20,1) and ma20>ma60 and ma60>ref(ma60,1)and ma60>ma120
ma120>ref(ma120,1) and c>ma10,nodraw;
{当DT=1时,即可达到目的。}