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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
77 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment