π¦Ύ USE - Vertical lines drawn ON TOP of chart at selected key times of the day, week, month, year. - You can use it at any symbol (as far as I know). - Programmatic alerts available. - Lines from lower time-frames are selectively NOT visible at higher time-frames. Example: At 1h time-frame, vertical lines from 1h and 4h intervals are not visible. Drawing them is considered not really useful.
π MAIN FEATURES - Available targeted times: 3m, 15m, 1h, 4h, 1D, 1W, 1M, 1Y. - Offset available for all lines. Example: 1 offset for 4h moves lines from 4AM to 8AM. - Programmatic alerts for all lines. Example: If alert is enabled for 15m lines, every time those lines are reached, alert will trigger. - Available drawing themes: Custom, Light, Dark.
π» NOTES ON CODE - Vertical lines are drawn using a custom function, which uses line.new() built-in function. - Alerts are triggered using ta.cross() built-in function. Alert is triggered when close price crosses a given time value from the line.get_x1() built-in function. - I've added, where necessary, several comments to the code for understanding what's going on. If you have additional questions, you may ask them in the comment section of the publication. - 3m lines are not really useful in day-trading, they were added for debugging purposes mainly. Useful for learning how to use alerts, though.
ππΌ NOTES ON ALERTS - When setting up an alert, the targeted line must be enabled/visible. - Every time any alert is enabled or disabled, you must create AGAIN the alert from the "Alerts" panel (remember, alerts run in the back-end). - Alerts contain really useful information. If you have any idea for adding some other data, tell in the comment section. π‘
β οΈ KNOWN ISSUES - None. Let me know please if you find any.
-------------------------------------------- ~ Comment , Follow and Boost ~ π
@Neo112, sorry I didn't reply the best answer. For the sake of code simplicity, the current version will have only to color line set ups (dark and light). But if you take a look to older versions of this indicator, you should be able to find a version that had custom colors.
protonstucky
β
Is it possible to plot lines for the upcoming day rather than past hours?
isilti
β
Hi I'm not aware how I did it but somehow those vertical lines of time alerts below 4hours is there on my screen. I don't remember adding this feature or indicator. Can you help with cancelling it?
BlueJayBird
β
@isilti, I'm not sure what you are asking here. Would you mind to add additional details and a screenshot?
Reisfelt
β
Thank you for coding this, must have taken forever. Iβm only interested in the 3 minute time frame and have been able to plot those lines. My problem is they start at 10:40 am. For the life of me I canβt see where that time is registered. Could you show me how to start the time at 6:30 am i am in the pacific time zone. Thanks again for writing this great code.
BlueJayBird
β
@Reisfelt, Are you trading Forex? I've thought this code for working on 24hs traded assets (crypto). Forex is uncharted territory for me. Any additional comment will be welcome. If possible, I could add a tweak to the code for your request.
Moda-877
β
Could you add 90 minute timeframe?
BlueJayBird
β
@Mode_m-889, I will. Probably as a custom line. The programmatic implementation sadly may not be straight forward.