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

Is there anyway to pull out account position instead of strategy positions?

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

    Is there anyway to pull out account position instead of strategy positions?

    In a strategy, is there anyway to pull out account position(s) instead of a strategy position(s) for further use of semi-automated trading, which means allowance for manual interference when execute an automated strategy or running a strategy in middle of trading activities.
    something like:

    if (open position conditions meet)
    {
    if (! exists this direction AccountPosition) //if a position is not opened manually
    EnterOrder;
    }

    if (exit conditions meet)
    {
    if (! this direction AccountPosition already exited) //if a position is not closed manually
    ExitPosition;
    }

    There might be the same thing with stop loss and/or profit target orders, there should be a switch for using either Strategy generated position or Account position(which could be contributed by both ATS and manual)
    Last edited by Majorshi; 07-24-2011, 12:08 PM.

    #2
    Hi Majorshi, unfortunately NinjaTrader does not currently support semi-automated trading. There are no supported methods for getting account position.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Then maybe an external IB api program or something like that might work to pull out account position.

      Comment


        #4
        Majorshi, you can use the Automated Trading interface to get the account position - http://www.ninjatrader.com/support/h.../functions.htm.

        There are also some unsupported methods that basically do the same thing.
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by andrewtrades, Today, 04:57 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        5 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        7 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X