`r`n
OPEN SOURCE PROJECT

Trading Bot: Nômade da Corte

Elite Engineering and AI applied to Financial Markets

View on GitHub Pro Support

What is the Trading Bot Engine?

This engine is a complete ecosystem for algorithmic trading of crypto assets. Unlike simple bots, it utilizes an **AI Tribunal (Gemini 1.5 Flash)** to validate each technical entry, ensuring the bot doesn't trade against market sentiment or during moments of extreme noise.

Quantitative Engine Millisecond analysis of indicators like EMA200, RSI, ADX, and ATR.
AI Tribunal Qualitative validation of macro trends using Google's generative models.
Integrity Shield Security lock that blocks orders during network failures or data gaps.
Real-time Dashboard Futuristic interface with charts synchronized via WebSocket (Bybit V5).

How the Bot "Thinks"?

The decision flow follows a rigorous hierarchy to protect your capital:

[DATA COLLECTION] -> Bybit V5 WebSocket (Candles, Book, Trades)
    |
[QUANT ANALYSIS] -> Checks Regime (EMA200) and Strength (ADX/RSI)
    |
[AI TRIBUNAL] -> Gemini analyzes if the trend is real or noise
    |
[DECISION] -> IF (AI == TECHNICAL) and (RISK OK) -> TRIGGER ORDER
    |
[MONITORING] -> Dynamic Trailing Stop and Take Profit logic

Elite Tech Stack

Python 3.12+ FastAPI Firebase Realtime DB Bybit SDK (UTA) Google Gemini AI Lightweight Charts

Backend (Local Engine)

The engine is built on asynchronous Python to ensure multiple currencies can be monitored simultaneously without performance loss.

bybit_service.pyBYBIT V5
def get_candles(self, symbol="BTCUSDT", interval="1h", limit=100):
    # Connects to Bybit's Unified Trading Account (UTA)
    res = self.session.get_kline(
        category="spot",
        symbol=symbol,
        interval="60",
        limit=limit
    )
    return res['result']['list']

Setup Guide (Open Source)

To run your own version of the bot, follow these simple steps:

1. Clone the Repo: git clone https://github.com/RaviMarket/Trading-Bot-Engine.git
2. Install Dependencies: pip install -r backend/requirements.txt
3. Configure Keys: Fill the backend/.env file with your Bybit, Firebase, and Gemini keys.
4. Start the Engine: python backend/main.py
Risk Warning: Financial markets are volatile. Use this software for educational and research purposes only. Never invest money you cannot afford to lose.
← Back to Documents Start on GitHub