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 type of variable is used for this?
Collapse
X
-
Hi lju45,
Use the [NinjaScriptProperty] attribute to make an input optimizable.
-
-
Hello lju45,
In the SampleUniversalMovingAverage reference sample see lines 52 through 85 where it is demonstrated how to switch between the selected moving average type used for the Value[0].
If you want to save the indicators to variables, you will need to make a variable for every indicator. There would be no switch for this.
Leave a comment:
-
Thank you,
If I want to use it in a strategy, how can I declare the type of MA? I mean, I can create an enum variable to select type (EMA, HMA ..) but then how Can I declare this type in the strategy? I want to have something like this: private _?__ MA1; So depending enum variable, this declaration is different. Is it possible?
Leave a comment:
-
Hi lju45,
NT-Roland is correct this is an enum.
Just an update, this reference sample is now maintained in the help guide.
https://ninjatrader.com/support/help...ned_parame.htm
Leave a comment:
-
What type of variable is used for this?
Hi,
I am trying to program a variable like this photo 1.
That is, I need to create a variable that can take several different values so that later I can optimize it.
Thank you
1 PhotoTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,603 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
8 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
4 views
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
12 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
Leave a comment: