全部 智大领峰 TBQuant功能 TBL语言 TB开户 问答专区 高手圈 其他
TBq函数编译问题
2022-08-26 22:56

kyover

检查shares是什么类型的数据,参数还是变量

2022-08-29 09:31
202****1205420068
@kyover

谢谢

2022-08-29 12:44
202****1205420068

arams
    //此处添加参数
    Numeric TrendLength(300);//长均线
    Numeric ProfitRatio(4);//止盈的倍数
    Numeric Ratio1(0.75);//开仓,价格开盘后突破昨日振幅的一定比例
    Numeric shares(1);
    Numeric MaxStoploss(2000);//最大的止损的金额
    Bool IfFloatShares(true);

2022-08-29 12:47
kyover
@202****1205420068

所以shares是参数?参数怎么能赋值呢?

2022-08-29 13:46
202****1205420068

arams
    //此处添加参数
    Numeric TrendLength(300);//长均线
    Numeric ProfitRatio(4);//止盈的倍数
    Numeric Ratio1(0.75);//开仓,价格开盘后突破昨日振幅的一定比例
    Numeric shares(1);
    Numeric MaxStoploss(2000);//最大的止损的金额
    Bool IfFloatShares(true);//浮动开仓手数

2022-08-29 13:06
您未登录,请先 登录注册 后发表评论
顶部