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 philmg, Today, 12:55 PM
      0 responses
      1 view
      0 likes
      Last Post philmg
      by philmg
       
      Started by Russ Moreland, Today, 12:54 PM
      0 responses
      1 view
      0 likes
      Last Post Russ Moreland  
      Started by f.saeidi, Today, 12:14 PM
      2 responses
      5 views
      0 likes
      Last Post f.saeidi  
      Started by TradeForge, 04-19-2024, 02:09 AM
      2 responses
      28 views
      0 likes
      Last Post TradeForge  
      Started by aprilfool, 12-03-2022, 03:01 PM
      3 responses
      327 views
      0 likes
      Last Post NinjaTrader_Adrian  
      Working...
      X