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

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.
    BertrandNinjaTrader Customer Service

    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.
          BertrandNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by gemify, 11-11-2022, 11:52 AM
          6 responses
          803 views
          2 likes
          Last Post ultls
          by ultls
           
          Started by ScottWalsh, Today, 04:52 PM
          0 responses
          3 views
          0 likes
          Last Post ScottWalsh  
          Started by ScottWalsh, Today, 04:29 PM
          0 responses
          7 views
          0 likes
          Last Post ScottWalsh  
          Started by rtwave, 04-12-2024, 09:30 AM
          2 responses
          22 views
          0 likes
          Last Post rtwave
          by rtwave
           
          Started by tsantospinto, 04-12-2024, 07:04 PM
          5 responses
          70 views
          0 likes
          Last Post tsantospinto  
          Working...
          X