Hello,
Problem statement:
If a strategy (sample based on Examples attached) uses comments to identify order, the comment itself is not saved in order history (see Capture1).
Expected result:
Order comments are saved in order history. And ideally left align the value in result viewer.
Proposed fix:
Analyzing code and backporting in SQX122 problem seems related to class com.strategyquant.tradinglib.Order, method public void setFromLiveOrder(ILiveOrder,..)
Proposed fix is adding a single line to the method
...
this.Comment = liveOrder.getComment();
...
After patching the method a correct comments are reported in order history (see Capture2).
Did not analyze dependencies (like orders with deleted comment). Hope it helps.
Tnx,
BR Enyx
Addendum. Not sure if a new bug..
In SQX122 comment is a variable and strategy created with that assumption (Capture3)
In SQX126 comment is treated as text and replaced by variable guid.. (Capture 4)