Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

access Series value from OnRender

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

    access Series value from OnRender

    I have frequent problems in OnRender, when I call:

    myPlotSeries[CurrentBars[0] - idx]


    "You are accessing an index with a value that is invalid since it is out-of-range..."

    However, GetValueAt(idx) always works.

    is that expected behavior and are we always advised to use getvalueat in OnRender?

    #2
    Hello TazoTodua, thanks for your post.

    Yes, you should always use GetValueAt when using OnRender because it is asynchronous to the bar update logic. It's not always guaranteed that indexing a series will be accurate.

    Kind regards.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    31 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    12 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    18 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X