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 trilliantrader, 04-18-2024, 08:16 AM
      4 responses
      18 views
      0 likes
      Last Post trilliantrader  
      Started by mgco4you, Today, 09:46 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by wzgy0920, Today, 09:53 PM
      0 responses
      9 views
      0 likes
      Last Post wzgy0920  
      Started by Rapine Heihei, Today, 08:19 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by Rapine Heihei, Today, 08:25 PM
      0 responses
      10 views
      0 likes
      Last Post Rapine Heihei  
      Working...
      X