bar_index inspectorThis is a tool for developers who are working with index based plots and find themselves adding the bar_index to their indicators on a regular basis during development and debugging.
What it does:
shows the bar_index in the status line and data window.
plots optional labels (bar index + time) into the chart every 10 bars
Development
Syminfo [Epi]Hello! This little script tells you everything TradingView lets you access in a ticker's syminfo in Pine Script:
- description
- type: crypto, economic, forex, fund, futures, index, spread, stock
- tickerid, such as AMEX:BLOK
- prefix, such as AMEX
- Ticker, such as BLOK
- root: for derivatives such as futures contracts
- currency, such as USD
- base currency: returns 'BTC' for the ticker 'BTCUSD'
- mintick
- point value
- session: regular, extended
- timezone
Some surprises I found in my development:
- there are some more types than mentioned in the documentation,
- the tickerid takes on additional information if you adjust for dividends or show extended session,
- the prefix contains "_DL" additions depending on your data subscriptions, .e.g. "CME_MINI_DL:ES1!",
- with futures, TV will show session.regular both for the 'regular' and the 'electronic' session.
- Unfortunately, syminfo does not contain the 'sector', although TV has the information in the database (the sector is shown in the screener but not accessed in Pine Script).
I use this little utility in my development and hope it's useful for the community. I see such a great number of contributions from the community and would like to give back, even if it's not much.
FOMO DRIVEN DEVELOPMENT OPTIONS RETICLE Options Reticle caters to degenerate traders and gamblers worldwide, reaching out for long distant contract expiration and just OTM strike placement.
Generate the overlay yourself using the tradingview-options-reticle CLI tool found on GitHub.
The Options Reticle provides a targeting system overlay that will show a horizontal OTM strike price and verticle expiration target. If you're thinking as soon as the expiration date has passed, this overlay will be useless; you're right but, you can use the options-reticle CLI tool to generate a new overlay from a watchlist exported from TradingView.
OVERLAY FEATURES:
Quick Action PUT (QAP) Mode - When you flip the chart by adding a 0- in front of the symbol, you will see the PUT contract target. Strike Price / Expiration Crosshairs.
Fill Mode - Shows a fill between the historical price and the target strike price. It will show green when ITM and red when OTM. Target information panel - Shows the company name, days till expiration, month and day of expiration, strike price, dollars OTM or ITM, and the contract type.
Emotion Indicator - Shows an exact representation of your feelings based on if you were in the trade. It has an accuracy of 99.9 percent.
QUICK ACTION PUT (QAP) MODE :
This style of reticle is not visible until you flip the chart. The advantage of the (QAP) is that it maintains the same appearance as the standard style of reticle, making PUT contract targeting feel the same. When targeting with (QAP) mode, be aware that the chart prices are reversed. Up is down, and down is up; this can be confusing but will feel normal overtime. Activate QAP mode by appending a 0- to the symbol of the chart. If nothing appears, no put option data was found for that symbol.
CALIBRATING YOUR RETICLE :
The overlay is generated using the options-reticle CLI tool found on GitHub. The adjustment script will parse a watchlist exported from TradingView then download options data for each ticker in the watchlist. The max amount of symbols you can add to a single overlay is about 200. Any more than 200 and the overlay will crash. Luckily, If you use a TradingView watchlist with more than 200 ticker symbols to generate overlays, the options-reticle command-line tool will automatically create multiple overlays with 200 tickers each. You can add multiple overlays to your chart to get all the tickers in the watchlist.
RETICLE GENERATION AND MOUNTING :
Add all the tickers you want to track into a watchlist on Tradingview.
Export the watchlist into a txt file using TradingView's watchlist export list button.
Open the terminal and change to the directory with the downloaded watchlist txt file.
Install options-reticle command tool with pipx. pipx install tradingview-options-reticle.
Run the command options-reticle download --watchlist {name of watchlist.txt file}. This will download the options data to an options_data.toml in the same directory as the watchlist txt file.
Run the command options-reticle build --options-data-input-path options_data.toml. This will generate the overlay scripts. If the watch list has more than 200 ticker symbols, it will generate a separate overlay script for every 200 ticker symbol chunk.
Copy and paste each of the generated overlay scripts one at a time into the Pine Editor on TradingView, then click the Add to Chart button. Make sure you copy the entire code.
FUTURE FEATURES :
Give the choice to generate PUT option contracts without using QAP mode. This option will allow you to use the input settings to change the contract type without flipping the chart.
Max OTM target argument - This will allow the option-reticle CLI to generate overlays with deeper OTM contracts. It currently only searches for the first OTM contract.
Add the ability to change the crosshair line type.
Seasonality-Buschi
English:
This script shows the price development over the last year (default: green) and mean prices over the last three (default: light green), six (default: orange) and nine (default: red) years and is therefore at least some kind of approach towards true seasonality.
Thanks to user "apozdnyakov" for providing most of the code!
Deutsch:
Dieses Skript zeigt den Kursverlauf über das letzte Jahr (Standard: grün) und die durchschnittlichen Verläufe über die letzten drei (Standard: hellgrün), sechs (Standard: orange) und neun (Standard: rot) Jahre und stellt damit zumindest eine Annäherung zu einer echten Saisonalität dar.
Dank an User "apozdnyakov", der den Großteil des Codes zur Verfügung gestellt hat!
Heikin Ashi Historical TF Developmental BarsAn improvement to the built-in security(heikinashi()...) method, this indicator plots Heikin Ashi (HA) candles for an input timeframe (TF) on an underlying regular candlestick chart of a shorter TF. The improvement is that it plots the value of each in-development HA bar as it would have appeared while still repainting, for each underlying chart bar. The last chart bar of each TF matches the value available from security() calls and from HA charts directly.
For best results, be sure to use a HA TF greater than chart TF (I prefer 1 minute unless longer history is required).
1 hour HA on 1 minute underlying price chart
4 hour HA on 1 minute underlying price chart
V3: Release.