Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddRenko new brick

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

    AddRenko new brick

    Hello,

    I am figuring out how to know when a brick is closed when using AddRenko() in a ninja script strategy and if the value of the close is higher or lower than the previous brick. Can I use Close[0]?

    Can you provide some sample code?

    #2
    did you try https://ninjatraderecosystem.com/use...nko-bartype-8/ examples?

    Comment


      #3
      Hi guillembm, thanks for your post.

      If your script runs OnBarClose, you can detect BarsInProgress == 1 (assuming the Renko series is the only added series.) e.g.

      Code:
      OnBarUpdate()
      {
      
          if(BarsInProgress == 1)
          {
              if(Close[0] < Close[1]) Print("Close[0] < Close[1] " + Time[0]);
          }
      
      }

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      56 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      37 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      18 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      20 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      49 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X