Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

When trading Sim account on live data

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

    When trading Sim account on live data

    Hi,

    When i'm testing my strategy with sim account using live data sometimes my orders are not being submitted. When i'm testing it on Sim data everything is working fine. No mention of those trades in trace log either. I will repeat that sometimes they are working as they should and sometimes they are not.

    Thank you

    #2
    If there is nothing written to your log files at this time, add TraceOrders = true to your Initialize() method and you can then view valuable output related to strategy submitted orders through Tools > Output window - TraceOrders

    This should provide more insight as to why your strategy may not be submitting or ignoring orders when the condition is true.
    MatthewNinjaTrader Product Management

    Comment


      #3
      So i've tested it

      I had a look at the output window as you suggested. Cannot find anything that would explain what is happening. I run one strategy on few different products, and my orders number 2 and 3 should be submitted after first order is filled. Sometimes it's working as it should and sometimes order 2 and 3 are not being submitted. Even my stop loss is sometimes in the wrong position (ticks) from where it should be. Was wondering if that might have something to do with my connection or connection on the other side? I run the strategy over and over in few different modes (Replay Sim and Live Data), only when running sim account on realdata this things are happening...

      Thank you

      Comment


        #4
        Are you working with managed or unmanaged orders in your strategy?

        For the orders that are not being submitted, are they SetStopLoss/SetProfitTarget, or are you setting them as ExitLong/Short,etc?

        From the TraceOrders output, did it say anything about the orders being ignored?

        You should add some Print() statements to your blocks of code where the order should be sent to verify that that condition is being hit at that the time that you expect.

        Regarding your stop loss, is this set in Initialize() or dynamically in OnBarUpdate()? Are you resetting the value of the stop loss after the stop loss is filled/canceled?
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Segwin, 05-07-2018, 02:15 PM
        14 responses
        1,788 views
        0 likes
        Last Post aligator  
        Started by Jimmyk, 01-26-2018, 05:19 AM
        6 responses
        837 views
        0 likes
        Last Post emuns
        by emuns
         
        Started by jxs_xrj, 01-12-2020, 09:49 AM
        6 responses
        3,293 views
        1 like
        Last Post jgualdronc  
        Started by Touch-Ups, Today, 10:36 AM
        0 responses
        12 views
        0 likes
        Last Post Touch-Ups  
        Started by geddyisodin, 04-25-2024, 05:20 AM
        11 responses
        62 views
        0 likes
        Last Post halgo_boulder  
        Working...
        X