bitfinex运行出错,帮忙分析,谢谢! 正常卖出后出现以下告警—无法log出卖出结果: 2017-11-01 12:30:18 错误 Error: bad argument #1 to ‘LogProfit’ (float64 expected, got string) main FILE:129 2017-11-01 12:30:14 Bitfinex 卖出 6373.1 0.00916 {“High”:6481.5,“Low”:6082.5,“Sell”:6373.3,“Buy”:6373.2,“Last”:6373.2,“Volume”:44466.88351939,“Time”:1509510612772}
129行内容如下: LogProfit(‘MACD cause’, nowAccount.Balance.toFixed(1) - initAccount.Balance.toFixed(1), ‘钱:’, nowAccount.Balance.toFixed(1), ‘币:’, nowAccount.Stocks.toFixed(3), ‘平仓详情:’, obj, “交叉周期”, n,“dif=”, dif.toFixed(3),“dea=”, dea.toFixed(3));
谢谢