Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Q about OMD

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

    Q about OMD

    I run a custom indicator that references L2 data in OMD. It goes to each price level, calculates, using bid/ask, and holds my calculated value, goes to the next price level, does the same until the bar completes, then goes to OBU, where I have a variable that calls this value for the bar. I use calc on bar close, tick charts and don't use tick replay. Everything works fine.

    What I want to do but don't know how is isolate my calculated value in a specific price level, assign this to an OMD variable, then, in OBU, assign this to a different variable and call it--just like I do for the bar, but for the price level.

    For example, if a bar had 10 price levels, 1 being highest and 10 being lowest, I could identify my value in any one of those 10 bid price levels and 10 ask price levels and know where it occurs in the bar.

    Is there a function that can help me do this? Can I get an example, place to look, etc.?

    Thank you.

    #2
    Hello imalil,

    Thank you for your note.

    There is a reference example Creating your own Level II data book which demonstrates getting the values of the book.


    I have modified the above example to show how to store the volume values when the ask equals a specific price. With this method you are able to go back and reference x bars ago.

    Please let us know if you need further assistance.
    Attached Files
    Last edited by NinjaTrader_AlanP; 01-10-2017, 02:58 PM.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

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