Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

New BarsType

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

    New BarsType

    Hello, looking for an easy (hopefully) way to convert the standard Renko bar from calculating bricks based on ticksize to based on a percentage of the instrument value. Thanks in advance!

    #2
    Hello MisterGee, thanks for your post.

    You would need to study the source code for the original Renko bars type and modify it to suit the requirement. There's no specific path I could tell you to take as it could take an entire re-write of the Renko bars type to get to the desired result. The source code of all bar types are available to be viewed and modified through the NinjaScript Editor.

    Please let me know if I can assist any further.

    Comment


      #3
      Okay, thank you. I have been studying the source code already. I attempted to make some tweaks to the code and everything compiled without error, but now I am not seeing the new Bars type in the drop down menu when I open a new chart. Any insight here?

      Comment


        #4
        Hello MisterGee, thanks for your reply.

        In the OnStateChanged method of the new script, did you change the Name property?
        e.g.

        if (State == State.SetDefaults)
        {
        Name = "MyRenko";

        Comment


          #5
          That was it, thanks!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          599 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          344 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
          558 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          557 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X