Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Add UniRenko Bars to Renko Strategy

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

    Add UniRenko Bars to Renko Strategy

    Hello! I saw a similar post where someone wanted to replace the Renko Strategy bars type to Better Renko Bars. It worked well, but I want to use UniRenko bars instead of Better Renko. I'm no C# expert, but I tried changing the code to utilize UniRenko bars but it doesn't seem to work. I've attached both the strategy and the bar type I want to utilize. Any assistance would be appreciated!
    Attached Files

    #2
    Hello natadanquah,

    As the scripts you have provided say NT8 on them, I am assuming this is for NinjaTrader 8 and not NinjaTrader 7.

    I've moved your thread from the NinjaTrader 7 > Strategy Development​ section of the forums to the NinjaTrader Desktop > Strategy Development​ section of the forums.

    On line 84 change:
    Code:
    if(BarsPeriod.BarsPeriodType != BarsPeriodType.Renko)
    To:
    Code:
    if(BarsPeriod.BarsPeriodType != BarsPeriodType.Renko && BarsPeriod.BarsPeriodType != (BarsPeriodType) 2018)
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks so much, Chelsea for the code and moving the the post.

      I attempted the change as you mentioned but I'm still running into the same issue and the strategy is not accepting the bars. Seems that it won't accept regular renko bars with it either - very strange. Would you happen to have any other suggestions?
      ​
      Attached Files

      Comment


        #4
        Hello natadanquah,

        Apologies, remove the 'return;' on line 85.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Its worked! Many thanks again for your expertise.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by fx.practic, 10-15-2013, 12:53 AM
          5 responses
          5,403 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by Shai Samuel, 07-02-2022, 02:46 PM
          4 responses
          94 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by DJ888, Yesterday, 10:57 PM
          0 responses
          6 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by MacDad, 02-25-2024, 11:48 PM
          7 responses
          158 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Yesterday, 09:29 PM
          0 responses
          8 views
          0 likes
          Last Post Belfortbucks  
          Working...
          X