Fixes python algorithm to be python 3 compliant
This commit is contained in:
@@ -59,7 +59,7 @@ class DropboxBaseDataUniverseSelectionAlgorithm(QCAlgorithm):
|
||||
def OnData(self, slice):
|
||||
|
||||
if slice.Bars.Count == 0: return
|
||||
if self._changes == SecurityChanges.None: return
|
||||
if self._changes == None: return
|
||||
|
||||
# start fresh
|
||||
self.Liquidate()
|
||||
@@ -69,7 +69,7 @@ class DropboxBaseDataUniverseSelectionAlgorithm(QCAlgorithm):
|
||||
self.SetHoldings(tradeBar.Symbol, percentage)
|
||||
|
||||
# reset changes
|
||||
self._changes = SecurityChanges.None
|
||||
self._changes = None
|
||||
|
||||
def OnSecuritiesChanged(self, changes):
|
||||
self._changes = changes
|
||||
|
||||
Reference in New Issue
Block a user