What the Script Should Display
The script includes several labels to provide profit, loss, and analysis information, but these labels are conditional and only appear at specific bars (entry or expiration) when showBacktest is enabled. Here’s what to expect:
- Entry Label (Yellow):
- Text: "Put Sell: [premiumCollected] / Strike: [entryStrike]"
- Appears: At the entryBar (10 days before the current bar).
- Purpose: Shows the hypothetical premium collected and strike price when the put is sold.
- Result Label (Green or Red):
- Text: "Result: WIN" (green) or "Result: LOSS" (red)
- Appears: At the expirationBar (current bar).
- Purpose: Indicates the trade outcome based on whether the stock price stayed above the strike at expiration.
- Delta Label (Cyan):
- Text: "Approx. Delta (3% OTM): [boundedDelta]"
- Appears: Continuously when showBacktest is true.
- Purpose: Displays the estimated delta for the 3% OTM put, aiding risk assessment.
- Wins/Losses Label (Light Green):
- Text: "Wins: [totalWins] | Losses: [totalLosses]"
- Appears: At the expirationBar.
- Purpose: Tracks the cumulative number of winning and losing trades.
- Total Income Label (Light Orange):
- Text: "Total Income: [totalIncome]"
- Appears: At the expirationBar.
- Purpose: Shows the cumulative profit from all winning trades (sum of premiums collected).
The "blue label" you mentioned doesn’t directly match any color assigned to these labels (yellow, green/red, cyan, light green, light orange). It’s possible you’re seeing the Delta Label ("Approx. Delta...") in cyan, which might appear blue depending on your screen or theme, or there’s a display issue.
View attachment 25735
This will not work on any day cash out vehicles like SPX or other futures. Use this to test out your entries and your position sizing... here is another risk caculator that plays forward instead of backwards
https://tos.mx/!OG8WRr6W