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 frslvr, 04-11-2024, 07:26 AM
      9 responses
      123 views
      1 like
      Last Post caryc123  
      Started by rocketman7, Today, 09:41 AM
      4 responses
      15 views
      0 likes
      Last Post rocketman7  
      Started by selu72, Today, 02:01 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Zachary  
      Started by WHICKED, Today, 02:02 PM
      2 responses
      16 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by f.saeidi, Today, 12:14 PM
      8 responses
      21 views
      0 likes
      Last Post f.saeidi  
      Working...
      X