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

Indicator Development assistence

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

    Indicator Development assistence

    Hello,

    I do not know how to code for an indicator but what I am looking for is that for every price bar, it looks ahead of it 9 bars and behind it 9 bars, if none of the nine are higher or lower than it, it paints the price bar red.

    How would I code this?

    #2
    David, I'm not sure I follow exactly on your condition, but CountIf should help you test for it occuring x number of times on chart -



    To get started in custom coding, those tutorials below are very helpful -

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Sounds like you're looking for a Swing indicator. Is this correct?

      Check out the Swing indicator that comes with NT.
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by fitspressoburnfat, Today, 04:25 AM
      0 responses
      2 views
      0 likes
      Last Post fitspressoburnfat  
      Started by Skifree, Today, 03:41 AM
      1 response
      4 views
      0 likes
      Last Post Skifree
      by Skifree
       
      Started by usazencort, Today, 01:16 AM
      0 responses
      1 view
      0 likes
      Last Post usazencort  
      Started by kaywai, 09-01-2023, 08:44 PM
      5 responses
      604 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      6 responses
      23 views
      0 likes
      Last Post xiinteractive  
      Working...
      X