Skip to content

Commit f9d84a6

Browse files
fEst1ckZekun Wang
andauthored
Remove outdated comments (#8601)
* remove oudated comments * remove outdated comments --------- Co-authored-by: Zekun Wang <zekun.wang@uwaterloo.ca>
1 parent bd144e0 commit f9d84a6

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Algorithm.CSharp/BasicTemplateCryptoAlgorithm.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,7 @@ public override void OnData(Slice slice)
167167
{
168168
if (Portfolio.CashBook["LTC"].Amount > 0)
169169
{
170-
// The following two statements currently behave differently if we have initial holdings:
171-
// https://github.com/QuantConnect/Lean/issues/1860
172-
173170
Liquidate("LTCUSD");
174-
// SetHoldings("LTCUSD", 0);
175171
}
176172
}
177173
}

Algorithm.Python/BasicTemplateCryptoAlgorithm.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,7 @@ def on_data(self, data):
135135
self.buy("LTCUSD", 10)
136136
else:
137137
if self.portfolio.cash_book["LTC"].amount > 0:
138-
# The following two statements currently behave differently if we have initial holdings:
139-
# https://github.com/QuantConnect/Lean/issues/1860
140-
141138
self.liquidate("LTCUSD")
142-
# self.set_holdings("LTCUSD", 0)
143139

144140
def on_order_event(self, order_event):
145141
self.debug("{} {}".format(self.time, order_event.to_string()))

0 commit comments

Comments
 (0)