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!
See more
See less

Partner 728x90

Collapse

Monitoring opened positions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?


    #2
    Hello NinjaCustomer,

    That would require using the addon methods however you could add that to an Indicator if you are trying to mark a specific chart.

    What did you want to do after reading the open position?




    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      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


        #4
        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 algospoke, Yesterday, 06:40 PM
        2 responses
        19 views
        0 likes
        Last Post algospoke  
        Started by ghoul, Today, 06:02 PM
        3 responses
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        45 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        21 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        181 views
        0 likes
        Last Post jeronymite  
        Working...
        X