Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Open Position

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

    Indicator Open Position

    Hi Guys

    Is there a way in NT7 that from an indicator i would be able to determine whether there is a current open position on the chart that the indicator is applied to. I would like to add some functionality to my alerts indicator where it will alert me of various things that happen when a position is open on that chart, this is a position created by chart trader manually, not ninjascript.

    Cheers
    Ross

    #2
    Hi Ross, unfortunately this is not possible to access from a NinjaScript.

    Comment


      #3
      ok, thanks Bertrand, speedy reply as always.

      Comment


        #4
        Indicators and Positions

        To clarify, is there no way an indicator can access information on a position, such as average cost, or is this only true for positions entered manually (not via script, as mentioned in the original question) ?

        Comment


          #5
          You can access position info only in the strategy that issued those orders, as strategies do not cross communicate. As workarounds some users found success writing the info from the strategy to a text file which could be read by indicators for example, or others used a Global Variable DLL as well.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by sjsj2732, 03-23-2026, 04:31 AM
          0 responses
          42 views
          0 likes
          Last Post sjsj2732  
          Started by NullPointStrategies, 03-13-2026, 05:17 AM
          0 responses
          294 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          290 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          135 views
          1 like
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          98 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Working...
          X