Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Searched in vain for DrawRegion

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

    Searched in vain for DrawRegion

    Can anyone help?

    I have attached a reference sample code that i got off of this forum, but i have spent the past 3 hours trying to find the specific post to ask this question: How do I get this to print on panel 2 -- my indicator? I do not want it on the input series (panel1). I have changed the DrawOnPricePanel = false -- i have tried overlay = false and nothing seems to work.

    Thanks to anyone lending assistance.......

    I simply want to be able to shade the area between the upper and lower bollinger bands without 457 lines of code (which I found elsewhere on this forum). Thanks so much.
    Attached Files

    #2
    Originally posted by zoom zoom 126 View Post
    Can anyone help?

    I have attached a reference sample code that i got off of this forum, but i have spent the past 3 hours trying to find the specific post to ask this question: How do I get this to print on panel 2 -- my indicator? I do not want it on the input series (panel1). I have changed the DrawOnPricePanel = false -- i have tried overlay = false and nothing seems to work.

    Thanks to anyone lending assistance.......

    I simply want to be able to shade the area between the upper and lower bollinger bands without 457 lines of code (which I found elsewhere on this forum). Thanks so much.
    I am not sure that I understand what you are describing. Are you plotting the Bollinger Bands in Panel 2?

    Comment


      #3
      Try this, below On Bar Update()




      DrawRegion("tag1", CurrentBar, 0, Bollinger(2, 14).Upper, Bollinger(2, 14).Lower, Color.Empty, Color.Lime, 2);

      Comment


        #4
        zoom zoom 126,

        Setting Overlay = false should do it.

        With most code changes you can reload NinjaScript and will see right away. However if you make any code changes in Initialize() the indicator needs to be removed and re-applied in order to see.

        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        578 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
        553 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