OPEN-SOURCE SCRIPT
已更新 Mancini Levels

Another level parsing indicator.
Add your list of support and resistance levels as inputs in a comma-delimited list, including ranges e.g. <price>-<price>, with an optional (major) to signify a major level.
Format is <level> <(major)>"," <level> <(major)>,<...n> for both support and resistance, with optional "major" designation after each numeric level, comma-separated
Add your list of support and resistance levels as inputs in a comma-delimited list, including ranges e.g. <price>-<price>, with an optional (major) to signify a major level.
Format is <level> <(major)>"," <level> <(major)>,<...n> for both support and resistance, with optional "major" designation after each numeric level, comma-separated
版本注释
Ranges now shaded differently for major ranges vs. not版本注释
tweak range colors:green: major support
olive: minor support
maroon: minor resistance
red: major resistance
版本注释
Tuned Colors and transparencies:Major Resistance: Crimson (80)
Minor Resistance: Red (90)
Minor Support: Olive (90)
Major Support Green (80)
版本注释
Update to fix "Error on bar 0: In 'array.get()' function. Index 0 is out of bounds, array size is 0" error. This happened when you provide input that doesn't have any ranges. I never saw it because I always enter input with ranges...made a quick fix to check that there are ranges before trying to draw them.版本注释
Added an input for Line Width, increase to 2 or 3 to thicken up the levels if you prefer wider lines.版本注释
*** Bugfix versionA huge THANK YOU to everyone who pointed out the issues with the previous versions, it really helped me in troubleshooting these issues
- Default maximum of lines for a script is 50. Bumped this up to 500 which is the most for a script. This explains why on days with extra supports (e.g. FOMC, CPI days, or days with over 50 S/Rs listed) some of the lines did not appear. I was not aware of this default which dropped lines.
- Only drawing lines on lastbar instead of over and over again with each bar.
- Account for uppercase 'Major' written sometimes too instead of the expected 'major'
版本注释
All colors are configurable as inputs now. No other changes.版本注释
Label Correction for Color Inputs版本注释
This version fixes the 'darkening' of lines and ranges over time. The issue was happening because new lines were being added without old ones being pulled. This version adds lines and ranges and pulls the extra from the arrays bar over bar so that the right amount of lines/ranges are on the chart with each new bar, so there isn't a seeming change in transparency (which was just lines/ranges clobbering others).版本注释
Updates:1. Can change line styles for major/minor. Default style for minor changed to dotted.
2. Added price labels. These can be disabled in settings but are enabled by default. Label offset (from last bar right) can be configured as well, defaults to 30. Range labels are only on bottom of range line for resistance, top of range line for support as sometimes ranges are pretty tight.
版本注释
(just update chart)开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。