Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Market Analyzer Column - Is row Filtered?

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

    Market Analyzer Column - Is row Filtered?

    Hi,

    In a Market Analyzer Column, Is it possible from code to determine:

    1) Is a market analyzer current ROW being FILTERED?

    2) What is the current ORDINAL number of the ROW?

    I want to know if the instrument in a row is not being shown because it is being filtered, meaning the row is not being shown, and what is the row number position for the instrument.

    I noticed that my Market Analyzer Column code runs even for rows that are not being shown. I would like to test for that. As a bonus I wanted to now the column row number for the instrument.


    Thank you!

    #2
    Hello jmneto,

    Thank you for the post.

    I am unsure how to get the row number currently, I will need to review this further.

    To check if there is an active filter condition which is true from the column its self, you could do something like the following:

    Code:
    FilterCondition fcon = GetActiveFilterCondition();
    if(fcon != null)
    {
        if(fcon.Matches(this, PriorValue))
        {
            Print("Filter Condition matched");
        }
    }
    As this is not documented, you would need to test this will all use cases to ensure it works as expected for this use case.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Solved my issue, really like this platform.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by GussJ, 03-04-2020, 03:11 PM
      11 responses
      3,221 views
      0 likes
      Last Post xiinteractive  
      Started by andrewtrades, Today, 04:57 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by chbruno, Today, 04:10 PM
      0 responses
      6 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Started by josh18955, 03-25-2023, 11:16 AM
      6 responses
      436 views
      0 likes
      Last Post Delerium  
      Started by FAQtrader, Today, 03:35 PM
      0 responses
      9 views
      0 likes
      Last Post FAQtrader  
      Working...
      X