arams //此处添加参数 Numeric TrendLength(300);//长均线 Numeric ProfitRatio(4);//止盈的倍数 Numeric Ratio1(0.75);//开仓,价格开盘后突破昨日振幅的一定比例 Numeric shares(1); Numeric MaxStoploss(2000);//最大的止损的金额 Bool IfFloatShares(true);//浮动开仓手数
arams //此处添加参数 Numeric TrendLength(300);//长均线 Numeric ProfitRatio(4);//止盈的倍数 Numeric Ratio1(0.75);//开仓,价格开盘后突破昨日振幅的一定比例 Numeric shares(1); Numeric MaxStoploss(2000);//最大的止损的金额 Bool IfFloatShares(true);
回复:所以shares是参数?参数怎么能赋值呢?
检查shares是什么类型的数据,参数还是变量
回复:谢谢