← Discover MCPs and Agents
f
AgentAI & MLGitHub

forex-trading-ai-agent

About AI quantitative trading platform for crypto, stocks, and forex with backtesting, live trading, market data, and multi-agent research.vibe-trading ,trading-agents,ai-trader,ai-trading

Links

README

From the repo.

K.I.T. - Knight Industries Trading

Powered by TraderLifestyle

⭐ POWERED BY TRADERLIFESTYLE ON YOUTUBE ⭐


Fork: This tree is maintained by datagridSolution. Upstream lineage traces to the K.I.T. project referenced in package.json history.

License: MIT Node.js TypeScript PRs Welcome

Your Autonomous AI Financial Agent šŸ¤–šŸ’°

K.I.T. is your personal AI trading agent - like having a professional trader working for you 24/7. Just tell it what you want, and it handles everything else.

"One man can make a difference... especially with proper position sizing."
   - K.I.T.

šŸš€ One-Line Installation

Windows (CMD)

cd C:\ && git clone https://github.com/kayzaa/k.i.t.-bot.git && cd k.i.t.-bot && npm install && npm run build && npm link && kit start

Linux / macOS

cd ~ && git clone https://github.com/kayzaa/k.i.t.-bot.git && cd k.i.t.-bot && npm install && npm run build && sudo npm link && kit start

That's it! Dashboard opens automatically at http://localhost:18799/

After installation, use kit from anywhere:

kit start       # Start gateway + dashboard
kit --help      # Show all commands

šŸŽÆ Two Ways to Use K.I.T.

1ļøāƒ£ As Your Personal AI Trader (No Coding!)

Just install, connect, and chat. K.I.T. does the rest.

kit start                    # Start K.I.T.
kit connect binance          # Connect exchange
kit connect telegram         # Connect Telegram
# Done! Chat with K.I.T. via Telegram

K.I.T. can:

  • šŸ“Š Trade autonomously based on your goals
  • šŸ’¬ Understand natural language ("Buy BTC when RSI below 30")
  • šŸ“” Copy signals from Telegram channels automatically
  • šŸ”” Alert you about important market events
  • šŸ“ˆ Analyze any market on request
  • šŸ›”ļø Manage risk automatically

2ļøāƒ£ As a Framework for Developers

Build your own trading bots, apps, and services.

import { createBot } from 'kit';
const bot = createBot({ exchange: 'binance', strategy: 'rsi' });
bot.start();

šŸ‘‰ See Developer SDK


šŸš€ Quick Start

Install

# Clone repository
git clone https://github.com/kayzaa/k.i.t.-bot.git
cd k.i.t.-bot

# Install dependencies
npm install

# Build
npm run build

# Start
npm start

Initialize

# Interactive setup wizard
kit init

# Or start with demo mode (no API keys needed!)
kit init --demo

Start Trading

# Start the Gateway
kit gateway start

# Check your portfolio
kit portfolio

# Analyze a pair
kit analyze BTC/USDT

# Execute your first trade (demo mode)
kit trade buy BTC/USDT 100 --demo

That's it! šŸŽ‰ K.I.T. is running.


✨ Features

FeatureDescription
šŸ¤– Autonomous TradingTrades 24/7/365 across all markets
šŸ“Š Portfolio ManagementUnified view across all exchanges
šŸ“ˆ Technical AnalysisRSI, MACD, Bollinger, MA, and more
šŸ›”ļø Risk ManagementStop-loss, position sizing, daily limits
ā®ļø BacktestingTest strategies with historical data
šŸ”” AlertsPrice, indicator, and portfolio alerts
šŸ“° News IntegrationSentiment analysis and event tracking
šŸ’¬ Multi-ChannelControl via Telegram, Discord, CLI
šŸ› ļø Developer SDKBuild your own trading bots & apps
šŸ“œ Pine Script GeneratorCreate TradingView indicators & strategies
šŸ‘„ Social TradingCopy signals from bots & top traders
🐦 Twitter IntegrationAuto-post signals & analysis to Twitter/X

šŸ’° Supported Markets

MarketExchanges/BrokersStatus
šŸŖ™ CryptoBinance, Kraken, Coinbase, OKX, Bybitāœ… Ready
šŸ’± ForexMetaTrader 4/5, RoboForex, IC Markets, OANDA, Pepperstone, XMāœ… Ready
šŸ“ˆ StocksInteractive Brokers, Alpaca🚧 Beta
šŸ¦ DeFiUniswap, Aave, LidošŸ“‹ Planned

šŸ†• New Skills

šŸ“œ TradingView Script Generator

Generate Pine Script v5 code for TradingView from simple descriptions:

# Generate RSI indicator
kit pine indicator --type rsi --name "My RSI"

# Generate MA crossover strategy
kit pine strategy --name "MA Cross" --indicators "ema:9,ema:21" --entry "cross_above" --exit "cross_below"

# Generate from description
kit pine describe "Create a strategy that buys when RSI is below 30"

Features:

  • Natural language → Pine Script conversion
  • Indicator templates (RSI, MACD, Bollinger, EMA)
  • Strategy templates with TP/SL
  • Auto-generate K.I.T. webhook alerts

šŸ‘‰ See TradingView Script Skill


šŸ‘„ Social Trading

Copy trades from signal providers, Telegram bots, and top traders:

# Add a signal source
kit social add telegram @CryptoSignalsVIP

# List sources
kit social sources

# View performance
kit social stats

Supported Sources:

  • šŸ“± Telegram channels & bots
  • šŸ’¬ Discord servers
  • 🐦 Twitter/X accounts
  • šŸ”— Custom webhooks
  • šŸ“Š Binance Copy Trading

Features:

  • Universal signal parser (multiple formats)
  • Risk-adjusted position sizing
  • Duplicate detection
  • Performance tracking per source

šŸ‘‰ See Social Trading Skill


🐦 Twitter Posting

Automatically share signals and analysis on Twitter/X:

# Post a signal
kit twitter signal BTC/USDT LONG 45000 --tp 47000 --sl 44000

# Post analysis
kit twitter analysis ETH/USDT --timeframe 4H

# Post custom tweet
kit twitter post "Market update..." --image chart.png

Auto-Post Features:

  • šŸ“ˆ Trading signals with charts
  • šŸ“Š Technical analysis summaries
  • šŸ“… Daily/weekly performance reports
  • āš ļø Market alerts

Safety:

  • Rate limiting (max posts per hour/day)
  • Content validation
  • Automatic disclaimer inclusion

šŸ‘‰ See Twitter Posting Skill


šŸ› ļø 66 Professional Skills

K.I.T. comes packed with 66 trading skills - your complete trading arsenal!

šŸ¤– AI & Analysis (8)

SkillDescription
ai-predictorML price predictions (LSTM, XGBoost)
ai-screenerAI market screening
sentiment-analyzerSocial/news sentiment
market-analysis50+ technical indicators
news-trackerBreaking news alerts
quant-engineFactor models & alpha
order-flowMarket microstructure
correlation-matrixAsset correlations

šŸ“ˆ Trading (12)

SkillDescription
auto-traderAutonomous trading
smart-routerTWAP/VWAP execution
smart-order-routerBest execution routing
signal-copierCopy trading signals
options-traderOptions with Greeks
binary-optionsBinary options analysis
stock-traderStock trading
paper-tradingRisk-free practice
twap-botTime-weighted execution
session-timerMarket sessions
lot-size-calculatorPosition sizing
pip-calculatorForex pip values

šŸ”„ Automation (10)

SkillDescription
grid-botGrid trading
leveraged-gridMargin grid trading
trailing-gridDynamic trailing grids
dca-botDollar cost averaging
task-schedulerSchedule any task
alert-systemPrice/indicator alerts
multi-condition-alertsComplex alert logic
signal-botGenerate & broadcast
rebalancerPortfolio rebalancing
portfolio-rebalancerAdvanced rebalancing

⚔ Arbitrage (5)

SkillDescription
arbitrage-finderCross-exchange arb
arbitrage-hunterAggressive hunting
spot-futures-arbCash & carry
funding-rate-arbPerp funding capture
liquidity-monitorDepth tracking

🌐 DeFi (5)

SkillDescription
defi-connectorProtocol integration
defi-dashboardDeFi portfolio
defi-yieldYield farming optimizer
debank-aggregatorDeBank data
wallet-connectorMulti-wallet

šŸ“” Social (6)

SkillDescription
social-tradingSocial copy trading
copy-traderCopy specific traders
whale-trackerLarge wallet tracking
twitter-postingAuto-post signals
social-feedTrading feed
kitbot-forumCommunity integration

šŸ›”ļø Risk & Tax (6)

SkillDescription
tax-calculatorFIFO/LIFO tax calc
tax-trackerTrade tax tracking
risk-calculatorPosition risk
risk-aiAI risk analysis
complianceRegulatory checks
prop-firm-managerFunded accounts

šŸ’° Portfolio (8)

SkillDescription
portfolio-trackerMulti-exchange view
performance-reportTrading metrics
trade-journalTrading diary
backtesterStrategy testing
dividend-managerDividend tracking
multi-assetMulti-asset portfolio
economic-calendarEconomic events
payment-processorCrypto payments

šŸ”— Connectors (6)

SkillDescription
exchange-connectorUniversal exchange API
metatraderMT4/MT5 integration
etoro-connectoreToro integration
tradingview-scriptPine Script generator
tradingview-webhookAlert receiver
tradingview-realtimeReal-time data

šŸ‘‰ Full Skills Documentation


šŸ—ļø Architecture

kit/
ā”œā”€ā”€ gateway/              # The Brain
│   ā”œā”€ā”€ server.ts         # WebSocket Gateway
│   ā”œā”€ā”€ autopilot.ts      # Autonomous Decision Engine
│   ā”œā”€ā”€ scheduler.ts      # Task Automation
│   └── skill-loader.ts   # Plugin System
│
ā”œā”€ā”€ skills/               # Modular Capabilities
│   ā”œā”€ā”€ exchange-connector/   # Exchange APIs
│   ā”œā”€ā”€ portfolio-tracker/    # Holdings & P&L
│   ā”œā”€ā”€ alert-system/         # Price Alerts
│   ā”œā”€ā”€ market-analysis/      # Technical Analysis
│   ā”œā”€ā”€ auto-trader/          # Strategy Execution
│   ā”œā”€ā”€ metatrader/           # MT4/MT5 Integration
│   ā”œā”€ā”€ signal-copier/        # Copy Trading
│   ā”œā”€ā”€ backtester/           # Historical Testing
│   ā”œā”€ā”€ tradingview-script/   # Pine Script Generator šŸ†•
│   ā”œā”€ā”€ social-trading/       # Social Copy Trading šŸ†•
│   └── twitter-posting/      # Twitter Integration šŸ†•
│
ā”œā”€ā”€ workspace/            # Your Agent's Home
│   ā”œā”€ā”€ SOUL.md           # K.I.T.'s Personality
│   ā”œā”€ā”€ AGENTS.md         # Trading Instructions
│   └── TOOLS.md          # Your Configuration
│
└── cli/                  # Command Line Interface

šŸŽÆ Operating Modes

1. Manual Mode (Training Wheels)

Every trade requires your approval. K.I.T. suggests, you decide.

kit autopilot disable

2. Semi-Auto Mode (Co-Pilot)

Small trades execute automatically. Large or risky trades need approval.

kit autopilot enable --mode semi-auto
kit autopilot threshold 500  # Auto-approve trades under $500

3. Full-Auto Mode (Autopilot)

K.I.T. takes full control. You get daily reports. It handles the rest.

kit autopilot enable --mode full-auto

šŸ”§ CLI Commands

Gateway

kit gateway start       # Start the Gateway
kit gateway stop        # Stop the Gateway
kit gateway status      # Check status

Portfolio

kit portfolio           # Portfolio summary
kit portfolio pnl       # P&L analysis

Trading

kit trade buy <pair> <amount>    # Buy
kit trade sell <pair> <amount>   # Sell
kit trade positions              # Open positions

Analysis

kit analyze <pair>               # Full analysis
kit market <pair>                # Price & volume

šŸ›”ļø Safety & Risk Management

Built-in Protections

ProtectionDefaultDescription
Max Daily Loss5%Stop trading after 5% daily loss
Max Drawdown15%Emergency stop at 15% from peak
Max Position10%No single position > 10% of portfolio

Kill Switch

kit trade kill  # Instantly close all positions

šŸ‘Øā€šŸ’» Developer SDK

K.I.T. is not just a trading bot - it's a framework!

import { createBot, RSIStrategy } from 'kit';

// Create your own bot in 10 lines
const bot = createBot({
  name: 'MyBot',
  exchange: 'binance',      // or: kraken, mt5, roboforex...
  pair: 'BTC/USDT',
  strategy: new RSIStrategy(),
  risk: { stopLoss: 0.02, takeProfit: 0.04 },
});

bot.start();

What you can build:

  • šŸ¤– Trading Bots (Grid, DCA, Arbitrage, Signal Copier)
  • šŸ“± Telegram/Discord Bots
  • 🌐 Web Dashboards
  • šŸ“Š Portfolio Trackers
  • šŸ”” Alert Systems
  • šŸ“” Signal Services

šŸ‘‰ Full SDK Documentation


šŸ“ Examples

See the examples/ folder:

  • basic-bot.ts - Simple trading bot
  • signal-copier-example.ts - Copy signals from Telegram
  • portfolio-tracker-example.ts - Track portfolio across exchanges
  • tradingview-script-example.ts - Generate Pine Script indicators & strategies šŸ†•
  • social-trading-example.ts - Copy trades from bots & signal providers šŸ†•
  • twitter-posting-example.ts - Auto-post signals & analysis to Twitter šŸ†•

šŸ¤ Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

# Fork & clone
git clone https://github.com/YOUR_USERNAME/k.i.t.-bot.git
cd k.i.t.-bot

# Install dependencies
npm install

# Run tests
npm test

# Development mode
npm run dev

āš ļø Disclaimer

K.I.T. is a tool, not financial advice. Trading involves risk.

  • āš ļø Always start with paper/demo trading
  • āš ļø Never risk more than you can afford to lose
  • āš ļø Past performance doesn't guarantee future results
  • āš ļø You are responsible for your own financial decisions

šŸ“„ License

MIT License - Build something amazing!


K.I.T. - Because your wealth deserves an AI that never sleeps. šŸŒ™


šŸŽ¬ POWERED BY TRADERLIFESTYLE ON YOUTUBE šŸŽ¬

TraderLifestyle YouTube


GitHub • Quick Start • Changelog • YouTube

Collected info

  • ā˜… 144 stars
  • āŽ‡ 872 forks
  • Language: TypeScript
  • Source updated: 9/21/2026