Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error in onmarketdepth

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

    Error in onmarketdepth

    protectedoverridevoid OnMarketDepth(MarketDepthEventArgs e)
    {
    // Print some data to the Output window
    if (e.Operation == Operation.Insert )
    Print(
    string.Format("Depth: {0} {1} {2} {3} {4}", e.MarketDataType, e.Operation, e.Price, e.Volume, Close[0]));
    }


    The error: the name "Operation" does not exist in current context. How to fix this?

    #2
    ssg10, not sure - the code works properly for me in 6.5.1000.11 - what release are you using? You can check this under Help > About.

    Comment


      #3
      1000.7 is my version

      Comment


        #4
        Please upgrade to the latest 6.5.1000.11 (Help > Download Site in the Control Center) and retry your code. Thanks.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        579 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X