Skip to content

astrosinyal.com

Where Planets Meet Probabilities | AMI Trading Intelligence

  • Home
    • English
    • Indonesia
  • Read Me First – Knowledge Based Here
  • BYOK Api Key
  • Discord

Tradingview

🌌 Astrosinyal · AMI Docs CHAPTER4 /11
🏠 All chaptersStartAccountDashboardSignalsTradingViewJournalRiskClimateFactor LabBillingFAQGlossary

Connect TradingView

Goal: chart alerts arrive in AMI automatically — set up once, forget it.
Time: ~5 minutes first setup · Prerequisites: Chapter1 (API key), a TradingView account.

One-time setup

  1. Fetch the bridge script with your key so your own webhook secret is embedded:
    curl -H "X-API-Key: ami_YOUR_KEY" https://ami.astrosinyal.com/api/pine -o AMI_Alert.pine
    Anonymous requests in SaaS mode receive a placeholder instead of a secret — in that case paste your whsec_... from the portal into the script’s AMI webhook secret field manually.
  2. TradingView → open your chart → Pine Editor → paste the file → Add to chart.
  3. Create Alert (clock icon): Condition → Any alert() function call · Webhook URL → https://ami.astrosinyal.com/webhook · Message → leave empty (the script sends its own JSON).

Triggers (script settings)

  • ☑ Trend change — on by default
  • ☑ EMA20 × EMA50 cross — on by default
  • ☐ Every bar close — off (heavy: one analysis per bar)
  • Notify — request a Telegram report with each alert (default on)

What AMI does on each alert

It receives the payload (symbol, price, RSI, MACD, trend, volume, EMA20/50, ATR), runs the full pipeline, stores the signal in your history, replies with the analysis — and delivers a Telegram report if notify was on.

{
  "secret": "whsec_...",
  "symbol": "BBCA.JK",
  "price":  "{{close}}",
  "rsi":    "{{plot_0}}",
  "macd":   "bullish",
  "trend":  "uptrend",
  "volume": "{{volume}}",
  "notify": true
}
Symbol mapping: Indonesian tickers map to Yahoo format automatically (BBCA → BBCA.JK, based on chart currency); crypto: BTCUSDT; index: ^JKSE; gold: XAUUSD. Set the script’s AMI symbol field to override.
Alert not arriving? 1) secret mismatch → rotate the webhook secret in the portal and re-fetch the script ·2) quota hit → HTTP429 (Free:200 webhooks/day) · 3) TradingView fires alerts in real time only — it does not replay old bars · 4) see the FAQ.
← SignalsJournal →
AMI provides calibrated probability, never certainty (model AUC ≈ 0.53) · Not financial advice · Vedic terms (tithi, nakshatra, Rasi, retrograde, Muhurta, Dasha, Pada) stay untranslated in every language.

Copyright © 2026 astrosinyal.com.

Theme: Oceanly Green by ScriptsTown