Buy=cross(ma(c,5),ma(c,30)); sell=cross(ma(c,30),ma(c,5)); 有没有办法知道每个条件成立时的日期,如2011-7-15 buy成立 2011-7-22 sell成立 请教 谢谢
參考 for( i = 0; i < BarCount; i++ ) { //if( buysig ) PlotText( ""+sbars, i, bsvuma2, colorLime ); if( buysig ) PlotText(""+sbars+ "/"+zpt+"%"+ Prec(abs( zpt)/sbars,1) , i+1, bsvdma2*1.15, colorGreen ); if( sellsig ) PlotText( ""+bbars , i+1, bsvuma2*1.15, colorRed ); }