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

UniRenko Open Offset

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

    UniRenko Open Offset

    Hello NinjaTrader_ChelseaB,

    I want to set the Open Offset parameter to zero for UniRenko bars. However, it has a minimum setting of 1.

    After looking at the Add-On code, I cannot determine how. Can you suggest a code snippet to permit Open Offset = 0 when configuring the Data Series via the user interface?

    Thank you.

    #2
    Hi D Trader, thanks for your question.

    The Value and Value2 properties are can only be >= 1. You can manually override it by making your own variable in the script and use that variable in replacement of openOffset variable. Unfortunately, it would not be able to be added to the property grid, unfortunately.

    Please let me know if I can assist any further.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thank you NinjaTrader_ChrisL.

      I made a few tweaks to code, and can now manually override the offset.

      One new issue I would appreciate your help with, however. Please see attached screen photo.

      UniRenko is consistently drawing its bars beyond the top and bottom edges of the chart panel as if it didn't recognize the boundaries. Manually scaling the price axis and resetting has no effect.

      Settings in this example were 4 Trend, 2 Offset, 4 Reversal. And obviously candle bar type.

      Can you suggest what might need updating to correct this issue?

      Thank you.


      Click image for larger version

Name:	NT8 Unirenko drawing off screen (18Jun2020).png
Views:	608
Size:	2.8 KB
ID:	1105649

      Comment


        #4
        Hello D Trader,

        Thanks for your reply.

        Please create a new chart with no other indicators and no chart templates used.
        In the data series, please ensure that "auto scale" shows a checkmark.
        Do the bars show correctly?

        If not please post a complete chart screenshot.



        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Aviram Y, Today, 05:29 AM
        4 responses
        11 views
        0 likes
        Last Post Aviram Y  
        Started by algospoke, 04-17-2024, 06:40 PM
        3 responses
        26 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by bmartz, 03-12-2024, 06:12 AM
        3 responses
        30 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by gentlebenthebear, Today, 01:30 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by cls71, Today, 04:45 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X