OPEN-SOURCE SCRIPT
Cập nhật 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
Phát hành các Ghi chú
Ranges now shaded differently for major ranges vs. notPhát hành các Ghi chú
tweak range colors:green: major support
olive: minor support
maroon: minor resistance
red: major resistance
Phát hành các Ghi chú
Tuned Colors and transparencies:Major Resistance: Crimson (80)
Minor Resistance: Red (90)
Minor Support: Olive (90)
Major Support Green (80)
Phát hành các Ghi chú
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.Phát hành các Ghi chú
Added an input for Line Width, increase to 2 or 3 to thicken up the levels if you prefer wider lines.Phát hành các Ghi chú
*** 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'
Phát hành các Ghi chú
All colors are configurable as inputs now. No other changes.Phát hành các Ghi chú
Label Correction for Color InputsPhát hành các Ghi chú
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).Phát hành các Ghi chú
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.
Phát hành các Ghi chú
(just update chart)Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.