Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawRegion scaling is off...

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

    DrawRegion scaling is off...

    Hello,

    Please help resolve the following, scaling issue.

    I am able to plot the region between 2 DataSeries...TOPt and ET.

    DrawRegion("tag1", CurrentBar, 0,TOPt,ET, Color.Empty, Color.Cyan, 2);

    but the Y scaling is off (plots higher than it should) and I am not sure how to implement Tip #3 from the Ninjatrader Help section please?

    When I plot my indicator, the Visual/Auto Scale is True; but grey and cannot be changed?

    Tips
    1. Pass in Color.Empty to the "outlineColor" parameter if you do not want to have an outline color.
    2. If you wanted to fill a region between a value (20 period simple moving average) and the upper edge of the chart, pass in an extreme value to the "y" parameter such as 1000000.
    3. Should you be drawing regions based on DataSeries objects instead of indicator plots, be sure to create the DataSeries with the MaximumBarsLookBack.Infinite parameter if the region you are drawing would be maintained on the chart for more than 256 bars back.

    #2
    Hello tradethebonds,

    Thank you for your post.

    You will need to add MaximumBarsLookBack to the Initialize() method: http://www.ninjatrader.com/support/h...rslookback.htm

    For the DrawRegion Y value plotting to high please attach a screenshot of this on your chart to your response so I may investigate this matter further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    580 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    335 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    102 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
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X