Any methods to get rid of those?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Shadows created by DrawRegion
Collapse
X
-
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
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
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.
Comment
-
Sorry, was my own fault!
The shadow was my own fault, discoverd this today.
However, DrawRegion() will not always work correctly with NT7, if Maximum bars look back is set to "TwoHundredFiftySix". This is as expected, and it will display correctly, once you change it to "Infinite". That is due to the trade-off between RAM use and perfection.
Comment
-
Problem is independent from Infinite/256 lookback.
I have coded an indicator by adding just a few lines to the native NinjaTrader pivots indicator. Chart and indicator attached.
The problem:
When I reset the two data series that contain the region to be drawn, DrawRegion plots a triangle from the upper and lower border of the region to price (next bar). When the dataseries changes back from Reset() to display a value, DrawRegion draws a reverse triangle from price to the upper and lower border.
The region gets a convex shape, or in the chart below, an appearance like a speech balloon.Last edited by Harry; 08-17-2010, 10:30 AM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
344 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
557 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment