Revert to old shm "last" meaning last row

windows_testing_volume
Tyler Goodlet 2021-10-01 17:47:02 -04:00
parent 8b7e7fd110
commit baaf8d4a9d
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ class ShmArray:
self,
length: int = 1,
) -> np.ndarray:
return self.array[-length]
return self.array[-length:]
def push(
self,

View File

@ -135,7 +135,7 @@ async def dolla_vlm(
c, h, l, v = ohlcv.last()[
['close', 'high', 'low', 'volume']
]
][0]
lvlm += price * size
tina_lvlm = c+h+l/3 * v