a:=ma(c,5)>ma(c,10) and ma(c,10)>ma(c,20);a1:=ma(c,5)>ref(ma(c,5),1) and ma(c,10)>ref(ma(c,10),1) and ma(c,20)>ref(ma(c,20),1); xg:a and a1;股票公式专家团为你解答,希望能帮到你,祝投资顺利。
{按楼主要求:5日均线,向上为红色k柱,向下为绿色k柱}tyx:=ma(c,5);stickline(c>=tyx and c>o,h,l,0,0),color0000ff; stickline(c>=tyx and c>o,c,o,12,0),color0000ff;stickline(c<tyx and c<o,h,l,0,0),color00ff00;s...
你是要编写选股公式吧?是可以编写的,但是不表达的不是特别的清楚,大概是这样的dif:=ema(close,short)-ema(close,long);dea:=ema(dif,mid);ref(dif,3)>ref(dea,3) and ref(dif,4)<ref(dea,4) and ref(dif,2)>ref(dea,2) and ref(dif,1)>ref(d...
神仙大趋势h1:=ema(close,6),colorwhite; h2:=ema(神仙大趋势h1,18),colorgreen; h3:=ema(close,108),coloryellow;cross(神仙大趋势h1,max(h2,h3)) or (神仙大趋势h1>max(h2,h3) and ref(c,1)<ref(c,2) and c>ref(max(c,o),1));