Announcement

Collapse
No announcement yet.

Sync problem

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

  • Sync problem

    I am running values from a 15 min chart on my 5 min chart, displayed on the 5 min chart as a line with colors. My problem is that when I update the 5 min chart the colors change. I understand why that happens, but is it any way to save each plottet color on the 5 min so it remain when chart being updated?
    Code attached.
    Attached Files

  • #2
    Hello finnhan,

    The basic problem behind the code logic revolves around the fact that you are evaluating bar index 0 values in real time and for the historical values. The real time evaluations are not based on completed bar data. During the historical evaluations the same conditions only evaluate completed bar data. On the historical bars, the first 5 min bar of its corresponding 15 min bar is comparing closing values that occurred at different times whereas in real time the close values from the two intervals are always the same time. A more detailed explanation of why this happens can be found here. Let us know if this helps.
    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

    Working...
    X