Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to find charts with "6 higher closes in a row" per day?

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

    How to find charts with "6 higher closes in a row" per day?

    I'm a newbie. Wnat to make a Market Analyzer (I think) that would show out of a list of stocks those stocks that would have 6 higher (or lower) closes in a row.

    Thanks
    David

    #2
    dgeller,

    Something like this would work.

    Code:
    private int closecount = 0;
    
    private override void OnBarUpdate()
    {
    
       if( Close[0] > Close[1] )
       {
           closecount++;
       }
       else
       {
           closecount = 0;
       }
    
       if( closecount >= 6)
       {
           Plot0.Set(1);
       }
       else
       {
          Plot0.Set(0);
       }
    
    }
    Then in market analyzer, you can manually create a filter or alert that would check if Plot0 = 1.

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Where to start

      Hi Adma, Thanks for your quick response.
      Would I enter this? Would it go somepalce in Market Anylizer? Thanks, David

      Comment


        #4
        dgeller,

        This would be code for your own indicator that you create. Then, you can create a column in the market analyzer that uses this indicator. From there the configuration is all manual in the market analyzer.

        Here is a link to our educational resources.

        Adam P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        160 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        308 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        349 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X