Type/to search
0
Follow
1
Followers
Probleme beim Hochfrequenzhandel
Help
Created 2022-07-11 21:43:31  
 2
 1740

Der Code in den Foren, der zeigt, dass die Bitcoin-Gebühren jetzt 0 sind, will eine Testversion laufen lassen.

2022-07-11 21:40:41 Informationen Anzahl der verkaufbaren Bitcoins 0
2022-07-11 21:40:41 Informationen Verkaufspreis 20481.24
2022-07-11 21:40:41 Informationen Die Menge an Bitcoins, die man kaufen kann, beträgt -0.09
2022-07-11 21:40:41 Informationen Kaufpreis 20461.24

var amountBuy = _N((account.Balance / buyPrice-0.1),2);

account.Balance=11.47336 buyPrice=20461.24
Warum ist amountBuy gleich -0.9?
Ich danke Ihnen.

Related Recommendations
Comment
All comments (2)

    谢谢哈 原来是计算的时候少写了个括号

    4 years ago

    把每一步的计算数值都打印出来看下,分析下就能找出原因。 另外,你发的日志上的信息是 -0.09可不是 -0.9。
    account.Balance / buyPrice-0.1 算出的数值,再只保留2位小数得 -0.09 计算没什么问题。

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