I have a question concerning a horizontal line script. Can anyone explain how or why you cannot add a note to a horizontal line like you can for a vertical line script? Here is an example...
AddVerticalLine(if todayonly and GetDay() != GetLastDay() - 1 then Double.NaN else isTime1, "MIDNIGHT ", open1.TakeValueColor(), Curve.FIRM); the note that appears for the line on the chart is MIDNIGHT.
I have a script that produces either a Daily HOLC and a Weekly HOLC. The script will produce the horizontal lines on the chart but you cannot incorporate a note to those lines like the above vertical line for "MIDNIGHT" to say "Weekly High" or "Weekly Low" it's just frustrating that you can make a note for a vertical line but you can't do it for a horizontal line.
If anyone has a script for a horizontal line that shows a note on the chart without having a bubble call out please share it. Thank you
If you click on the tool to add a vertical line you can add whatever name you want to call that line by adding text into the "Name" block, then by clicking on the "Show name" box you have two options of where you want the name to appear, either at the bottom or at the top so there is functionality for that option to create a script as in the example as I presented in my last post. If you click the tool for PriceLevel (horizontal line) then by clicking on the "Show name" box you are also presented with two options where you want the name to appear, either on the right or on the left. That tells me the functionality is there. I will reach out to their help desk with this explanation to see if they can provide some answers.
AddVerticalLine(if todayonly and GetDay() != GetLastDay() - 1 then Double.NaN else isTime1, "MIDNIGHT ", open1.TakeValueColor(), Curve.FIRM); the note that appears for the line on the chart is MIDNIGHT.
I have a script that produces either a Daily HOLC and a Weekly HOLC. The script will produce the horizontal lines on the chart but you cannot incorporate a note to those lines like the above vertical line for "MIDNIGHT" to say "Weekly High" or "Weekly Low" it's just frustrating that you can make a note for a vertical line but you can't do it for a horizontal line.
If anyone has a script for a horizontal line that shows a note on the chart without having a bubble call out please share it. Thank you
If you click on the tool to add a vertical line you can add whatever name you want to call that line by adding text into the "Name" block, then by clicking on the "Show name" box you have two options of where you want the name to appear, either at the bottom or at the top so there is functionality for that option to create a script as in the example as I presented in my last post. If you click the tool for PriceLevel (horizontal line) then by clicking on the "Show name" box you are also presented with two options where you want the name to appear, either on the right or on the left. That tells me the functionality is there. I will reach out to their help desk with this explanation to see if they can provide some answers.
Last edited by a moderator: