-- 作者:COMBOY
-- 发布时间:2015/8/24 22:29:00
-- 请教
麻烦版主能否帮我翻译下,谢谢
Params Numeric length1(5); Numeric length2(10); Numeric length3(20); Numeric onlybuy(1); Numeric onlysell(1); Numeric totalmoney(1000000); Numeric riskratio(0.2); Numeric myBarsSinceExit(10); Numeric delaybar(0); Vars NumericSeries ma1(0); NumericSeries ma2(0); NumericSeries ma3(0); NumericSeries units(0); Numeric Minpoint(0); NumericSeries myprice(0); NumericSeries myexistprice1(0); NumericSeries myexistprice2(0); NumericSeries myexistprice(0); NumericSeries hiprice(0); NumericSeries lowprice(0); NumericSeries prebar(0); Begin // 集合竞价和小节休息过滤 If(!CallAuctionFilter()) Return;
MinPoint = MinMove*PriceScale; units=IntPart(totalmoney*riskratio/(c[1]*ContractUnit()*BigPointValue()*0.1)); //各种均线 ma1=AverageFC(c[delaybar],length1); ma2=AverageFC(c[delaybar],length2); ma3=AverageFC(c[delaybar],length3); PlotNumeric("5日均线",ma1); PlotNumeric("10日均线",ma2); PlotNumeric("20日均线",ma3); if(ma1>ma2 && ma2>ma3)
{ Commentary("均线多头排列"); }
|