Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Boxes from indicator not appearing on strategy
Collapse
X
-
Boxes from indicator not appearing on strategy
I have created an indicator which draws boxes on the chart, I would now like to use the indicator in a strategy I am developing, but the drawings do not appear on the chart and neither are they appended to a list I where I stored these.Tags: None
-
Hello CuchoFef,
Thanks for your post.
Are you calling AddChartIndicator() in the strategy to add the indicator to the strategy?
See this help guide page for more information about adding indicator's to a strategy: https://ninjatrader.com/support/help..._strategie.htm
AddChartIndicator(): https://ninjatrader.com/support/help...tindicator.htm
To get information about draw object on the chart you could consider looping through the DrawObjects collection.
See this help guide page for more information and sample code: https://ninjatrader.com/support/help...rawobjects.htm
Here is a forum thread discussing this topic which you might find helpful: https://forum.ninjatrader.com/forum/...y-an-indicator<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
-
Your indicator most likely is encountering an exception or otherwise exiting the OnBarUpdate or OnMarketData event where you think they should be added. You will need to add some print statements or examing your trace files in Documents -> NinajTrader 8 -> trace to see what is causing your indicator to exit prematurely when running in a hosted environment.
Comment
-
Hello CuchoFef,
Thanks for your notes.
To clarify, if you apply the indicator to the chart window do you see the draw objects appearing on the chart and the indicator working as expected?
If you enable the strategy on the chart do you see any error messages appearing in the Log tab of the Control Center? If so, what exactly does the error message report?
Please share an exported copy of the indicator in question so I may look into this matter further.
To export the script, go to Tools > Export > NinjaScript AddOn.
I look forward to assisting further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
62 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
134 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment