what are relevant part of the docs?
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
Monitoring opened positions
Collapse
X
-
Monitoring opened positions
If I want to write ninjascript to watch positions being opened and closed (but not modify, just watch i.e. read only) but not created by this code... what are my options? indicator? strategy? add-on? all of the above?
what are relevant part of the docs?
Tags: None
-
I would prefer to use an indicator (so it would have no problem reading such data?) because I find indicators easier to manage than addons. Especially during development.
Just want to read this data and calculate some stats
Comment
-
Hello NinjaCustomer ,
Yes that would work fine for that purpose. The samples in the page I linked show an addon however you can do this from the indicator as well. The same concepts apply, you need to find an account which is the first link in my last post, all of the other samples in the account sub section rely on that sample of finding the account. Once you find the account you can subscribe to its events or search through its collections.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by mly916, Today, 09:48 PM
|
0 responses
9 views
0 likes
|
Last Post
by mly916
Today, 09:48 PM
|
||
Started by Mikey_, Today, 09:21 PM
|
0 responses
11 views
0 likes
|
Last Post
by Mikey_
Today, 09:21 PM
|
||
Started by cre8able, Today, 05:53 PM
|
3 responses
13 views
0 likes
|
Last Post
by cre8able
Today, 09:20 PM
|
||
Started by Aryan Kumar, Today, 09:04 PM
|
0 responses
4 views
0 likes
|
Last Post
by Aryan Kumar
Today, 09:04 PM
|
||
Started by yertle, Yesterday, 05:49 PM
|
3 responses
16 views
0 likes
|
Last Post
by Mindset
Today, 08:38 PM
|
Comment