Announcement

Collapse
No announcement yet.

How to execute main() only once

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to execute main() only once

    (1.) I display the current symbol and interval in the top right corner of an advanced chart. Since I have many tick charts open, I want to minimize system resources. Can I have a variable in main() to execute it only once, or every time I click on a chart? I understand that main() is executed for every tick. Correct?

    (2.) This would also require a function to indicate that the chart I just clicked on and is now the active chart. I did not find anything in the online docs something like "isActive".

    (3.) Using the drawTextRelative function places the info above the most recent bar, but I would like to place it at the end of the right hand edge of a chart.

    Thank you!

  • #2
    This is a QUESTION for which I don't have a solution yet. HELP!
    Last edited by ckappner; 12-12-2011, 12:56 PM.

    Comment

    Working...
    X