Hi
You can try to use TEXT object instead of Label OBJ_TEXT are set on the chart by time and price. So, you could use the time of the line or time with some additional buffer (next candle or something like that). And as for the price you can use also the lowest price of the chart.
double priceMin=ChartGetDouble(0,CHART_PRICE_MIN,0);
Of course, you would have to still update the price distance when chart is changed,because the price would change then too, but it’s inevitable.
Have a nice day👍📊

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hey guys,
how can I anchor a text to a vertical line. Any hints to go about it? I created a line for every hour. Works great. Now when I create a text I want to anchor it to this line. Ideally to the bottom with offset. And when I change TF or zoom in or out it should always keep this relative position. What function works for this? So far I am using something like this:
Can anyone point me to a solution?
Greetings