Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculated Order Rounding to Closest Tick

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

    Calculated Order Rounding to Closest Tick

    Hi,

    I have a strategy that buys at the 5 bar SMA on a limit in the EMini. In the strategy analyzer, it shows entry prices between the tick. Example SMA is calculated to be 1300.1628. The entry price shows as 1300.1628 instead of 1300.00 or 1300.25. I also tried running the strategy in real time in a chart and no orders are generated. Is this the reason why?

    Thank you,

    David

    #2
    Hi David, I would expect it in backtesting - you could round your SMA with the Round2TickSize function first to have more suitable value to submit the order at -



    For your live testing - are there any errors in the log tab? Per default any non market order would last the bar it was submitted on before it would expire, so if your limit wasnt filled in the bar > it would not be working on bars after the order placement condition triggered. A workaround would be resubmitting if the entry was still valid or submitting it with liveUntilCancelled set, so the auto expiry would only happen at the session end.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    88 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    30 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    34 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    68 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X