Announcement

Collapse
No announcement yet.

How to "flash" the chart (change BG color for a blink) when a condition is met?

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

  • How to "flash" the chart (change BG color for a blink) when a condition is met?

    Hi guys,


    Is there a decent way how I can change the BG color of an advanced chart window for a very short period if a condition is met?

    with flashing I mean only for a very short time period eg.

    => condition is met
    => change Chart BG to orange
    => revert back to default ChartBG after a very short period of time eg 2/10 sec or whatever.


    Thanx
    EZ-T

  • #2
    Hello EZ-T,

    We don't currently have a method for executing EFS code on a timer. Feel free to send a suggestion to [email protected].

    An execution of an EFS occurs when the Advanced Chart receives a trade update or if a formula draws some buttons on the chart that are linked to a specific function in the EFS, which can be manually clicked to execute the function.

    The closest thing you could do is record the time in milliseconds with a global variable when the condition first becomes true. You would also set a global boolean flag to true that you would use to check the elapsed time since the last execution on each subsequent trade update. Once you see that at least 2/10 of a second have elapsed, reset your global flag to false and change the background color back to your default.
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      thanx anyway,
      EZ-T

      Comment

      Working...
      X