OPEN-SOURCE SCRIPT
已更新

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
版本注释
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
版本注释
- 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
版本注释
Fix timezone issue for futures
版本注释
Add translation for NQ

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。