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

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 jxs_xrj, 01-12-2020, 09:49 AM
    6 responses
    3,290 views
    1 like
    Last Post jgualdronc  
    Started by Touch-Ups, Today, 10:36 AM
    0 responses
    8 views
    0 likes
    Last Post Touch-Ups  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    8 responses
    61 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Option Whisperer, Today, 09:55 AM
    0 responses
    8 views
    0 likes
    Last Post Option Whisperer  
    Started by halgo_boulder, 04-20-2024, 08:44 AM
    2 responses
    24 views
    0 likes
    Last Post halgo_boulder  
    Working...
    X