Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Breadth indicators

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

    Breadth indicators

    Two questions here:

    1. can I get snapshot data, for example net change of a basket of instruments like the stock universe and then plot arithmetic such as # stocks up x%, down x
    %?

    2. Could I create an indicator that would plot the fraction of shares traded in block trades? I have iq feed

    thanks

    #2
    Hello tffmd123,

    Thanks for your questions.

    If we look at the Market Analyzer, we can see that there is a Net Change column, which we also have source code for which will show the price change since the last session close. This uses OnMarketData to read the level 1 data feed. Reading this will involve using OnMarketData in your indicator.

    OnMarketData - https://ninjatrader.com/support/help...marketdata.htm

    Totaling the number of stocks that have increased or decreased would involve either adding all of the desired instruments to an indicator so you can read the level 1 data feed from those symbols. If you wanted to apply an indicator to multiple charts this would result in multiple feeds subscribed, which can carry a performance hit if it is applied to multiple charts. You could then consider having a "hosting indicator" perform the calculations, that then writes to a static variables in an AddOn. Then you could write a "display" indicator that will plot the data you have written to the AddOn variables. (Creating an AddOn to perform the operations of the "hosting indicator" is also possible.)

    The example below can be followed to see how you may write to static variables in an Addon.



    Detecting block trades would involve reading OnMarketData (and using Tick Replay for historical Last ticks) or using a single tick data series to analyze each trade and check their volume to see if that trade would meet your criteria for a block trade. Using a single tick data series would be less performance impacting than OnMarketData with Tick Replay. From there, you can keep track of the volume that is taken from block trades vs. other trades.

    Multi Time Frame and Instruments - https://ninjatrader.com/support/help...nstruments.htm

    We look forward to assisting.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    585 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    340 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
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X