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
Parameters in Add On?
Collapse
X
-
Parameters in Add On?
Hello, 1) How do I set a Parameter value for an AddOn? 2) How do I add a new Parameter to an existing AddOn? I'm not using AddOn to make a new tab or window....it is used to launch a background process.... ThanksTags: None
-
reformatted?
Hello,
1) How do I set a Parameter value for an AddOn?
2) How do I add a new Parameter to an existing AddOn?
I'm not using AddOn to make a new tab or window....it is used to launch a background process....
Thanks
-
reply
I found a better solution than parameters
What I am trying to do is to get the name of a session run time Profile.
I don't like using the Ninja Parameters so I put most all parameters in an SQL database then load them at startup into public static variables.
So, in this case I just needed the name of the Profile I want to load....for testing the profile will be something like TEST. In production, a different profile PROD.
What I did was to put this profile name in a text file, very similar to the old idea of an INI file, in the Ninja 8 My Documents and then read it at startup (via an AddOn.
Once I have the name of the session Profile, then I can continue loading the run configuration from the SQL database with an AddOn.
Works good, and I don't have to mess with the Parameters.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by wzgy0920, Yesterday, 09:53 PM
|
1 response
13 views
0 likes
|
Last Post Today, 07:06 AM | ||
Change colour of Stop market and limit orders to red and green via indicator script
by Rapine Heihei
Started by Rapine Heihei, Yesterday, 07:51 PM
|
1 response
12 views
0 likes
|
Last Post Today, 06:59 AM | ||
Started by kaywai, Today, 06:26 AM
|
1 response
6 views
0 likes
|
Last Post
by kaywai
Today, 06:35 AM
|
||
Started by ct, 05-07-2023, 12:31 PM
|
6 responses
206 views
0 likes
|
Last Post
by wisconsinpat
Today, 06:29 AM
|
||
Started by kevinenergy, 02-17-2023, 12:42 PM
|
118 responses
2,780 views
1 like
|
Last Post
by kevinenergy
Today, 05:41 AM
|
Comment