Bridge signals
Bridge Tool forwards external alerts (MT4, AmiBroker, and other external platforms) to your connected Indian broker through Algocrab. This is separate from the chart code editor — you configure a bridge strategy card and POST JSON to the webhook URL.
Webhook URL
Copy the URL from Bridge Tool → Webhook Url in the app. Production endpoint:
https://algocrab.com/api/webhooks/bridge
Signal types
| signalType | Meaning |
|---|---|
| entry | Open a new position (buy or sell per side field) |
| exit | Close the current open position |
| target | Close position — profit target hit (same as exit for options) |
| stoploss | Close position — stop loss hit |
| reverse | Close existing position and open opposite side |
| strike-entry | Options bridge — open CE/PE position |
| strike-exit | Options bridge — close open option position |
Minimum payload
{
"bridgeId": "<from strategy card credentials>",
"instrumentKey": "<from strategy card credentials>",
"side": "buy",
"signalType": "entry",
"price": 0,
"qty": 1
}- Create and save a bridge strategy on Bridge Tool.
- Click Show Credentials → copy Bridge ID and Instrument Key.
- Click the
{ }button next to the webhook URL to open the payload template. - Set
signalTypeandsideper your indicator logic. - Paste the JSON into your MT4 or external alert POST body.
Options bridge
For options buying strategies, external indicators typically send:
strike-entry— open CE (buy signal) or PE (sell signal)strike-exit— close when exit, target, or stoploss firesreverse— close and flip direction
Platform SL vs bridge signals
Bridge strategies can also have platform stop loss and target configured on the strategy card (same Step 3 fields). Alternatively, your external indicator can send stoploss / target / exit signal types when its own logic fires.
Bridge requires internet — the webhook POST must reach Algocrab servers. Broker must be Connected and the bridge strategy Running.
Related docs
- Risk management — platform SL, target, trailing, square-off
- Strategies — built-in and custom AlgoCode algo trading