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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
46 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
67 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
35 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
95 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
59 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment