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
Extract data from databox.
Collapse
X
-
Hello,
Thank you for the question.
What specific value are you trying to get from the databox?
In regard to a strategy, it would have access to the base series it is applied to, along with any additional series you may add. Also you can call indicators from a strategy which would cover most items that display in the databox.
Depending on what you are trying to access, I could provide different help documentation on the various ways to access these different items.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
unique values
These are custom indicators but I can not find the indicator values except with the databox. I tried looking for the indicator but it is not found within the document folders of NT7. If I can extract the values from the databox then I can finish my strategy. I don't need OPEN CLOSE etc.
CHeers
Comment
-
Hello,
Thank you for the reply.
Depending on the item you are trying to access, you may or may not find it in the indicators folder. Any protected code will not be a .cs file or listed in the Edit indicators menu but would instead be a .dll file and listed in the Remove NinjaScript assembly menu.
You potentially can still access these items from code, often the most easy way is to contact the creator of those items and ask if they could provide the syntax needed for "a strategy to call the indicator from code".
Otherwise, please see this video on self discovery using the NinjaScript editor. In the case you know the Name of the indicator, you may be able to figure out the syntax by exploring using intelleprompt.
Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.
The databox its self can not be accessed from code, but the data that is provided to that box can be accessed, it would just depend on the item you are trying to access for the specific syntax needed.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
-
Hello,
Thank you for the reply.
Had you tried the specific indicator name and not the dll name in the NinjaScript editor as shown in the video?
The ChartControl would not be a correct way to access an indicator from a strategy, this would not be synced with the strategy and would only apply specifically on a chart. The indicator would need to be correctly called by its name instead.
If you have tried the specific indicators name and can not see any results, you may need to contact the vendor to find out the correct syntax.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
-
Hello,
Thank you for the reply.
In this case if the indicator has a custom name, it would likely be hard to find the actual name of the indicator used in scripting. I would suggest to contact the vendor at this point to see if they can provide sample code.
Please let me know if I may be of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
15 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
||
Started by flybuzz, 04-21-2024, 04:07 PM
|
17 responses
229 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:45 PM
|
||
Started by agclub, 04-21-2024, 08:57 PM
|
3 responses
17 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:42 PM
|
||
Started by TradingLoss, 04-21-2024, 04:32 PM
|
4 responses
45 views
2 likes
|
Last Post
by TradingLoss
Yesterday, 11:40 PM
|
||
Started by cre8able, 04-17-2024, 04:16 PM
|
6 responses
57 views
0 likes
|
Last Post
by cre8able
Yesterday, 09:20 PM
|
Comment