Announcement

Collapse
No announcement yet.

Chart Refresh Problem

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

  • Chart Refresh Problem

    I'm running an efs script that paints a shape on a chart using the "drawShape()" function when certain criteria are met. When the criteria is just being met the shape should appear and disappear until the different criteria passes a certain point (more than just price). The problem I'm having is the shape gets drawn fine but when it should go away it is still on the chart leading to a false signal. I've tried using the "repaintChart()" function but it doesn't do anything. I have to click on the "Refresh" button on the toolbar on the chart to make the shape go away. Oh, by the way, I have many charts open so they are usually not the "active" chart.

    Is there anyway to make an "inactive" chart refresh in efs?

  • #2
    Re: Chart Refresh Problem

    twingate
    Once you apply a graphic object to a chart it will remain drawn on the chart unless it is specifically removed using the appropriate function or it is replaced by another graphic object of the same type with the same tagID.
    See this thread on a similar topic for an example of what you need to do to remove a drawn shape
    Alex


    Originally posted by twingate
    I'm running an efs script that paints a shape on a chart using the "drawShape()" function when certain criteria are met. When the criteria is just being met the shape should appear and disappear until the different criteria passes a certain point (more than just price). The problem I'm having is the shape gets drawn fine but when it should go away it is still on the chart leading to a false signal. I've tried using the "repaintChart()" function but it doesn't do anything. I have to click on the "Refresh" button on the toolbar on the chart to make the shape go away. Oh, by the way, I have many charts open so they are usually not the "active" chart.

    Is there anyway to make an "inactive" chart refresh in efs?

    Comment

    Working...
    X