Skip to content

Commit

Permalink
Remove outdated comments (QuantConnect#8601)
Browse files Browse the repository at this point in the history
* remove oudated comments

* remove outdated comments

---------

Co-authored-by: Zekun Wang <[email protected]>
  • Loading branch information
fEst1ck and Zekun Wang authored Feb 21, 2025
1 parent bd144e0 commit f9d84a6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions Algorithm.CSharp/BasicTemplateCryptoAlgorithm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,7 @@ public override void OnData(Slice slice)
{
if (Portfolio.CashBook["LTC"].Amount > 0)
{
// The following two statements currently behave differently if we have initial holdings:
// https://github.com/QuantConnect/Lean/issues/1860

Liquidate("LTCUSD");
// SetHoldings("LTCUSD", 0);
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions Algorithm.Python/BasicTemplateCryptoAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ def on_data(self, data):
self.buy("LTCUSD", 10)
else:
if self.portfolio.cash_book["LTC"].amount > 0:
# The following two statements currently behave differently if we have initial holdings:
# https://github.com/QuantConnect/Lean/issues/1860

self.liquidate("LTCUSD")
# self.set_holdings("LTCUSD", 0)

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

0 comments on commit f9d84a6

Please sign in to comment.