Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

exitlonglimit shows as "BuyToCover"

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

    exitlonglimit shows as "BuyToCover"

    Hello

    I place market order to buy and then exitlonglimit, however, instead of exitlonglimit the "buy to cover" is placed (and does not get executed), check this:

    2/17/2011 8:13:00 PM Entered internal PlaceOrder() method at 2/17/2011 8:13:00 PM: BarsInProgress=0 Action=Buy OrderType=Market Quantity=0.1M LimitPrice=0 StopPrice=0 SignalName='long_5279' FromEntrySignal=''
    2/17/2011 8:13:00 PM Entered internal PlaceOrder() method at 2/17/2011 8:13:00 PM: BarsInProgress=0 Action=BuyToCover OrderType=Limit Quantity=0.02M LimitPrice=1.3583 StopPrice=0 SignalName='target3 long_5279' FromEntrySignal='long_5279'

    and this is the command:

    if (Position.MarketPosition == MarketPosition.Long)
    {
    order[1] = ExitLongLimit(0,true,enter_quantity/5, enter_price+bar_sequence[3]*tick_size, "target3 " + enter_name, enter_name);
    }

    Am I doing something wrong? I am running the .2 version, just downloaded on windows xp sp3.

    Sergey.

    #2
    Hello,

    Is this Simulation or is this Live account?

    If live what data feed connection technology?

    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment


      #3
      I use kinetick data feed (subscribed) on a range bar data. Global simulation mode is on. No secondary broker connection at this time, I just run tests.

      Comment


        #4
        sergeysamsonov,

        Looks to me as if this is the 3rd target so you are trying to scale out a position? To scale-out you must scale-in first and then tag the fromEntrySignal of each part appropriately for your various target orders.

        So to scale-out in 3 steps, requires you to scale-in with 3 separate entry orders so you can tie each exit nicely to each entry. If you do not want to scale-in before scaling out you would then need to use Unmanaged orders to achieve this.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        656 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        370 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        577 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X