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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    88 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    92 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    70 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    87 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    64 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X