4
Follow
4
Followers
这个策略是跑了一年多的策略近期突然出现的,当到止盈和止损给单个币种全平仓位的时候就会报错,如果单独只跑一个币种
就没问题,超过2个币种一起跑就报错 ,以前也是一直跑的多个币种也没问题,就近期出现,请懂得看看
if (nextMorePrice != 0 && dProp > LESS_MAX) {
//Log(currency, "多仓,累计亏损达到:" + lessMax, "多仓全平,保持锁定");
Log(currency, "多仓,达到止损比例:", dProp, ",现价:", curPrice, ",下一格价格:", nextMorePrice, ",多仓全平,保持锁定");
var doPrice = closePosition(exchange, 1);
changeCoinDoPrice(currency, doPrice);
changeCoin(currency, null, null, null, null, 0, 0, null, null);
changeCoinNS(currency, 0, 0, "逆势");
resetCoin(currency, 1);
跑的币种越多报错数量越多,虽然有报错但报完后 交易所会平仓成功,,但是频繁地报错会延迟平仓时机
Related Recommendations
Inventor Quant Workflow FAQ (Continuously Updated)Financial Magic Zone Global KOL RecruitmentFAQ Summary (Updating...)PINE Language Introductory Tutorial of FMZ QuantPrimary Tutorial of Strategy Writing with FMZ Quant Trading Platform (Must Read)Getting Started with FMZ Quant Trading Platform (Must Read)
Comment
All comments (1)
- 1

