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.

    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    3 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    1 view
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    6 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Working...
    X