Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Range Bar Exit Price Markers

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

    Range Bar Exit Price Markers

    Hello, I am a beginner NT script developer. However, I did do one custom indicator a few months ago using the tutorials to get started.

    The indicators that I need now are to print predicted exit prices (2) for the current range bar in progress. It would be nice to print these prices in the right hand margin similar to the way price markers are printed for any of the standard indicators.

    The first indicator I call “SellLim” = Low[0] + RangeBarSize + TickSize.
    The second indicator I call “BuyLim” = High[0] – RangeBarSize – TickSize.

    I found a shared data variable for the TickSize, but could not find a shared data variable for the RangeBarSize. Is there a way to enter the RangeBarSize without hard coding it? Also, is there an existing method to print the variables; SellLim and BuyLim in the right hand margin?

    Any help would be appreciated.
    Thanks, Steve

    #2
    Hello,

    Thanks for your forum post.

    I would use the following to find the Range.



    BarsPeriod.Value

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Hello Brett,

      Your idea worked very well as expected. My indicators are doing exactly what I needed.
      Thanks, Steve

      Comment


        #4
        Code to chew on.

        Thought maybe this code might be helpful.

        RangBarTargetsv7.cs

        PricePanelv7.cs

        Click image for larger version

Name:	panel.png
Views:	1
Size:	46.7 KB
ID:	860364

        Comment


          #5
          Thank you "ThatManFromTexas",

          I will chew on your code. It is much more elaborate than what I did. I just printed the exit prices in the right hand margin. Simple, but it is all I need for now. However, I will definitely learn from your code.

          Thanks again, Steve

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          579 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X