Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Shadows created by DrawRegion
Collapse
X
-
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
-
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:
-
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:
-
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.
regardsAttached Files
Leave a comment:
-
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:
-
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:
-
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:
-
in initialize put this code
MaximumBarsLookBack = MaximumBarsLookBack.Infinite;
Leave a comment:
-
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:
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
82 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
43 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
68 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
56 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Leave a comment: