← All posts
Stoqey Team

Stoqey SQL-Rules

Build a trading bot in 10 lines, no code, no webhooks, no Pine Script

🚀 “SQL-Rules” – Build an entire trading bot in 10 lines (no code, no webhooks)\

Hey traders, tinkerers & the quietly-curious 👋\

I’ve spent the past few months building Stoqey SQL-Rules – a human-readable rule language that lets you automate stocks, futures & crypto across IBKR, Tradovate, Alpaca, Binance and more – without Pine Script hoop-jumping or webhook glue.\

Why it hits different

  • No webhooks, no middleware lag – rules run directly on our infra; TradingView/Pine usually needs an alert → webhook → server → broker chain, which can drop or delay orders.\
  • 10-line strategies – think SQL meets “If This Then That”:
IF stopLoss ticks=30
TICK volume WITH minutes=3 > 50 THEN
order SET size=100, price=51.25, transmit=true

^ That’s a full-blown risk-managed breakout bot.

  • Zero monthly fee – we host the engine, historical data, and execution layer for free. (Broker still charges/credits fills, of course.)\

  • Plug-n-play broker APIs – we talk natively to\

    • Interactive Brokers for global equities & options\
    • Tradovate for CME futures with 1-click auth\
    • Alpaca for commission-free U.S. stocks and options\
    • Binance for spot & perpetuals via their REST/WS API\
    • more... – we’re growing fast.
  • Collaborate & show off – make your bot stats public, fork a friend’s rules, or co-author a back-test in real time (think Google Docs for strategies). Platforms like QuantConnect proved traders love sharing—but they gate most power features behind tiers. Ours are free.

  • Beginner-friendly – never coded? If you can read IF price > 50 THEN buy, you’re in. Advanced quants still get indicators (EMA, RSI, vol, etc.) plus position-aware logic – minus Pine’s global-var gymnastics.\

What you can build tonight

IdeaLinesAssetGoal
3-min volume spike scalper6FuturesCatch momentum bursts
RSI mean-revert bot8StocksFade overbought moves
Trailing-stop moonbag saver5CryptoLock gains & ride trends

Jump in

  1. Hit Docs → Quick-Start at stoqey.com/docs\
  2. Clone a template, tweak numbers, press Back-Test – results stream instantly.\
  3. Toggle Live; we sync keys with your broker and babysit infra 24/7.

No paywalls, no “pro” tier – just trade smarter. Questions / feedback totally welcome – roast it, test it, break it. 💥\

Stay sharp & happy automating!

← Back to the blog