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 NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    88 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    151 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    80 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    53 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    62 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X