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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          98 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          143 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          69 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          125 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          77 views
          0 likes
          Last Post PaulMohn  
          Working...
          X