Revert to old shm "last" meaning last row
parent
6bea1b1adf
commit
8a151ddd54
|
@ -220,7 +220,7 @@ class ShmArray:
|
||||||
self,
|
self,
|
||||||
length: int = 1,
|
length: int = 1,
|
||||||
) -> np.ndarray:
|
) -> np.ndarray:
|
||||||
return self.array[-length]
|
return self.array[-length:]
|
||||||
|
|
||||||
def push(
|
def push(
|
||||||
self,
|
self,
|
||||||
|
|
|
@ -135,7 +135,7 @@ async def dolla_vlm(
|
||||||
|
|
||||||
c, h, l, v = ohlcv.last()[
|
c, h, l, v = ohlcv.last()[
|
||||||
['close', 'high', 'low', 'volume']
|
['close', 'high', 'low', 'volume']
|
||||||
]
|
][0]
|
||||||
|
|
||||||
lvlm += price * size
|
lvlm += price * size
|
||||||
tina_lvlm = c+h+l/3 * v
|
tina_lvlm = c+h+l/3 * v
|
||||||
|
|
Loading…
Reference in New Issue