Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Bar Type Handling ETH VS RTH

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

    Custom Bar Type Handling ETH VS RTH

    Hi there,

    I am not a "developer" by any means.

    However, I have been working with AI to develop my own custom Renko bar type that provides real OHLC data. It seems to handle the RTH close price and open price fine, even when there are gaps between sessions.

    However, I am struggling to get it to provide the right close price at the end of an ETH or ""<use instrument settings>" and its not getting the right open price at the start of the session.

    I am assuming this is because the session typically starts and ends on the same day.

    Can some provide some insight on how I should structure this code?


    #2
    Hello tjfintrade,

    I would suggest looking at the default renko bar type for examples of how to structure the file. As you are using AI it can only get you so far, those are usually more of a suggestion as they often generate invalid code. You will need to debug the file yourself to see how the logic it made works to know what is happening or how to fix it.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    566 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X