Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Copying label to another time frame

How can I copy a label from one time frame to another?

This is the code I use to copy the label within the same time frame:

label_name_x = label.get_x(label_name)  
label_name_y = label.get_y(label_name)  
new_label_name = label.new(label_name_x[1],label_name_y[1],text=str.tostring(text_label_name))  

Using request.security() in the new time frame does not seem to work as I cannot define the variables/parameters in the new time frame but have to use the ones from the original time frame.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You cannot directly copy a label to another timeframe.

You need to figure out the condition that creates the label and look for that condition on another timeframe. Then create the label if that condition is true on the other timeframe. You should do some calculations to find out its x position but that depends on your use case.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading