Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Call Function Every change of market depth

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

    Call Function Every change of market depth

    Dear friend......http://clip2net.com/s/6PdHOp
    like in the screenshot....I looking for a way to execute a function everytime onmarketdepth() is called. I have also brutally added some strings in OnMarketDepth() function but It doesn't run well ( some printf and some basically operation).

    Many thanks

    #2
    Hello ketron82,

    You may want to add a check to see if there is a "Operation.Update" event or a change in the price of the Market Depth Level to only call your function/calculations when this happens to minimize the calculations your Indicator is doing.

    Here is a list of the MarketDepthEventArgs you may check for.
    JCNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_JC View Post
      Hello ketron82,

      You may want to add a check to see if there is a "Operation.Update" event or a change in the price of the Market Depth Level to only call your function/calculations when this happens to minimize the calculations your Indicator is doing.

      Here is a list of the MarketDepthEventArgs you may check for.
      http://www.ninjatrader.com/support/h...heventargs.htm
      ok tnx...yes ...resolved...I used my function into the iff the example
      Many thanks

      Comment


        #4
        Last question

        I need to do (long/long)=float or double but it doesn't working. How can I do?

        Comment


          #5
          Hello ketron82,

          Are you getting an error message? Or are you getting a value that you do not expect?
          JCNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          152 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          87 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          131 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          127 views
          1 like
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          106 views
          0 likes
          Last Post CarlTrading  
          Working...
          X