bugfix int(size) i u buy
This commit is contained in:
@ -225,7 +225,7 @@ class StrategyClassicSL(Strategy):
|
|||||||
else:
|
else:
|
||||||
sizer = size
|
sizer = size
|
||||||
#jde o uzavreni short pozice
|
#jde o uzavreni short pozice
|
||||||
if int(self.state.positions) < 0 and (int(self.state.positions) + sizer) > 0:
|
if int(self.state.positions) < 0 and (int(self.state.positions) + int(sizer)) > 0:
|
||||||
self.state.ilog(e="buy nelze nakoupit vic nez shortuji", positions=self.state.positions, size=size)
|
self.state.ilog(e="buy nelze nakoupit vic nez shortuji", positions=self.state.positions, size=size)
|
||||||
print("buy nelze nakoupit vic nez shortuji")
|
print("buy nelze nakoupit vic nez shortuji")
|
||||||
return -2
|
return -2
|
||||||
|
|||||||
Reference in New Issue
Block a user