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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        65 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X