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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    70 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    152 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X