logo logo
  • 首页
  • 策略
  • 文库
  • 社区
  • API文档
登录 立即注册
帮助 经验交流 平台公告 知识库 入门手册
  • avatar of mingle mingle  | 创建于:2021-02-26 16:22:01
    调用GetPosition()获取仓位提示不支持该功能是怎么回事
    调用GetPosition()提示不支持该功能是怎么回事
    comments   4
    hits   1063
  • avatar of zh7wang zh7wang  | 创建于:2020-12-18 08:43:15
    2020-12-18 08:44:44
    GetPosition回测中返回的是None
    请问这是怎么回事?
    GetPosition回测中返回的是None
    comments   5
    hits   1075
  • avatar of qq89520 qq89520  | 创建于:2020-07-01 18:56:26
    Getposition里的Type 用Log出的是数字,请问数字对应代表什么意思?
    如题
    comments   1
    hits   1142
  • avatar of qq89520 qq89520  | 创建于:2020-06-12 19:48:48
    请问平台支持的python模块有哪些?能否import本地的模块
    comments   4
    hits   1279
  • avatar of bamsmen bamsmen  | 创建于:2020-06-03 20:25:04
    GetPosition获取到的Profit是扣除手续费后的吗?
    1.请问使用exchange.GetPosition()获取到的Profit是持仓盈亏,不是平仓盈亏吧? 如果要获取平仓后的盈亏,该怎么获取? 2.我在回测时看到使用exchange.GetPosition()获取到的Profit在获利不足交易所手续费时依然是正值。请问这里的Profit是未扣除手续费计算的Profit吗?还是只扣除了一次开仓手续费后的?有没有该Profit的计算公式给开源一下
    comments   2
    hits   1256
  • avatar of zacharytaylor zacharytaylor  | 创建于:2020-05-27 14:47:49
    err_msg:In settlement or delivery. Unable to get positions
    let position = _C(exchange.GetPosition) if (position !== null) { 。。。。。 } 运行中断 提示:err_msg:In settlement
    comments   1
    hits   1116
  • avatar of bamsmen bamsmen  | 创建于:2020-05-19 21:23:31
    2020-05-19 21:49:16
    怎样能实现用point and figure图交易
    不知道怎样能实现用point and figure图交易
    comments   1
    hits   1200
  • avatar of bamsmen bamsmen  | 创建于:2020-04-29 20:49:46
    报错Cannot convert "POST" to int
    使用https://www.fmz.cn/bbs-topic/4183#io函数访问加密接口的以下函数会报错: var id = exchange.IO(“api”, “POST”, “/api/v1/order”, “symbol=XBTUSD&side=Buy&orderQty=1&stopPx=4000&ordType=Stop”) 或 var id = exchange.IO(“api”
    comments   3
    hits   1217
  • avatar of 13715199130 13715199130  | 创建于:2020-03-01 10:50:55
    OKEX期货exchange.GetRecords 报错“GetRecords: period not support”
    我用的是PERIOD_M5等提供的变量 - 在回测时是好的 - 同时在几天前也是好的 现在机器人跑策略就会报错“GetRecords: period not support” 同时GetTicker等接口是好的 服务器信息: - 阿里云香港 - Python 3.7.3
    comments   3
    hits   1509
  • avatar of jasperrr jasperrr  | 创建于:2020-02-12 16:17:45
    2020-02-12 16:20:58
    exchange.GetPosition()接口回测返回空值,调试时返回正常值,怎么办?
    源码: function main(){ Log(“当前持仓”,exchange.GetPosition()); } 回测时结果: 调试debug时结果:
    exchange.GetPosition()接口回测返回空值,调试时返回正常值,怎么办?
    comments   5
    hits   1395
  • avatar of allez-z allez-z  | 创建于:2020-01-29 22:31:04
    bybit下被动单postonly
    请问用JS怎么实现bybit下被动订单,有没有实例,多谢!
    comments   2
    hits   1626
  • avatar of 冰糖葫芦娃 冰糖葫芦娃  | 创建于:2019-12-11 14:36:56
    BIT-Z支不支持post_only
    大佬们,BITZ可以post_only吗,api文档里没有看到
    comments   1
    hits   1373
  • avatar of 小重山 小重山  | 创建于:2019-10-13 16:10:19
    python本地回测,报错提示 GetAccount() missing 1 required positional argument: 'self'
    按照帖子“FMZ 发布 python 本地 回测引擎”中的例子在电脑上跑了一下程序,结果报错了,如图。入门小白求指导
    python本地回测,报错提示 GetAccount() missing 1 required positional argument: 'self'
    comments   4
    hits   1726
  • avatar of willzhang willzhang  | 创建于:2019-09-18 11:38:22
    OKEX的Post Only
    我想用OKEX的Post Only方式下单买卖,请问用JS该如何实现?非常感谢您的回复!
    comments   2
    hits   2504
  • avatar of lightring lightring  | 创建于:2019-09-15 22:33:43
    Futures_BitMEX错误 BITMEX ONLY SUPPORT XBTUSD
    bitmex合约类型不能设置成XBTU19之类的非永续合约吗
    comments   3
    hits   1499
  • avatar of fmzero fmzero  | 创建于:2019-06-29 15:18:37
    OKEX期货回测时,不支持exchange.GetPosition吗?
    OKEX期货回测时,不支持exchange.GetPosition吗?
    comments   1
    hits   1542
  • avatar of 善 善  | 创建于:2019-05-09 10:27:14
    5.3 How to read the strategy backtest performance report
    Today’s market analysis platforms allow traders to quickly review a trading system. Whether looking at hypothetical results or actual trading data, there are hundreds of performance metrics that can b
    5.3 How to read the strategy backtest performance report
    comments   0
    hits   1895
  • avatar of 小草 小草  | 创建于:2019-04-18 13:55:58
    2019-04-18 13:58:55
    Make Post-Only order and bulk orders on BitMEX through IO
    Make Post-Only order and bulk orders on BieMEX Use IO function,refer to BitMEX doc:https://www.fmz.com/bbs-topic/3666 Post-Only order ”` var id = exchange.IO(“api”, “POST”, “/api/v1/order”, “s
    置顶
    comments   0
    hits   2224
  • avatar of guangtianxia guangtianxia  | 创建于:2019-03-21 00:35:45
    2019-03-21 11:26:42
    hbdm和ok合约同时用websocket,huobi发出去pong没反应
    代码如下,huobi在大概五六秒之后,会收到服务器的ping,然后我会发出一个pong,但是一直好像服务器收不到Pong似的,还在一直给我发ping,请教了大神说是给read加-1,但加了还是没用 “` function main() { var ws_hbdm = Dial(“wss://www.hbdm.com/ws?compress=true|compress=gzip&mode=
    comments   8
    hits   3506
  • avatar of 善 善  | 创建于:2019-03-18 10:48:28
    Continuous Futures Contracts for Backtesting Purposes
    Brief Overview of Futures Contracts Futures are a form of contract drawn up between two parties for the purchase or sale of a quantity of an underlying asset at a specified date in the future. This
    comments   0
    hits   1532
  • avatar of 善 善  | 创建于:2019-02-15 12:04:20
    Doing investment, IQ and temperament which is more important
    Charlie Munger said: “A long time ago, when I realized that owning a certain temperament could make people successful, I tried to strengthen this temperament. For the financial industry, the importan
    comments   0
    hits   1486
  • avatar of Han_nuo_ta Han_nuo_ta  | 创建于:2019-02-04 08:04:26
    IO 参数有post get ,请问 put 可以组合吗?
    如果可以用,请给个例子。谢谢。
    comments   1
    hits   1517
  • avatar of 淮辰 淮辰  | 创建于:2018-12-02 23:29:31
    没有持仓,也没有平仓操作,开空时却显示ERR_INVALID_POSITION,请问这是怎么回事呢?
    /upload/asset/f6ff1fcc9c14ce7ea7dc93fe6409d
    没有持仓,也没有平仓操作,开空时却显示ERR_INVALID_POSITION,请问这是怎么回事呢?
    comments   1
    hits   2018
  • avatar of sunsjk sunsjk  | 创建于:2018-11-07 08:17:28
    2019-04-17 15:52:12
    exchange.GetPosition() 使用注意事项,要先判断是否为空数组
    exchange.SetTimeout(3000); exchange.SetContractType("XBTUSD"); //取得第一次币量 position = _C(exchange.GetPosition); last_Amount = position[0].Amount; //持币数量
    comments   2
    hits   2189
  • avatar of ruby ruby  | 创建于:2018-10-31 17:38:47
    2018-10-31 17:41:50
    Happy Halloween / Coupon-codes for everyone -- FMZ Quant Team
    Activity time: 2018.10.31 – 00:00:00 – 2018.11.01 – 23:59:59 (Beijing Time) Coupon code: Enter “1101” when you charge your account (at
    Happy Halloween / Coupon-codes for everyone -- FMZ Quant Team
    comments   0
    hits   1832
  • avatar of z123zero z123zero  | 创建于:2018-09-03 14:42:14
    position[-1].Profit 输出的盈亏和计算的盈亏不一致
    ”` Log(‘盈亏:’, (price - last_price) * lots) # lots为下单的数量,price为开仓的价格,last_price为平仓的价格 stocks为平仓操作后的余币,last_stocks为上一次的余币 Log(‘盈亏(币):’, _N(stocks - last_stocks), ‘盈亏百分比:’, _N((stocks - last_stocks)
    position[-1].Profit 输出的盈亏和计算的盈亏不一致
    comments   3
    hits   1746
  • avatar of niuyuhubotvs niuyuhubotvs  | 创建于:2018-05-07 00:08:35
    exchange.SetContractType设置this_week和next_week,获取GetPosition无效
    代码如下: for (i = 0; i < 2; i++) { exchange.SetContractType(ContractTypes[i]); var positions = exchange.GetPosition(); Log(‘148: ‘, positions); } 代码日志如下,也就是两次获取position都是
    comments   3
    hits   1844
  • avatar of xiaoxiaolu xiaoxiaolu  | 创建于:2018-04-12 16:36:42
    getposition 这个函数在没有仓位的情况下报错
    请问这个问题要怎么debug呢? 在账号没有仓位的情况下 使用如下代码获取仓位信息 while(true){ var position=_C(exchange.GetPosition) if(position==null){ continue } type=position[0].Type if(type==PD_LONG){
    comments   3
    hits   1827
  • avatar of stargazer stargazer  | 创建于:2018-03-28 16:30:23
    使用okex期货模拟回测,调用接口返回ERR_INVALID_POSITION,请问这是啥问题?
    以上图片是代码和日志和回
    使用okex期货模拟回测,调用接口返回ERR_INVALID_POSITION,请问这是啥问题?
    comments   16
    hits   2610
  • avatar of lsh8892506 lsh8892506  | 创建于:2018-02-17 13:13:52
    如何在python中import requests库
    请问如何在python中import requests库
    comments   1
    hits   1694
  • 1
  • 2
  • 3
Forums
PINE Language FAQ Summary MyLanguage Web3 About Us
Product
Robot Strategy Node Platforms Tickets
API
Syntax guide User guide Trading api Blockchain Indicator

© 2015 - ∞ INVENTOR PTE LTD (SG)