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 jclose, Yesterday, 09:37 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by firefoxforum12, Yesterday, 08:53 PM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by kmunroe478, Yesterday, 05:39 PM
          2 responses
          15 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by kevinenergy, 02-17-2023, 12:42 PM
          115 responses
          2,700 views
          1 like
          Last Post kevinenergy  
          Started by prdecast, Today, 06:07 AM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Working...
          X