Getting Started with FlashOrder
FlashOrder acts as a bridge between TradingView alerts and your MetaTrader 5 terminal. It uses a local Python server to receive webhooks and the MT5 Python API to execute trades instantly.
Prerequisites
- Windows 10/11 or Windows Server (VPS recommended)
- MetaTrader 5 Terminal installed and logged in
- Python 3.10 or higher installed
- TradingView Pro, Pro+, or Premium account (for Webhooks)
Installation
1. Clone the Repository
git clone https://github.com/hkg945/bridge.git2. Install Dependencies
pip install -r requirements.txt3. Configure Settings
Open config.json and set your MT5 terminal path:
{
"mt5_path": "C:\\Program Files\\MetaTrader 5\\terminal64.exe",
"server_port": 8000
}4. Run the Bridge
python start_bridge.pyThis will start the FastAPI server and automatically create an Ngrok tunnel. Copy the Public Webhook URL displayed in the console.