Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Best Practice for updating indicator Plot

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

    Best Practice for updating indicator Plot

    I have created and indicator plots an oscillation of an EMA but after a period of time the plot goes flat. If I press F5 the Plot updates for awhile until it flattens again.

    #2
    Hello Itachi,

    Based on the description it sounds like the indicator works normally when processing historical data but does not work the same when processing realtime data. That could be due to the indicator settings being used, for example historically it will calculate OnBarClose but in realtime you have the three options including OnEachTick and OnPriceChange as well.

    The best way to address this would be to print out the bar time and values you are using in your calculations and compare how the values are in historical vs in realtime when the plot goes flat. You would specifically want to do the realtime test first and collect the output slightly before and during when the plot goes flat. Then reload the chart and check the values for the same times. That will let you step through the chart to see exactly why that is happening.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    593 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X