OPEN-SOURCE SCRIPT
Mis à jour

BKLevels

1 741
This displays levels from a text input, levels from certain times on the previous day, and high/low/close from previous day. The levels are drawn for the date in the first line of the text input. Newlines are required between each level

Example text input:

Pine Script®
2024-12-17 SPY,606,5,1,Lower Hvol Range,FIRM SPY,611,1,1,Last 20K CBlock,FIRM SPY,600,2,1,Last 20K PBlock,FIRM SPX,6085,1,1,HvolC,FIRM SPX,6080,2,1,HvolP,FIRM SPX,6095,3,1,Upper PDVR,FIRM SPX,6060,3,1,Lower PDVR,FIRM


For each line, the format is <ticker>,<price>,<color#>,<line pixel width>,<description>,<line style>
For color, there are 9 possible user- configurable colors- so you can input numbers 1 through 9
For line style, the possible inputs are:
"FIRM" -> solid line
"SHORT_DASH" -> dotted line
"MEDIUM_DASH" -> dashed line
"LONG_DASH" -> dashed line
Notes de version
This displays levels from a text input, levels from certain times on the previous day, and high/low/close from previous day. The levels are drawn for the date in the first line of the text input. Newlines are required between each level

Example text input:

Pine Script®
2024-12-17 SPY,606,5,1,Lower Hvol Range,FIRM SPY,611,1,1,Last 20K CBlock,FIRM SPY,600,2,1,Last 20K PBlock,FIRM SPX,6085,1,1,HvolC,FIRM SPX,6080,2,1,HvolP,FIRM SPX,6095,3,1,Upper PDVR,FIRM SPX,6060,3,1,Lower PDVR,FIRM


For each line, the format is <ticker>,<price>,<color#>,<line pixel width>,<description>,<line style>
For color, there are 9 possible user- configurable colors- so you can input numbers 1 through 9
For line style, the possible inputs are:
"FIRM" -> solid line
"SHORT_DASH" -> dotted line
"MEDIUM_DASH" -> dashed line
"LONG_DASH" -> dashed line

Updated 17Dec 17:00 PST to fiz empty line causing crash
Notes de version
- Fixed bugginess with labels and offsets. Label offsets are now in hours, not bars
- Added midnight level
- 10:30 line was supposed to be vertical, this is changed
Notes de version
Fix timezone issue for futures
Notes de version
Add translation for NQ

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.