OPEN-SOURCE SCRIPT
Actualizado maXXit SoC/TP [V1.0]

maXXit SoC/TP [V1.0] — Stop on Close & Take Profit
Sends a JSON webhook alert as soon as N consecutive candles close through a configured Stop Loss or Take Profit level. No intrabar triggering — based exclusively on the bar's closing price.
─────────────────────────────────────
FEATURES
─────────────────────────────────────
• Stop Loss and Take Profit configurable independently (0 = disabled)
• Configurable number of closes required (1–3) before the alert fires
• JSON webhook format compatible with IBKR (FUT/STK) and CFD brokers (OANDA, IG Markets)
• Built-in instrument mapping: MNQ, MES, MYM, FXXP, FSXE, MGC, MCL, MNG, MHG, ZW, ZN, 10Y, EURUSD
• Lock to Symbol: indicator stays locked to the configured instrument across symbol changes
• Fires exactly once per level — re-arms automatically when the price is changed
• Red dashed line = Stop Loss | Green dashed line = Take Profit | Gray = triggered
─────────────────────────────────────
SETUP
─────────────────────────────────────
1. Add the indicator to your chart
2. Account & Broker: configure Webhook Secret, Account ID and Trade Type (FUT / STK / CFD)
3. Stop on Close: set Direction, Stop Price, TP Price, Quantity and Closes required
4. Lock to Symbol: enter the ticker prefix once (e.g. FXXP, MNQ)
→ A hint label on the chart shows the recommended value while this field is empty
5. Create a TradingView alert:
→ Condition: maXXit SoC/TP [V1.0] → Any alert() function call
→ Notifications: enter your Webhook URL
→ Click Create
The alert then runs entirely server-side — regardless of whether TradingView is open in the browser.
─────────────────────────────────────
NOTES
─────────────────────────────────────
Orders are sent as MKT with IOC (Immediate or Cancel) and outsideRth = true.
Webhook format and instrument parameters are compatible with the maXXit EMA V6 system.
Sends a JSON webhook alert as soon as N consecutive candles close through a configured Stop Loss or Take Profit level. No intrabar triggering — based exclusively on the bar's closing price.
─────────────────────────────────────
FEATURES
─────────────────────────────────────
• Stop Loss and Take Profit configurable independently (0 = disabled)
• Configurable number of closes required (1–3) before the alert fires
• JSON webhook format compatible with IBKR (FUT/STK) and CFD brokers (OANDA, IG Markets)
• Built-in instrument mapping: MNQ, MES, MYM, FXXP, FSXE, MGC, MCL, MNG, MHG, ZW, ZN, 10Y, EURUSD
• Lock to Symbol: indicator stays locked to the configured instrument across symbol changes
• Fires exactly once per level — re-arms automatically when the price is changed
• Red dashed line = Stop Loss | Green dashed line = Take Profit | Gray = triggered
─────────────────────────────────────
SETUP
─────────────────────────────────────
1. Add the indicator to your chart
2. Account & Broker: configure Webhook Secret, Account ID and Trade Type (FUT / STK / CFD)
3. Stop on Close: set Direction, Stop Price, TP Price, Quantity and Closes required
4. Lock to Symbol: enter the ticker prefix once (e.g. FXXP, MNQ)
→ A hint label on the chart shows the recommended value while this field is empty
5. Create a TradingView alert:
→ Condition: maXXit SoC/TP [V1.0] → Any alert() function call
→ Notifications: enter your Webhook URL
→ Click Create
The alert then runs entirely server-side — regardless of whether TradingView is open in the browser.
─────────────────────────────────────
NOTES
─────────────────────────────────────
Orders are sent as MKT with IOC (Immediate or Cancel) and outsideRth = true.
Webhook format and instrument parameters are compatible with the maXXit EMA V6 system.
Notas de prensa
renamed to Stop on CloseNotas de prensa
rename to SoC/TPNotas de prensa
1. TP can be touched only - no close necessary. 2. comments and tooltips in english.
Notas de prensa
bugfixesNotas de prensa
enhancements, bugfixes, logic changesScript de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
maXXit consulting
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
maXXit consulting
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.