Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Dynamically adding property values to a script via FILE/API
Collapse
X
-
Dynamically adding property values to a script via FILE/API
There are no documented or supported means for dynamically adding property values to a script by reading values off of an API or file. Are there any examples of code to accomplish this in the community? Would anyone know how to tackle this?Tags: None
-
Hello heikenashi1, thanks for your post.
All properties of an indicator should be set in the State.SetDefaults, State.Configure, or State.DataLoaded. NinjaScript is a C# based scripting language, so it can use the WebClient or Httprequest class (publicly available links):
https://docs.microsoft.com/en-us/dot...N&view=net-5.0
https://docs.microsoft.com/en-us/dot...t?view=net-5.0
We do have an example here on performing file read/writing:
https://ninjatrader.com/support/help..._propertie.htm
Edit: I found this example on the user app share site:
https://ninjatraderecosystem.com/use.../jteconnews2a/
Please let me know if I can assist any further.
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.Last edited by NinjaTrader_ChrisL; 01-04-2021, 12:25 PM.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
585 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
340 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment