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 | ||
---|---|---|---|---|
Started by rhyminkevin, Today, 04:58 PM
|
2 responses
43 views
0 likes
|
Last Post
by loosek
Today, 05:22 PM
|
||
Started by iceman2018, Today, 05:07 PM
|
0 responses
5 views
0 likes
|
Last Post
by iceman2018
Today, 05:07 PM
|
||
Started by lightsun47, Today, 03:51 PM
|
0 responses
7 views
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
||
Started by 00nevest, Today, 02:27 PM
|
1 response
14 views
0 likes
|
Last Post
by 00nevest
Today, 03:48 PM
|
||
Started by futtrader, 04-21-2024, 01:50 AM
|
4 responses
49 views
0 likes
|
Last Post
by futtrader
Today, 03:01 PM
|
Comment