4pass¶
Multi-Broker Automated Trading Platform¶
One platform. Multiple markets. Start free.
4pass connects TradingView alerts to your brokers for automated order execution — Taiwan, crypto, and US (planned) — with no desktop install and no upfront license. Built for scale and security so you focus on strategy, not infrastructure.
Executive Summary
Retail and institutional traders today juggle fragmented tools across markets — desktop software for Taiwan futures (MultiCharts at NT$43K+ upfront), separate bots for crypto (3Commas), and bridge services for US equities — each with its own license, learning curve, and security model. 4pass eliminates this fragmentation. It is a cloud-native, multi-broker SaaS that routes TradingView alerts to any supported broker in under two seconds, with per-user worker isolation, enterprise-grade encryption (AES-256-GCM + KMS HSM), and unit economics that break even at just 16 paying users with 94.8% gross margin at scale. The platform is production-ready for the first 500 users today, and scales to 100K+ without architectural rewrites — only Terraform variable changes.
10K+ Concurrent Users Supported
897ms Worker Startup (Pool Claim)
94.8% Gross Margin at Scale
37 Technical Indicators
~80 Terraform-Managed Resources
5 Security Layers
The Problem: Fragmented Tools, High Costs, No Unified Platform¶
Automated traders in the Asia-Pacific region face a fragmented landscape:
| Pain Point | Current Reality | 4pass Solution |
|---|---|---|
| Multiple subscriptions | Taiwan traders pay NT$43K+ for MultiCharts + data feeds; crypto traders add 3Commas (~NT$480–1,920/mo); US bridges charge separately | One subscription (NT$999/mo Pro) covers TW + Crypto + US |
| Desktop lock-in | MultiCharts, XQ, and 達錢 require Windows desktops and local data feeds | Cloud SaaS — no install, any device, any location |
| No cross-market coverage | Each tool serves one market; traders manage 2–3 platforms to cover ~20 hours/day | Single dashboard for Taiwan futures, crypto perpetuals, and US equities (planned) |
| Security gaps | Many webhook relays store credentials in plaintext or use basic API keys | 5 security layers: WAF, HTTPS, JWT + CSRF, RSA-4096 + AES-256-GCM encryption (KMS HSM), 4-layer webhook validation |
| No visual strategy creation | Writing Pine Script or PowerLanguage requires coding knowledge | Drag-and-drop strategy builder generates PineScript v6 automatically |
Technical Proof Points¶
These are the verified, measured attributes of the production system:
| Metric | Value | Why It Matters |
|---|---|---|
| Worker startup (pool claim) | 897ms end-to-end | Sub-second means no missed fills during volatile market moves |
| Gross margin at scale | 94.8% (empirical, Pareto model) | Unit economics support sustainable pricing without surprise hikes |
| Breakeven | 16 paying users | Low threshold reduces execution risk for early-stage growth |
| Per-user cost | $1.61/month (empirical) | 75% cheaper than Fargate; bridge networking achieves 60 tasks per EC2 instance |
| Security layers | 5 (network → transport → auth → encryption → application) | Each layer assumes the one above is already compromised |
| Encryption | RSA-4096 + AES-256-GCM, KMS HSM (FIPS 140-2 Level 3) | Private keys never exist in software; per-user key isolation |
| Technical indicators | 37 vectorized implementations | All verified against TradingView output; supports trend, momentum, volatility, volume |
| Infrastructure as Code | ~80 Terraform-managed AWS resources | Entire environment reproducible from terraform apply; scaling is a tfvars change |
| Worker image | 254 MB (53% smaller than naive build) | Fast pull = fast cold starts; 3-stage Docker build with trimmed boto3 |
| CI/CD | 3 GitHub Actions workflows, OIDC auth (no stored AWS keys) | Zero-downtime rolling deploys with circuit breaker auto-rollback |
Platform Overview¶
4pass is a multi-broker automated trading platform that enables retail and institutional traders to automate their strategies across multiple markets and brokers through a single unified interface.
What Makes 4pass Different¶
| Capability | Implementation | Advantage |
|---|---|---|
| Multi-Market Coverage | Taiwan futures/options + Crypto (BTC/USDT perpetuals) + US markets (planned) | Single platform for ~20 hr/day market coverage |
| Per-User Isolation | One ECS task per user with dedicated broker connection | Zero cross-user interference; fault isolation |
| Sub-Second Startup | SQS pool-claim from pre-warmed workers: 897ms end-to-end | Users never wait for infrastructure |
| Visual Strategy Builder | Vue Flow canvas → PineScript v6 code generation | No-code strategy creation with full PineScript power |
| Realistic Backtesting | Magnifier technique: intra-bar execution on higher timeframes | Avoids the "bar-close fill" illusion that overstates returns |
| Enterprise Security | RSA-4096 + AES-256-GCM + AWS KMS HSM | Private keys never leave FIPS 140-2 Level 3 hardware |
| Serverless Orchestration | 5 Lambda functions + 3 SQS queues | Zero single points of failure; unlimited scaling |
| Infrastructure as Code | ~80 Terraform-managed AWS resources | Reproducible; scaling is a tfvars change |
Why Traders & Teams Choose 4pass¶
- Start free, upgrade when ready — Basic tier includes simulation and strategy builder; no credit card required to try. Pro (NT$999/mo) unlocks real trading across all supported markets.
- One subscription, multiple markets — Taiwan futures/options, crypto perpetuals, and (soon) US equities from a single dashboard. No need to juggle separate tools or pay per market.
- TradingView-native — Use the charts and Pine Script you already know. Alerts hit 4pass in under a second; your broker receives the order with per-user isolation and full audit.
- Built for professionals and teams — Roadmap includes one webhook → multiple accounts (B2B/asset managers), in-app backtest, and native strategy execution so you can rely less on third-party platforms.
- Security you can trust — Credentials encrypted with keys in AWS KMS (FIPS 140-2 Level 3). WAF, rate limiting, and audit logs are standard so you and your clients stay protected.
Architecture at a Glance¶
Documentation Sections¶
Architecture¶
System architecture designed for 10K+ concurrent users. ECS EC2 Capacity Providers, Lambda orchestration, managed data layer, and auto-scaling from 1 to 100K users.
Design¶
Visual strategy builder, PineScript v6 compiler, magnifier backtesting engine, multi-broker abstraction with factory auto-discovery, and the complete order execution lifecycle.
Security¶
Defense-in-depth with 5 security layers: transport, end-to-end encryption, authentication, webhook validation, and WAF. Real-time attack detection with email alerts.
Cost Analysis¶
Summary & pricing, infrastructure breakdown, projections to 100K users, optimization strategies, and competitive analysis (Taiwan + global). 94.8% gross margin; breakeven at 16 users.
DevOps¶
Three GitHub Actions CI/CD pipelines, multi-stage Docker builds, optimized 254 MB worker image, rolling ECS deployments with health verification, and OIDC authentication.
Future Roadmap¶
Overview by dimension (Infrastructure, System Architecture, System Features & Product, DevOps), timeline, and the path to 100K users.
Supported Markets¶
00 02 04 06 08 10 12 14 16 18 20 22 24 (UTC+8)
├─────────────────────── Crypto 24/7 ────────────────────────────────┤
├── TW Night ──┤ ├──── TW Night Session ────────┤
├── TW Day ──┤
├── US Market ────┤
Effective coverage: ~20 hours/day across all markets
| Market | Broker | Status | Instruments |
|---|---|---|---|
| Taiwan Futures & Options | Shioaji (SinoPac) | Production | TAIEX Futures, Options |
| Cryptocurrency | Gate.io | Production | BTC Perpetuals, USDT Perpetuals |
| US Stocks & Futures | TBD | Planned | Equities, Index Futures |
Technology Stack¶
| Layer | Technology | Purpose |
|---|---|---|
| Frontend | Vue 3, Tailwind CSS, Vue Flow | Dashboard, strategy builder |
| API | FastAPI, Gunicorn, Uvicorn | REST API, webhook handler |
| Compute | ECS EC2 Capacity Provider | API service + per-user workers |
| Orchestration | Lambda, SQS FIFO, EventBridge | Worker lifecycle, task dispatch |
| Cache / Queue | ElastiCache Valkey Serverless | Redis-compatible; queues, state, sessions |
| Database | RDS Aurora PostgreSQL + Proxy | Users, orders, credentials, audit |
| Encryption | KMS, AES-256-GCM, RSA-4096 | End-to-end credential protection |
| Networking | ALB, WAF, VPC, Route 53 | HTTPS, DDoS protection, DNS |
| IaC | Terraform (~80 resources) | Reproducible infrastructure |
| CI/CD | GitHub Actions, ECR, ECS | Automated deployment pipeline |
| Backtesting | vectorbt, pandas, numpy | Signal-based portfolio simulation |
| Compiler | Custom PineScript v6 parser | Strategy → vectorized Python |
For Investors and Partners¶
This documentation serves as both a technical whitepaper and a business proposal. It provides the depth needed for technical due diligence alongside the financial projections and market analysis relevant to investment decisions.
| If you are evaluating... | Start here |
|---|---|
| Business viability and unit economics | Cost Analysis: Summary & Pricing — breakeven at 16 users, 94.8% gross margin, projections to 100K |
| Competitive positioning | Competitive Analysis — vs. 下單大師, MultiCharts, 3Commas, QuantConnect, and webhook relays |
| Technical architecture | Architecture Overview — per-user isolation, serverless orchestration, managed data layer |
| Security and compliance | Defense in Depth — 5 layers, FIPS 140-2 Level 3 HSM, OWASP-compliant auth |
| Product roadmap | Future Roadmap — in-app backtest, native execution, multi-account, US market |
| One-page summary | Business Summary — single-page overview for meetings and quick reference |
Get Started¶
| Step | Action |
|---|---|
| 1 | Sign up and create an account at 4pass.io. |
| 2 | Link your TradingView alerts to your 4pass webhook URL (see Webhook Security). |
| 3 | Connect a broker (Shioaji or Gate.io); credentials are encrypted and never leave our secure layer. |
| 4 | Run in simulation first, then switch to real trading when you’re ready. |
Questions or feedback? Contact us at luisleo52655@gmail.com.
4pass — Automated trading for every market.
Contact: luisleo52655@gmail.com