Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Sep 14, 2024
1 parent d8129ee commit b82ad31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions risk/_actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async def _trail_position(self, event: TrailEvent):
async with self._lock:

async def handle_trail(position: Position, risk_bar: OHLCV):
logger.info("Trail event")
logger.info(f"Trail event for side: {position.side}, bar: {risk_bar}")

ta = await self.ask(TA(self.symbol, self.timeframe, risk_bar))
return position.trail(ta)
Expand Down Expand Up @@ -214,7 +214,6 @@ async def _process_market(
self.anomaly_threshold *= DYNAMIC_THRESHOLD_MULTIPLIER
self.max_bars *= DYNAMIC_THRESHOLD_MULTIPLIER
self.consc_anomaly_counter = 1
await asyncio.sleep(0.00001)
continue
else:
self.anomaly_threshold = DEFAULT_ANOMALY_THRESHOLD
Expand Down

0 comments on commit b82ad31

Please sign in to comment.