策略启动后不断追踪最高价,如果从最高价跌回一定比例就止盈,如最近最高价为100,止盈比例为0.98,则价格跌倒98止盈。
/*backtest start: 2020-06-17 00:00:00 end: 2020-06-17 23:59:00 period: 1h basePeriod: 1h exchanges: [{"eid":"Binance","currency":"BTC_USDT","balance":9000,"stocks":2}] args: [["Amount",2]] */ var order = {buy_price:0,buy_amount:0,buy_id:0,sell_price:0,sell_amount:0,sell_id:0} var account = null
这个是单币种吧?,草神,有多币种的吗?