Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DOM Calculation Incorrect

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

    DOM Calculation Incorrect

    The DOM does not seem to be working correctly.

    It seems that the calculation of profit/loss of number of ticks (open trade) or $$ (if selected) is off by 1 or more ticks from last trade price.

    Example: YM short 4 at 10711. Current last trade = 10708. Commission is $2.1 per side.

    DOM shows $11.60 open profit. Should be $51.60. Looks like it may be based on bid/ask instead of last?

    Using MB Trading live data - SIM account.
    YM 06-10
    ATM Strategy - 1 target

    #2
    Hello hotdog,

    Can you please doublecheck if you are in a position for 4 contracts. When I test the YM 06-10 on my end, PnL is reported as expected.

    Please create a new SuperDOM and check if the issue persists. Post a screenshot of the issue as well, if possible.

    Comment


      #3
      Originally posted by hotdog View Post
      The DOM does not seem to be working correctly.

      It seems that the calculation of profit/loss of number of ticks (open trade) or $$ (if selected) is off by 1 or more ticks from last trade price.

      Example: YM short 4 at 10711. Current last trade = 10708. Commission is $2.1 per side.

      DOM shows $11.60 open profit. Should be $51.60. Looks like it may be based on bid/ask instead of last?

      Using MB Trading live data - SIM account.
      YM 06-10
      ATM Strategy - 1 target
      Also check Tools > Options in the Control Center, there is a "Use last price for PnL" option. When unchecked, bid/ask is used.
      RayNinjaTrader Customer Service

      Comment


        #4
        Thanks, Ray. Looks like that was the problem. Also, I discovered the other problem with orders immediately being closed and strategy orders being canceled was due to DOM resetting the Parameter Type to Price instead of TICKS.

        What is the purpose of this field?

        Further testing shows that setting the DOM Parameter Type default to TICKS and closing/opening DOM, default is not saved. It continues to revert to Price instead of TICKS. Looks like a bug.
        Last edited by hotdog; 03-19-2010, 09:19 AM.

        Comment


          #5
          Hello hotdog,

          The 'Parameter type' setting will set the format of values you enter in ATM strategy fields.

          Could it be you have an ATM template selected in the SuperDOM that was created when 'Parameter type' was set to Price?

          Please set 'ATM strategy' to None and set the 'Parameter type' setting to your liking. Click Set Default. Check if the setting is saved.

          Your ATM strategy did not work as expected, because it submitted orders at prices that most likely rejected the orders.

          Comment


            #6
            Thank you. I have tried your suggestion.

            However, one additional step was required. The ATM Strategy had to be recreated under a new name or else the problem kept re-occurring every time a new DOM was opened.

            Working well now, it seems.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            597 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            343 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            556 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            555 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X