OPEN-SOURCE SCRIPT
Aggiornato

TPM

354
Custom Script for the TPM Strategy

This indicator graphically and in real time displays the parameters of a Bear Put Spread strategy with active management and additional naked options. It is designed to provide a complete and immediate overview directly on the underlying chart.

🔹 Key Features
• Customizable entry point: can be specified by date and time, displayed with a vertical blue line and an “ENTRY” label.
• Automatic calculation of the management level: shown as an orange horizontal line at -13% from the entry price. When the price drops below this threshold:
  • an alert is triggered
  • an active management label appears
• Visualization of bought and sold options:
  • Strike prices of Buy Put and Sell Put are drawn as horizontal colored lines (red and green)
  • Strike of an extra sold Put (-23%) shown in purple
• “Today” line (dashed red or blue) with a day counter from the entry date
• Active period box: highlighted area between the entry day and today, visible across the chart
• Dynamic theoretical expiration (based on VIX):
  • 60 / 30 / 15 days depending on the current VIX value
  • Yellow vertical line with estimated date and descriptive label, always visible even if in the future
• Golden Scenario (optional):
  • Analysis of % variation over a configurable number of days
  • Icons 🟤 ⚪ 🟡 drawn on the chart to identify significant drops (-2% / -3% / -5%)
• Visual dashboard (optional):
  • Fixed table at the bottom right with color-coded sections for:
   • Bull Put: strike and expiration (12 months)
   • Management Level
   • Extra Sell Put: strike and expiration (9 months)
  • Values rounded down and well-formatted for readability



🔧 Customization

Every parameter of the strategy (strike, entry, levels, period) is customizable via input. The script’s behavior adapts in real time to the chart context and VIX conditions.
Note di rilascio
⚠️ This script is deprecated and no longer maintained.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.