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
Indicator as input
Collapse
X
-
Indicator as input
I am trying to make an indicator that allows the user to choose other indicators as an input parameter. ie I could choose and configure Stochastic, RSI, or some other indicator as a Data Series input parameter for my custom indicator. How do I create an input like this?Tags: None
-
Thanks... however, your response doesn't quite get to the question I am asking. I do not need to know what oscillator will be the input series that drives the indicator calculations. Instead, I want to create a divergence indicator that allows the user to select which oscillator will be used to identify the divergence. Can I use a string input in my indicator which describes the oscillator and its parameters and then somehow convert that string variable into a call to that oscillator?
Comment
-
You would need to create your own logic to interpret the input.
Likely would want to use something like a switch: http://msdn.microsoft.com/en-us/libr...(v=vs.80).aspx
If you want to allow to allow for the use of any indicator it would likely be best to use the input method Bertrand mentioned and then add a secondary series for the price data.
Alternative to using string inputs you could use Enum: http://www.ninjatrader.com/support/f...ead.php?t=3420LanceNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bmartz, 03-12-2024, 06:12 AM
|
5 responses
32 views
0 likes
|
Last Post Today, 08:34 AM | ||
Started by Aviram Y, Today, 05:29 AM
|
4 responses
12 views
0 likes
|
Last Post
by Aviram Y
Today, 07:57 AM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
3 responses
28 views
0 likes
|
Last Post Today, 07:41 AM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
1 response
8 views
0 likes
|
Last Post Today, 07:30 AM | ||
Started by cls71, Today, 04:45 AM
|
1 response
7 views
0 likes
|
Last Post Today, 07:25 AM |
Comment