待辦事項 #32111

売りポジションを更新した場合の利益曲線(簿価)が正しくない

啟用日期: 2013-09-24 02:27 最後更新: 2013-10-02 16:06

回報者:
負責人:
(無)
類型:
狀態:
關閉
元件:
(無)
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
檔案:

細節

ポジションを変更した場合、Performance.cs(rev488)161行目の以下のコードで、平均価格を更新している。売りポジションの場合、prevPositionの符号が負であるため更新後の平均価格が正しくない。このため、利益曲線(簿価)が正しくなくなります。

averagePrice = (prevPosition * averagePrice + consideration) / abs;

Ticket History (2/2 Histories)

2013-09-24 02:27 Updated by: darai
  • New Ticket "売りポジションを更新した場合の利益曲線(簿価)が正しくない" created
2013-10-02 16:06 Updated by: panacoran
  • 狀態 Update from 開啟 to 關閉
  • Ticket Close date is changed to 2013-10-02 16:06
評語

r495で直しました。

Attachment File List

No attachments

編輯

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登入