Type/to search

合约下单

Template
Created: 2020-04-05 21:24:29
Last modified: 6 years ago
0
Follow
6
Followers

$.openPos(buy|sell, amount);

开仓

$.closePos(buy|sell, amount);

平仓

Source
JavaScript
/*backtest
start: 2020-01-08 00:00:00
end: 2020-04-06 00:00:00
period: 1d
exchanges: [{"eid":"Futures_OKCoin","currency":"ETH_USD","stocks":1400}]
args: [["PRICE_PRECISION",2],["AMOUNT_PRECISION",4]]
*/

var tempOrders = [];

var COLOR = {
    GREEN: '#00a500',
Strategy parameters
Strategy parameters
滑点
交易超时
面值
价格精度
交易量精度
Comment
All comments (4)

    img img

    6 years ago

    开仓后 再平仓 提示仓位不足 麻烦大神看看

    6 years ago

    请问 Id: _.last(tempOrders).Id 这里是不是有问题?报错main:58:35 - TypeError: Cannot read property 'Id' of undefined

    6 years ago

    这个模板怎么引用啊?

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