Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddRenko

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

    AddRenko

    I'm trying to use renko bars in a multi series strategy.
    On my first attempt I mistakenly used AddDataSeries instead of AddRenko simply because I was unaware of AddRenko. It worked fine.
    Later I moved the strategy to another computer and it causes NT to hard crash.
    I went back to my development computer and changed the AddDataSeries call to AddRenko but doing so causes the strategy to cause NT to be CPU bound and run memory utilization up without ending... the strategy never completes.

    Code:
                AddDataSeries(Instrument.FullName, new BarsPeriod { BarsPeriodType = BarsPeriodType.Renko, Value = seriesPeriodSwing}, "US Equities RTH");
    
                AddRenko(Instrument.FullName, seriesPeriodSwing, MarketDataType.Last, "US Equities RTH", false);
    I can't use AddRenko.

    #2
    Here's a sample strategy that demonstrates the issue.
    In the State == Configure block, see that last 2 lines dealing with Renko bars. One line is commented out. Use either one and run in strategy analyzer. ES 03-17. template shouldn't matter as strat loads them but I'm using US Stock in the SA.
    Attached Files

    Comment


      #3
      Any thoughts on why this is happening or how to fix it?

      Comment


        #4
        Hello Brillo, and thank you for your question. When I compiled and ran your script on my system, I was unable to see quite the same things you were seeing on my end. Could I ask that you send me a copy of your windows system control panel and ninjatrader strategy settings? I am including examples of both screens.

        To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.
        Click here for instructions
        Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
        Click here for detailed instruction
        Attached Files
        Jessica P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        56 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        133 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        73 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X