Type/to search

现货移动止盈策略

TargetProfit
3
Follow
1505
Followers

策略启动后不断追踪最高价,如果从最高价跌回一定比例就止盈,如最近最高价为100,止盈比例为0.98,则价格跌倒98止盈。

Source
JavaScript
/*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
Strategy parameters
Strategy parameters
止盈比例
止盈数量
显示更多参数
休眠时间ms
打印收益时间ms
Related strategies
Comment
All comments (1)

    这个是单币种吧?,草神,有多币种的吗?

    4 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)