Skip to content

Commit

Permalink
Fix: Closing Long Legs of an Option had incorrect Quantity calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulSquires committed Sep 1, 2023
1 parent b834697 commit 0c20790
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IB-Tracker/src/Config/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SOFTWARE.

#pragma once

constexpr std::wstring version = L"2.4.1";
constexpr std::wstring version = L"2.4.2";

bool SaveConfig();
bool LoadConfig();
Expand Down
2 changes: 1 addition & 1 deletion IB-Tracker/src/TradeDialog/TradeDialogSave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ void TradeDialog_CreateOptionsTradeData(HWND hwnd)
leg->openQuantity = 0;
// Update the original transaction being Closed quantities
if (!tdd.legs.empty()) {
tdd.legs.at(row)->openQuantity += (tdd.legs.at(row)->openQuantity < 0) ? guiData.legs.at(row).origQuantity : -guiData.legs.at(row).origQuantity;
tdd.legs.at(row)->openQuantity += guiData.legs.at(row).origQuantity;
leg->legBackPointerID = tdd.legs.at(row)->legID;
}
break;
Expand Down

0 comments on commit 0c20790

Please sign in to comment.