Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Momentum indicator - adding lines

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

    Momentum indicator - adding lines

    Hello

    I am a new Ninja trader user, so apologies in advance for my lack of knowledge.

    I would like to add lines at +0.003 and -0.003 on the standard Ninja Momentum indicator, which I can use to see whether the indicator moves above or below those values.

    Is this possible, and if so, how.

    Thanks very much

    #2
    tradeby, welcome to NinjaTrader!

    You would need to create a custom indicator for this.
    1. Go to Tools > Edit NinjaScript > Indicator and open the 'Momentum' indicator.
    2. Right click in the code, select 'Save As' and enter a name for your modded version like 'MyMomentum'
    3. Add those two lines below the 'ZeroLine' code -
    Code:
     
    Add(new Line(Color.DarkViolet, 0.003, "OB"));
    Add(new Line(Color.DarkViolet, -0.003, "OS"));
    Then hit F5 to compile your new custom indicator.

    After this step it's ready to be applied to the charts, you line levels can be set under the 'Lines' section when you apply the indicator to a chart.

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      tradeby, welcome to NinjaTrader!

      You would need to create a custom indicator for this.
      1. Go to Tools > Edit NinjaScript > Indicator and open the 'Momentum' indicator.
      2. Right click in the code, select 'Save As' and enter a name for your modded version like 'MyMomentum'
      3. Add those two lines below the 'ZeroLine' code -
      Code:
       
      Add(new Line(Color.DarkViolet, 0.003, "OB"));
      Add(new Line(Color.DarkViolet, -0.003, "OS"));
      Then hit F5 to compile your new custom indicator.

      After this step it's ready to be applied to the charts, you line levels can be set under the 'Lines' section when you apply the indicator to a chart.
      Great - thanks very much for that. Worked perfectly

      Comment


        #4
        Great, thanks for reporting back!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        603 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        349 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        104 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        560 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        560 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X