█ OVERVIEW This indicator displays zigzag based on high and low using latest pine script version 5, chart.point which using time, index and price as parameters. Pretty much a strip down using latest pine script function, without any use of library. This allow pine script user to have an idea of simplified and cleaner code for zigzag.
█ FEATURES 1. Label can be show / hide including text can be resized. 2. Hover to label, can see tooltip will show price and time. 3. Tooltip will show date and time for hourly timeframe and below while show date only for day timeframe and above.
█ NOTES 1. I admit that chart.point just made the code much more cleaner and save more time. I previously using user-defined type(UDT) which quite hassle. 2. I have no plan to extend this indicator or include alert just I thinking to explore log.error() and runtime.error(), which I may probably release in other publications.
█ HOW TO USE' Pretty much similar inside mentioned references, which previously I created.
Update from dirchanged = ta.change(dir) to dirchanged = dir != dir[1]
סקריפט קוד פתוח
ברוח TradingView אמיתית, היוצר של הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יכולים לבדוק ולאמת את הפונקציונליות שלו. כל הכבוד למחבר! למרות שאתה יכול להשתמש בו בחינם, זכור שפרסום מחדש של הקוד כפוף לכללי הבית שלנו.
לגישה מהירה לגרף, הוסף את הסקריפט הזה למועדפים שלך - למד עוד כאן.
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.
ברוח TradingView אמיתית, היוצר של הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יכולים לבדוק ולאמת את הפונקציונליות שלו. כל הכבוד למחבר! למרות שאתה יכול להשתמש בו בחינם, זכור שפרסום מחדש של הקוד כפוף לכללי הבית שלנו.
לגישה מהירה לגרף, הוסף את הסקריפט הזה למועדפים שלך - למד עוד כאן.
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.