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

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 fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,404 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        95 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        8 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        159 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        8 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X