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
Shared Variable
Collapse
X
-
Shared Variable
I would like some help to determine which is the best way to proceed with using the output of one indicator as a parameter in several other indicators. The "publishing" indicator is rather cpu intensive so I want to avoid having multiple instances of it. I only need the value of the most recent bar so I feel as though it should be simple to store in a variable. I have read may threads on this site and others and there seems to be lots of suggestions with only minimal success. I understand that a good number of approaches are un-supported but any help in leading me down the best path would be greatly appreciate. I have looked into static variables, globalvariables.dll, userdefinedmethods etc and am unsure how to proceed. I am currently trying to implement a static variable but do not fully comprehend how to do it.Tags: None
-
Hello Taggart,
Thank you for your note.
Would this be something you could not use in the user defined methods?
Take a look at the following link for more information: http://www.ninjatrader.com/support/h...ed_methods.htm
-
Thanks for the tip. I had mistakenly read "You can not share user defined methods created for custom strategies with custom indicators" to mean that it couldn't be used with custom indicators. Now that you have made me aware I will spend more time understanding this approach and hopefully achieve what I am looking for.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,602 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
|
Comment