Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

building OIF dynamically from an indicator

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

    building OIF dynamically from an indicator

    Hello,

    I want to build and write a OIF file from an indicator.

    In this case only to Close a Position.

    All I need is the Account and the Instrument name....

    I believe I can get the account from Instrument.FullName.

    But where can I dynamically get the Account in CharTrader from the Indicator code?

    I can't seem to find this in the documentation or forum.

    Thank you.

    #2
    Turtle Trader,

    Unfortunately there is no supported way to get account information from an Indicator. You could do this from a strategy however.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      ok

      Ok, well perhaps I can have a strategy tell the indicator what the account is...

      Can you please point me to the correct instruction on how to get the account info...thx

      Comment


        #4
        Turtle Trader :

        The Account class is not exposed in an indicator, like it is exposed in a strategy. You can refer to this code to get an idea how to expose the Account class, but nothing we would support officially.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          ok

          thank you, this should do it

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          581 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          338 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          552 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X