Connect n8n and Zapier to MT5 and cTrader
n8n and Zapier can both trigger a trade on your own MT5 or cTrader account without code - each has an HTTP step that posts to your LOTUX webhook. LOTUX authenticates the message, applies your risk rules, and executes. This is the External Signals path; the webhook guide covers the mechanics.
Before you start
Connect an MT5 or cTrader account once (create a license → install the EA/cBot → paste the key), open the External Signals app, and copy its webhook URL and secret. Both n8n and Zapier just need that URL and the secret (plus an X-Idempotency-Key header for retry-safe actions).
n8n
Add an HTTP Request node
After your trigger/logic, add an "HTTP Request" node. Method POST, URL = your LOTUX webhook.
Set the body
JSON body with your secret, your action, and the fields that action needs (a buy / sell needs a symbol and a volume).
Add the idempotency header (retry-safe actions)
For modify_sl / modify_tp / breakeven / a filtered close, add a header X-Idempotency-Key whose value STAYS THE SAME across retries of the same action. Do not use the run / execution id - it changes each run, so a retry would count as a new action.
Execute
Run the workflow once. A connected, online account executes the order; check LOTUX history.
Zapier
Add a "Webhooks by Zapier" action
Choose "POST". URL = your LOTUX webhook.
Set the payload
Data type JSON, with your secret, your action, and the fields it needs (a buy / sell needs a symbol and a volume).
Add the idempotency header (retry-safe actions)
For modify_sl / modify_tp / breakeven / a filtered close, add X-Idempotency-Key under Headers with a value that STAYS THE SAME when the same action is retried - not a per-run value, which would count as a new action.
Test the step
Run a test. The order reaches your account; confirm in LOTUX history.
Automate your account, no code
This is the exact path LOTUX runs for every webhook signal. Choose how you host the bridge - both execute through your own EA/cBot.
Frequently asked questions
- Do I need any coding for n8n or Zapier?
- No. Both use a built-in HTTP/Webhook step. You paste the LOTUX webhook URL and set a JSON body with your secret + action + the fields that action needs (a buy/sell needs a symbol and a volume).
- Does it work on cTrader as well as MT5?
- Yes. The same HTTP step works on cTrader (LOTUX cBot) or MT5 (LotuxBridge EA); the target account decides the venue.
- What stops a retried automation from trading twice?
- Reuse the same X-Idempotency-Key when the same action is retried - LOTUX treats a repeated key as a duplicate. Do not use a per-run value like the execution id: it changes each run and would count as a new action. The header protects modify_sl / modify_tp / breakeven / filtered-close actions.
LOTUX executes orders on your rules - it is not a broker and not investment advice. Trading carries risk; you are responsible for your own account and settings.