Announcement

Collapse
No announcement yet.

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.

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        633 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        364 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        567 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X