Route ChatGPT / LLM signals to MT5 and cTrader
A language model like ChatGPT can output a structured trade decision (buy / sell / close a symbol). To act on it, a small piece of glue code turns that decision into a webhook to LOTUX, which authenticates it, applies your risk rules, and executes on your own MT5 or cTrader account. The model decides; LOTUX executes - it does not give advice.
The pattern
Ask the model to return a structured action (function calling / JSON mode) rather than free text - for example { "action": "buy", "symbol": "EURUSD", "volume": 0.1 }. Your code validates that output, adds your secret, and posts it to the LOTUX webhook. Keeping the model on structured output is what makes this safe and reliable.
Connect + enable External Signals
Connect an MT5 or cTrader account, open the External Signals app, and copy its webhook URL and secret.
Make the model return a structured action
Use function calling or JSON output so the model returns a clear action + symbol, not prose.
Validate, then POST
In your code, check the action is one you allow, add your secret and the fields it needs (a buy / sell needs a volume), then POST it to the LOTUX webhook. For retry-safe actions (modify_sl / modify_tp / breakeven / filtered close), add an X-Idempotency-Key and reuse the same value on retry.
Let your account rules backstop it
Set lot size / max risk / allowed symbols in LOTUX. They apply before an order is placed - so a hallucinated action still respects your limits.
Wire your model to your own account
This is the exact path LOTUX runs for every webhook signal. Run the bridge on your own machine - it executes through your own EA/cBot.
Read the External Signals docs →Frequently asked questions
- Does LOTUX use ChatGPT to generate trades for me?
- No. You bring the model and its prompt; your code decides what to send. LOTUX only authenticates the signal, applies your risk rules, and executes. It is not a broker and not investment advice.
- How do I keep the model from sending nonsense?
- Use structured output (function calling / JSON mode), validate the action in your code, and rely on your LOTUX risk rules as a final backstop before any order is placed.
- Does it work on cTrader?
- Yes. The webhook targets an MT5 or cTrader account the same way; only the account differs.