Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Shadows created by DrawRegion

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

  • bukkan
    replied
    yes Mindset is perhaps also facing the same expected issue (and he must have set the null data series to 0, thats y the tail). but then nothing can be said in concrete unless he post his code.

    thanks

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    Thanks for the sample, however toggling between Infinite and 256 setting would show exactly the expected differences as noted in the helpguide you cited.

    Leave a comment:


  • bukkan
    replied
    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.



    the help files too warns about this.

    Leave a comment:


  • bukkan
    replied
    this indicator do not have max lookback set to infinity. if you apply the same and scroll back you will see a shadow. if maxlook is set to infinite then it behaves ok.

    regards
    Attached Files

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    Thanks, however I could not reproduce an issue here with my filtered DrawRegion calls like you outlined - is their any DataSeries variable involved that would contain perhaps a dummy value at this point in time and hence needed to be filtered before passed to DrawRegion?

    Leave a comment:


  • bukkan
    replied
    Bertrand,
    if you filter the region like

    if (Time[0] > new DateTime(2010,8,1))
    {
    DrawRegion(...)
    }

    this will bring the shadow if maximum lookback is not set to infinity. thats what i encountered when i tried to drawregion sometimes back.

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    Thanks bukkan, however I was not able to see this happening on my end, tried this sample DrawRegion script with hardcoded lookback to infinite - http://www.ninjatrader.com/support/f...ead.php?t=4331

    Can you please try this, too and see if it would draw as expected?

    Thanks

    Leave a comment:


  • bukkan
    replied
    in initialize put this code

    MaximumBarsLookBack = MaximumBarsLookBack.Infinite;

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    HI Harry, unfortunately none that I'm aware of - can you perhaps share the script producing this issue so I can check into here?

    Thanks

    Leave a comment:


  • Harry
    started a topic Shadows created by DrawRegion

    Shadows created by DrawRegion

    Quite often, when using DrawRegion() there are shadows.

    Any methods to get rid of those?
    Attached Files

Latest Posts

Collapse

Topics Statistics Last Post
Started by CarlTrading, 03-31-2026, 09:41 PM
1 response
82 views
1 like
Last Post NinjaTrader_ChelseaB  
Started by CarlTrading, 04-01-2026, 02:41 AM
0 responses
43 views
0 likes
Last Post CarlTrading  
Started by CaptainJack, 03-31-2026, 11:44 PM
0 responses
64 views
2 likes
Last Post CaptainJack  
Started by CarlTrading, 03-30-2026, 11:51 AM
0 responses
68 views
0 likes
Last Post CarlTrading  
Started by CarlTrading, 03-30-2026, 11:48 AM
0 responses
56 views
0 likes
Last Post CarlTrading  
Working...
X