How It Works

How NinjaConnects Works

NinjaConnects is not merely a trade copier; it is a Distributed Automation Ecosystem. It transforms your trading infrastructure from a fragile, single-point-of-failure setup into a robust, self-healing network. It acts as your Automation Engine, your Guardian Angel, and your Execution Router, all powered by the FSK Distributed Trading Protocol.

1. Flexible Network Topology: Star & Daisy Chain

Objective: Total routing freedom using Cryptographic Secrets.

NinjaConnects moves beyond simple "Leader-Follower" logic. Instead, it uses "Secrets" (Passphrases) to create dynamic relationships between computers.

  • The Secret Handshake: A receiver will only execute commands if the incoming TheSecret matches its own. This allows you to route signals selectively.
  • Star Topology: One central Signal Source (TradingView) broadcasts to 10 different computers simultaneously. Each computer acts independently.
  • Daisy Chain: Computer A receives a signal, executes it, and instantly forwards it to Computer B (using TargetSecret). This allows for "Hopping" signals across different networks or locations.
  • Hybrid Networks: You can mix both topologies to create complex execution grids that span different ISPs (e.g., Fidium and Tachus) for maximum uptime.
Flexible Network Topology Diagram

2. Whale Stealth: Slicing Large Orders

Objective: Hide institutional-sized intent by dispersing execution.

When trading large size (Whale Orders), executing all contracts at once creates a "Market Impact" that moves price against you. NinjaConnects solves this via Distributed Slicing.

  • The Concept: A single "Whale Order" (e.g., Buy 100 NQ) is sent from the cloud.
  • The Slice: Instead of one account buying 100, the signal is received by 50 distributed NinjaConnects nodes.
  • The Execution: Each node buys only 2 contracts.
  • The Result: The market sees 50 small, retail-sized orders rather than one massive institutional block. This reduces slippage and hides your true directional bias from high-frequency algorithms.
Whale Stealth Order Slicing

3. The "Lifeboat": Hybrid Immunity to Failure

Objective: Protect capital with a "Fixed Target, Trailing Stop" architecture.

In traditional automation, if your strategy crashes, your trade is left "naked." NinjaConnects eliminates this with Local Lifeboat Logic. We use a hybrid approach to maximize probability while protecting gains.

The Hybrid Bracket Logic:

  • The Anchor (Profit Target): The Profit Target is mathematically Anchored to your Entry Price. It does not move. This ensures that your required Risk/Reward ratio is strictly maintained, preventing the target from "running away" during market volatility.
  • The Trail (Stop Loss): The Stop Loss is Dynamic. It anchors to the Current Price. As the trade moves in your favor (e.g., $50 steps), the Stop moves up to lock in profit, but the Profit Target stays fixed to ensure a fill.

Failure Protection:

  • Upstream Failure: If TradingView or the Cloud disconnects, your Lifeboat orders are already live at the broker. The trade will manage itself to conclusion.
  • Downstream Failure: If your PC freezes, the "Guardian Angel" (Observer Node) detects the silence and adopts these specific orders.
Lifeboat Logic Diagram

4. The "Guardian Angel" Observer

Objective: Redundant monitoring without trade duplication.

You can configure specific NinjaConnects nodes as Observers (Is_Observer = True).

  • Passive Monitoring: The Observer watches the account but ignores Entry signals. It will never double-buy.
  • Active Protection: It strictly monitors the Safety Orders (Stops/Limits).
  • Adoption: If the Primary computer fails to move a Stop Loss (due to a crash), the Observer's "Politeness Delay" expires, and it actively takes over management of the trade.
  • Multi-Chart Defense: You can have multiple charts open for the same instrument, some acting as Traders and others as Observers, ensuring that no single application error can leave your account unprotected.
Guardian Angel Observer Diagram

5. The FSK Distributed Trading Protocol

Objective: A standardized protocol for high-reliability, large-scale distributed trading.

NinjaConnects is the reference implementation of the FSK Protocol, designed to bridge the gap between Human/AI decision-making and high-speed execution.

Protocol Tenets:

  • Atomic Signals: Every instruction is a self-contained JSON payload containing all necessary context (Symbol, Action, Price, Secret). No "state" is assumed; every signal is absolute.
  • Local Autonomy: Every node is sovereign. If a node receives an entry, it is personally responsible for the safety of that trade (creating Lifeboats) regardless of what the central brain does next.
  • Politeness Consensus: To prevent "Race Conditions" (two computers fighting to move the same order), nodes use a Politeness Delay. Backup nodes wait (e.g., 3 seconds) to see if the Primary acts. If the Primary is silent, the Backup assumes control.
  • State Agnosticism: The system is designed to recover from "Amnesia." If a computer restarts, it scans the broker's active orders (Orphan Management), adopts them, and resumes trailing immediately.

Sample JSON Trigger:

{ "SourceSecret": "MySecret#", "TargetSecret": "TargetSecret#", "max_lag": "30", "timestamp": "2026-01-30T10:00:00Z", "trigger_price": "15000.00", "tv_exchange": "CME", "tv_instrument": "NQH2026", "quantity": "1", "order_id": "Long_12345", "action": "enter_long" }

Universal Export & Integration:
NinjaConnects exports trades from any strategies or manual trading to exactly the same JSON alerts as one would receive from TradingView. Thus, a strategy running on TradingView or NinjaTrader would equally be part of this ecosystem and generate, relay, and route orders for the complex systems of tomorrow.

FSK Protocol Diagram

6. Testing & Optimization

Objective: Continuous improvement through data.
  • JSON Trigger Files: NinjaConnects generates detailed JSON logs of every event.
  • Replay & Simulation: These logs can be fed back into the system to "Replay" difficult market days.
  • Strategy Optimization: Developers can test how their algorithms behave under latency or packet loss scenarios, ensuring the FSK Protocol handles the edge cases correctly before risking live capital.
Testing and Optimization Diagram

7. Licensing & Business Philosophy

Objective: Growth through value, not friction.

We believe in a "Volume-First" model. A happy user base is the strongest foundation.

  • Invoicing: Usage is billed via monthly invoices sent on the 1st.
  • Grace Periods: We provide a generous grace period (Invoice + 30 days + 8 days buffer).
  • Fail-Safe Licensing: If our license server goes down, your trading does not stop. NinjaConnects defaults to "Offline Mode" (Free), ensuring we never hold your capital hostage due to a technical glitch on our end.
  • The "Free Month" Buffer: Our liberal grace period effectively means that in transition periods, you are often trading on "house time," ensuring you are satisfied before you pay.
Licensing Philosophy