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 tkaboris, Today, 05:13 PM
      0 responses
      0 views
      0 likes
      Last Post tkaboris  
      Started by GussJ, 03-04-2020, 03:11 PM
      16 responses
      3,281 views
      0 likes
      Last Post Leafcutter  
      Started by WHICKED, Today, 12:45 PM
      2 responses
      19 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by Tim-c, Today, 02:10 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Taddypole, Today, 02:47 PM
      0 responses
      5 views
      0 likes
      Last Post Taddypole  
      Working...
      X