TIA
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Sample Code
Collapse
X
-
Hello dmking,
The user app share would be a good location for this type of request. There are many custom indicators listed there, and the straetgy section specifically would be a good location to find sample code of calling custom indicators.
One example can be found in the strategy section, this strategy has a few custom indicators that come with it and are used from its code. Here is a public link: https://ninjatraderecosystem.com/use...kout-strategy/
Nearly all indicators use the same syntax to call them, there are generally two overloads:
Then plots or other methods can be called from the instance:Code:IndicatorName(Any,Parameters,It,Needs) IndicatorName(Series, Any,Parameters,It,Needs)
Code:IndicatorName(Any,Parameters,It,Needs)[0] // default plot IndicatorName(Any,Parameters,It,Needs).SomePlot[0] //specific plot IndicatorName(Any,Parameters,It,Needs).CustomMethod() //custom method, see zigzag for an example
The Series overload depends if the script was programmed to accept a series.
I look forward to being of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
81 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
68 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
55 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment