TradingView alert integration
One HTTPS endpoint. Independent engine routing. Explicit event evidence.
Endpoint
POST https://cyguru.gold/api/webhooks/tradingviewTradingView alert changes are manual. Publishing this Site does not alter an existing TradingView alert. Keep old alerts until a synthetic test and a real qualifying event are verified in the new receiver. Never run duplicate production alerts indefinitely.
Authentication
Add a secret field containing the server-side TERMINAL_WEBHOOK_SECRET to the JSON alert body. The actual value is not published. Authorization: Bearer is also supported for service tests. Do not place secrets in URLs. Existing CY66 path-token endpoints remain untouched.
Native v1 contract
{
"secret": "REPLACE_PRIVATELY",
"schema_version": 1,
"event_id": "unique-event-id",
"signal_id": "stable-signal-id",
"indicator_id": "66-BREAKOUT-V1",
"strategy_id": "BREAKOUT",
"symbol": "OANDA:XAUUSD",
"timeframe": "15",
"action": "BUY",
"event_type": "SIGNAL_CREATED",
"entry_price": "NUMBER_FROM_SCRIPT",
"stop_loss": "NUMBER_FROM_SCRIPT",
"take_profit_1": "NUMBER_FROM_SCRIPT",
"take_profit_2": "NUMBER_FROM_SCRIPT",
"take_profit_3": "NUMBER_FROM_SCRIPT",
"event_timestamp": "ISO_UTC_FROM_SCRIPT",
"created_timestamp": "ISO_UTC_SIGNAL_ORIGIN",
"expires_at": "ISO_UTC_EVALUATION_DEADLINE",
"environment": "production"
}Template tokens above must be replaced by actual script variables; this is not a ready-to-send market signal. Native timestamps use ISO UTC, prices use JSON numbers. event_id is unique per update, signal_id remains stable. Delivery must be within ten minutes. Retries retain the same event_id and payload.
Lifecycle
SIGNAL_CREATED → SIGNAL_UPDATED / TP1_HIT / TP2_HIT → TP3_HIT or STOP_LOSS_HIT / SIGNAL_CLOSED. SIGNAL_CANCELLED and SIGNAL_INVALIDATED are terminal. Price levels, direction and evaluation deadline remain immutable. Out-of-order and contradictory events are rejected. Test events use environment=test and never enter the public feed.
Existing Pine payload compatibility
The original 66.signals.v1 JSON contract is supported through a validated adapter. Keep every original field and append secret. SIGNAL maps to SIGNAL_CREATED, FILL to SIGNAL_UPDATED, TARGET to the matching TP event, STOP / STOP_AFTER_TARGET to a stop, AMBIGUOUS to invalidation and WINDOW_END to closure. Start the new receiver with the next original SIGNAL; updates without an origin are rejected.
| Indicator | Exact indicator_id / engine_id | Timeframe | Migration action |
|---|---|---|---|
| CyGuru Indicator | CYGURU-INDICATOR-3.2-RC1 | 15 | Use the original matching Pine script, enable “Any alert() function call”, privately add body secret, set central URL. Legacy entry_proposed-only script requires the supplied v3.3 lifecycle script or a native v1 emitter. |
| 66 Trend | 66-TREND-V1 | 15 | Use the original matching Pine script, enable “Any alert() function call”, privately add body secret, set central URL. Legacy entry_proposed-only script requires the supplied v3.3 lifecycle script or a native v1 emitter. |
| 66 Reversion | 66-REVERSION-V1 | 15 | Use the original matching Pine script, enable “Any alert() function call”, privately add body secret, set central URL. Legacy entry_proposed-only script requires the supplied v3.3 lifecycle script or a native v1 emitter. |
| 66 Breakout | 66-BREAKOUT-V1 | 15 | Use the original matching Pine script, enable “Any alert() function call”, privately add body secret, set central URL. Legacy entry_proposed-only script requires the supplied v3.3 lifecycle script or a native v1 emitter. |
| 66 Upside Momentum | 66-UPSIDE-MOMENTUM-V1 | 5 | Use the original matching Pine script, enable “Any alert() function call”, privately add body secret, set central URL. Legacy entry_proposed-only script requires the supplied v3.3 lifecycle script or a native v1 emitter. |
| 66 Downside Momentum | 66-DOWNSIDE-MOMENTUM-V1 | 5 | Use the original matching Pine script, enable “Any alert() function call”, privately add body secret, set central URL. Legacy entry_proposed-only script requires the supplied v3.3 lifecycle script or a native v1 emitter. |
| 66 NSI | 66-NSI-V1 | 5 | Use the original matching Pine script, enable “Any alert() function call”, privately add body secret, set central URL. Legacy entry_proposed-only script requires the supplied v3.3 lifecycle script or a native v1 emitter. |
| 66 Hazem Signal | 66-HAZEM-V1 | 5 / 15 | Use the original matching Pine script, enable “Any alert() function call”, privately add body secret, set central URL. Legacy entry_proposed-only script requires the supplied v3.3 lifecycle script or a native v1 emitter. |
| CyGuru Safe Signal | CYGURU-SAFE-V1 | 15 | Use the original matching Pine script, enable “Any alert() function call”, privately add body secret, set central URL. Legacy entry_proposed-only script requires the supplied v3.3 lifecycle script or a native v1 emitter. |
Big Drop and Rapid Rise have no independently identified engine contract in the accessible source; they remain unactivated.
Original v3.3 setup notes →