Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OBU vs OR

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

    OBU vs OR

    Hello,

    I migrated a part of my code from OnRender to OnBarUpdate, strangely the result is quite different even if its about the same code.
    Is it possible, just to move from OR to OBU, it alter the logic of the calculation?

    Thank you

    #2
    Hello frankduc,

    Is it possible, just to move from OR to OBU, it alter the logic of the calculation?

    That would depend on what you made, however OnRender and OnBarUpdate are not the same concept so there will be differences in how you would write logic for each. The short answer is likely no.

    OnBarUpdate is the progression of bar data points and is driven by market data. OnRender is a rendering outlet, this is called for many reasons. Logic used in OnRender would need to be programmed differently than OnBarUpdate because these are for two different purposes.

    If you are converting code from OnRender to OnBarUpdate, that is something you will need to step through your logic and make necessary modifications where needed. Generally OnRender is used in combination with OnBarUpdate (see pivots, zigzag) to render data which was calculated in OnBarUpdate.

    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    41 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X