Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

wait for entry order fill before placing stoplimit order

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

    wait for entry order fill before placing stoplimit order

    Hi,

    I am using the Sim101 account with eSignal efs and want to place StopLimit and Limit orders at specified offsets from the fill price of my entry Market order.

    How do I delay placing my StopLimit and Limit orders until after I have retrieved the fill price for my entry order? If I try to place the orders right after I place the entry order,using NTAvgFillPrice(vEntryOrderID), I get a zero returned as the entry order has not yet been filled.

    Right now I am placing the stop and limit orders off an estimate of the entry priceand correcting it later when I get the actual entry fill price; i.e. on closing the trade. This method sometimes causes a rejected stoplimit order if I get a bad fill that is equal to or beyond my estimated stop price; i.e. error "can not place stop limit order at or above/below market price".

    I really need to wait until I get the entry fill price, then I have a position to protect and a price from which to calculate my stoplimit/limit order placement price.

    Thanks in advance.

    #2
    imported post

    You could incorporate some logic that would do something like -

    if (tradeCondition == true) PlaceMar****rder;

    If (mar****rderPlaced && NTMarketPosition != 0) PlaceExitOrders;

    Or you could use the NTCommand() function andreference an NT strategy that would automatically place the stop/targets for you.


    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      Thanks

      I will try the latter.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by chbruno, 04-24-2024, 04:10 PM
      3 responses
      47 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by samish18, Today, 01:01 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by WHICKED, Today, 12:56 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by cre8able, Today, 01:16 PM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by WHICKED, Today, 12:45 PM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X