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
What is accessible from an Addon
Collapse
X
-
What is accessible from an Addon
I have a very complex strategy and I would like to separate some of its functions as addons. What is and is not accessible from an Addon that is called from a strategy. For example how would I get the SystemPerformance.AllTrades.TradesPerformance.Trad esCount from the addon or be able to call SendEmail() , or Draw.Text on the chart that has the strategy attached from the Addon or access the ChartControl so that I delete objects from the chart. Could you please give me some examples.Last edited by cutzpr; 08-18-2019, 10:02 PM.Tags: None
-
Chelsea,
I don't understand how describing NinjaTrader's NinjaScript's capabilities is outside the scope of what is supported by NinjaTrader Support.
These methods are in the Strategy class and work perfectly when the are called from within the Strategy. I just want to clean up the code and make the strategy more efficient by only calling and disposing of the methods when necessary and not having to instantiate all of them with every instance of the strategy..
Can you at least let me know what is and is not accessible from the add-on class.
Comment
-
Hello cutzpr,
Specifically using an addon to affect a chart in any way is outside of what is officially supported with an addon.
This will not be documented and will take custom C# and exploration.
While using any C# is ok to do for your custom scripts, using an addon to affect a ChartControl is outside of the supported capabilities of NinjaTrader.
I am happy to submit a feature request on your behalf for this to be officially supported and documented if you would like.
That said, I'm interested and I'm happy to provide any help I may know about should you decide to create this script on your own or find a developer to code this custom code for you.
Listing everything in the addon class would be pages of text, that we have already documented in the help guide.
https://ninjatrader.com/support/help...-us/add_on.htm
You can access an account. You can request data. You can make a new window. But you officially cannot start messing with open charts.
If you know what you are doing, you can do it anyway. It just won't be officially supported.
If it's unsupported, the forum is a good place to ask as the entire community can assist.
If you pass the instance of the strategy or indicator to a static method that instance will have all of the properties and methods of the inherited class (of Strategy or Indicator).
Below is a link to an example that uses unsupported code to give you an idea.
https://ninjatrader.com/support/foru...245#post712245Last edited by NinjaTrader_ChelseaB; 08-20-2019, 02:10 PM.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by algospoke, 04-17-2024, 06:40 PM
|
6 responses
49 views
0 likes
|
Last Post
by algospoke
Today, 06:18 PM
|
||
Started by arvidvanstaey, Today, 02:19 PM
|
4 responses
11 views
0 likes
|
Last Post Today, 04:08 PM | ||
Started by samish18, 04-17-2024, 08:57 AM
|
16 responses
61 views
0 likes
|
Last Post
by samish18
Today, 03:30 PM
|
||
Started by jordanq2, Today, 03:10 PM
|
2 responses
11 views
0 likes
|
Last Post
by jordanq2
Today, 03:23 PM
|
||
Started by traderqz, Today, 12:06 AM
|
10 responses
21 views
0 likes
|
Last Post
by traderqz
Today, 02:49 PM
|
Comment