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 TradeSaber, Today, 07:18 AM
    0 responses
    4 views
    0 likes
    Last Post TradeSaber  
    Started by PaulMohn, Today, 05:00 AM
    0 responses
    9 views
    0 likes
    Last Post PaulMohn  
    Started by ZenCortexAuCost, Today, 04:24 AM
    0 responses
    6 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by ZenCortexAuCost, Today, 04:22 AM
    0 responses
    3 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by SantoshXX, Today, 03:09 AM
    0 responses
    17 views
    0 likes
    Last Post SantoshXX  
    Working...
    X