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!
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
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-indicatorBrandon H.NinjaTrader Customer Service
-
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.Brandon H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
14 responses
1,788 views
0 likes
|
Last Post
by aligator
Today, 11:47 AM
|
||
Started by Jimmyk, 01-26-2018, 05:19 AM
|
6 responses
837 views
0 likes
|
Last Post
by emuns
Today, 11:27 AM
|
||
Started by jxs_xrj, 01-12-2020, 09:49 AM
|
6 responses
3,293 views
1 like
|
Last Post
by jgualdronc
Today, 10:56 AM
|
||
Started by Touch-Ups, Today, 10:36 AM
|
0 responses
13 views
0 likes
|
Last Post
by Touch-Ups
Today, 10:36 AM
|
||
Started by geddyisodin, 04-25-2024, 05:20 AM
|
11 responses
63 views
0 likes
|
Last Post Today, 10:08 AM |
Comment