Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy not entering correctly

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

    Strategy not entering correctly

    Hello,
    Here is the snippet of code generating the order:

    Code:
    // Enter short trade
    EnterShortLimit(Low[0] - TickSize * 1, CurrentBar.ToString());
    Here is a screenshot of the executions; if you notice entry 245 entered at 3670.50 which is one tick below the last bar but entry 252 entered at 3665.75 which is not one tick below the last bar. 245 is correct but 252 is incorrect and that trade should not have entered.

    Click image for larger version  Name:	Capture.PNG Views:	0 Size:	723.1 KB ID:	1151094
    Last edited by travisloneker; 04-12-2021, 07:20 AM.

    #2
    Hello travisloneker,

    Thank you for your post.

    EnterShortLimits should be placed above the current market price. Placing an EnterShortLimit below the current market price would cause the limit to immediately trigger, as the current price would be a better entry point than the limit price. The reverse would be true for EnterLongLimit().

    If you're wanting to place a short entry below the current market price, use EnterShortStopLimit() instead.

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X