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 sjsj2732, 03-23-2026, 04:31 AM
        0 responses
        69 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        312 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        306 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        146 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        106 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X