Type/to search
0
Follow
0
Followers
exchange.GetPosition() ইন্টারফেস ব্যাকটেস্টিং করার সময় একটি নাল মান প্রদান করে, কিন্তু ডিবাগিং করার সময় একটি স্বাভাবিক মান প্রদান করে। আমার কী করা উচিত?
Help
Created 2020-02-12 16:17:45  Updated 2020-02-12 16:20:58
 5
 1592

সোর্স কোড:
function main(){
Log (("বর্তমান অবস্থান", exchange.GetPosition (());

}

ফলাফলঃ
img

ডিবাগিং ফলাফলঃ
img

Related Recommendations
Comment
All comments (5)

    回测是模拟的,和你交易所账户没关系,没开仓当然是空的

    7 years ago

    平多单设置 exchange.SetDirection("closebuy");
    报错Futures_OP 0: MarginLevel can only be set in the direction for buy/sell , current settings: closebuy

    7 years ago
    7 years ago

    回测时调用exchange.GetPosition()[0].Amount,报错:main:2:38 - TypeError: Cannot read property 'Amount' of undefined

    7 years ago

    没持仓是空数组,无法用exchange.GetPosition()[0]

    7 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)