# TradeLink v3.0.22 User Guide

TradeLink connects the local TradeLink Bridge dashboard, MetaTrader 5, and the NinjaTrader AddOn.

## Quick start

1. Open `1_TradeLinkBridge`.
2. Run `Start TradeLink Bridge.bat`.
3. Double-click `Open Dashboard.url` in the same folder, or manually open `http://127.0.0.1:5000`.
4. Activate your license.
5. Set your MetaTrader `terminal64.exe` path.
6. Import the compiled NinjaTrader AddOn zip from `2_NinjaTrader`.
7. Open NinjaTrader **Control Center > New > TradeLink**.
8. Confirm the dashboard shows MT5 connected and NT AddOn active.
9. Test on Sim101 and an MT5 demo account first.

## Important safety notes

- The bridge rechecks the license on startup, each page load, and at least every six hours while it remains open. If the license becomes inactive, dashboard access and MT5 hedge opening are blocked.

- The NinjaTrader AddOn defaults to Sim101 when Sim101 is available.
- **MT5 hedge orders** are enabled by default on new installs. Disable them for dry-run testing if you do not want MT5 hedges placed after NT fills.
- **Close NT if MT5 hedge closes** is disabled by default. MT5-side emergency exits do not normally instruct NinjaTrader to close.
- The MT5 emergency SL/TP buffer is a failsafe. NT should normally be the primary side that controls exits.

## Support information

Logs and local data are stored here:

```text
%LOCALAPPDATA%\TradeLink
```

The dashboard shortcut is `1_TradeLinkBridge\Open Dashboard.url`. The dashboard history page is available at:

```text
http://127.0.0.1:5000/history
```
