IMPORTANT: you must save the indicator as a new name PRIOR to making any of these changes.
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
Converting Strategy to Indicator
Collapse
X
-
Converting Strategy to Indicator
you can convert a strategy to an indicator by viewing, then copying the region from variable to properties. By opening an existing indicator, saving it as the new name you wish and then expanding variables and properties region of the indicator. you then delete everything from the top of variables to the bottom of properties. you then past your code from the strategy and compile.
IMPORTANT: you must save the indicator as a new name PRIOR to making any of these changes.Tags: None
-
BigMike,
It won't necessarily work in all cases, but simple cases you may indeed find it to work. Be aware that there are some methods and properties that are for strategies only though. All in all, you can try it and compile, then address any compile errors you come up with.Josh P.NinjaTrader Customer Service
Comment
-
strategy to indicator conversion
i have worked with it on a number of multi level indicators and have had little trouble. i have even imported them into NT 7 and they still operate.
the key i have found is the naming conventions. you have to make sure you get them changed throughout.
do as much cleanup as you can before you compile. the debugger in compiler is very difficult once the names have been screwed up.
if you are attempting to imbed any custom indicators into the new indicator then again you need to make sure of the naming conventions.
now, if i could only find a moving average that will change colors like doublema does in 6.5 for 7.
Comment
-
trader1512, for the color change MA you could check into this sample here for NT7 - http://www.ninjatrader-support2.com/...ad.php?t=21225BertrandNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Johndc, Today, 04:39 AM
|
0 responses
2 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
8 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
13 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
5 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
5 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
Comment