• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    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 Rednael90, Today, 07:22 AM
          0 responses
          8 views
          0 likes
          Last Post Rednael90  
          Started by dadarara, Today, 02:42 AM
          0 responses
          4 views
          0 likes
          Last Post dadarara  
          Started by TraderYoda, 10-17-2018, 09:06 AM
          14 responses
          163 views
          1 like
          Last Post TraderYoda  
          Started by Johnny Santiago, Yesterday, 09:31 PM
          0 responses
          8 views
          0 likes
          Last Post Johnny Santiago  
          Started by DarkCloudCover, Yesterday, 07:29 PM
          1 response
          29 views
          1 like
          Last Post TraderYoda  
          Working...
          X