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));
{多头选股公式}{一、各均}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>...