Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

order placement question

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

    order placement question

    Working on a strat....I have the triggers set to go long or short as soon as the requirements are met.

    I would like to be able to place an order 5 ticks above or below (depending on the order) the trigger point. So instead of it just jumping right into a trade, it actually places that same buy or sell order 5 ticks from where it would have just jumped right in.

    Make any sense? Seems like it should be a simple code, but i'm not having any luck,

    Right now, I'm simply using
    SetStopLoss("", CalculationMode.Ticks, 20, false);
    SetProfitTarget("", CalculationMode.Ticks, 21);

    #2
    Hello Bobbybattles,

    Assuming you are using the managed approach, when the condition is true, place a buy limit order 5 ticks below the market price with EnterLongLimit(), or 5 ticks above the market price with a buy stop order with EnterLongStop() or a buy stop limit order with EnterLongStopLimit().
    Or place a sell limit 5 ticks above the market price with EnterShortLimit(), or 5 ticks below the market price with a sell stop order with EnterShortStop() or a sell stop limit order with EnterShortStopLimit().

    For example to place a limit 5 ticks below the current price:

    Code:
    if (/* conditions to enter here */)
    {
    EnterLongLimit(Close[0] - 5 * TickSize);
    }
    Below is a link to EnterLongLimit().


    On the left within the Managed Approach you will see the other help guide documents for the other order methods.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    51 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    275 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X