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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        177 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        95 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        130 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        210 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        186 views
        0 likes
        Last Post CarlTrading  
        Working...
        X