Skip to content

Commit

Permalink
fix: Enable the generation of buy and sell signals in the basic ML Ag…
Browse files Browse the repository at this point in the history
…ent based on the trained models
  • Loading branch information
seekersoftec committed Oct 12, 2024
1 parent 761a7f9 commit 46a7d4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/itbot/agents/basic_ml_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ async def generate_signals(self, symbol: str, data: pd.DataFrame) -> List[Signal
return []

# Create the signals
await asyncio.sleep(5)
buy, sell, score = True, False, 0.6
# buy, sell, score = await self._generate_signal(data, self.models[symbol])
# await asyncio.sleep(5)
# buy, sell, score = True, False, 0.6
buy, sell, score = await self._generate_signal(data, self.models[symbol])
self.logger.debug(f"Signal => Buy: {buy} | Sell: {sell} => {score*100}%")

price = data["close"].iloc[-1] # Latest close price
Expand Down

0 comments on commit 46a7d4f

Please sign in to comment.