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 Nicholewatkinsi, Yesterday, 10:53 PM
          0 responses
          6 views
          0 likes
          Last Post Nicholewatkinsi  
          Started by dward123, 01-02-2024, 09:59 PM
          4 responses
          175 views
          0 likes
          Last Post Lancer
          by Lancer
           
          Started by ETFVoyageur, Yesterday, 04:00 PM
          2 responses
          19 views
          0 likes
          Last Post ETFVoyageur  
          Started by AaronKTradingForum, Yesterday, 03:44 PM
          1 response
          14 views
          0 likes
          Last Post AaronKTradingForum  
          Started by Felix Reichert, 04-26-2024, 02:12 PM
          11 responses
          80 views
          0 likes
          Last Post Felix Reichert  
          Working...
          X