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

Compare Renko-Low to Actual low

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

    Compare Renko-Low to Actual low

    In renko chart type calculate own Renkolow or Renkohigh by add/subtract offset value.
    If I put Low[0] or High[0] that show Renkolow or Renkohigh.

    I want to calculate actual/original Low or High.by indicator
    How can it plz help.

    Thank you

    #2
    Hello yeshujbp,

    Thank you for your post.

    We're going to need some clarity on exactly what you are looking for.

    I see you're looking the low and the high of renko bars plus or minus an offset. What offset are you planning to use? Is it calculated by this indicator you would like to create, a hardcoded amount, or a variable? What do you mean by actual/original low or high?

    Thanks in advance; I look forward to assisting you further.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Hi

      Thank you for reply

      I have compared two chart (RenkoBarsType & TickBarsType) and found the different respective low and high values at the same point.

      Now I want to develop indicator in terms to get the low/high value of TickBarsType where it falls in RenkoBarsType.

      Comment


        #4
        Hello yeshujbp,

        Thank you for your reply.

        You can certainly create an indicator that will show the actual high and low price.

        You could use Calculate.OnEachTick and track the highest high and lowest low with something like this:
        private double tmpHigh, tmpLow;
        protected override void OnBarUpdate()
        {
        if (IsFirstTickOfBar)
        {
        tmpHigh = tmpLow = Close[0];
        }
        else
        {
        tmpHigh = Math.Max(tmpHigh, Close[0]);
        tmpLow = Math.Min(tmpLow, Close[0]);
        }
        // use a drawing tool to draw a line or however you want to display these here
        }
        Here's a link to our help guide that goes over the Calculate property:


        Please let us know if we may be of further assistance to you.
        Kate W.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by fitspressoburnfat, Today, 04:25 AM
        0 responses
        2 views
        0 likes
        Last Post fitspressoburnfat  
        Started by Skifree, Today, 03:41 AM
        1 response
        4 views
        0 likes
        Last Post Skifree
        by Skifree
         
        Started by usazencort, Today, 01:16 AM
        0 responses
        1 view
        0 likes
        Last Post usazencort  
        Started by kaywai, 09-01-2023, 08:44 PM
        5 responses
        604 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        6 responses
        23 views
        0 likes
        Last Post xiinteractive  
        Working...
        X