Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Slopes indicator

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

    Slopes indicator

    Hi

    i'm working on the slope of the SMA and i found on NT7 indicator library : Slopes

    It's looks very interesting, however, when i try to integrate it on a strategy, i have always error although i use the "insert condition".

    The condition is the followinf : if slopes angle > 50...

    Can you help to fix he errors ?

    thx a lot.

    #2
    Hello Thomas79,

    Thank you for your post.

    Which slope indicator are you working with? There are several on the User App Share so I'd like to make sure I'm looking at the correct indicator. Or were you trying to use the Slope() method?



    Thanks in advance; I look forward to assisting you further.

    Comment


      #3
      Hi Kate,

      thx for the response, i'm using this indicator i found on the NT7 indicator list

      And i try to call it on the Strategy editor :

      Slopes(NinjaTrader.Indicator.Slopes+Indicates.SMA, 1, 14, 10, 30, NinjaTrader.Indicator.Slopes+Views.Angle).Angle[0] > 50

      but i have CS0119 and CS0103 Errors

      Regards
      Last edited by Thomas79; 04-29-2020, 05:15 AM.

      Comment


        #4
        Hello Thomas79,

        Thank you for your note.

        This indicator as written would not be able to be used with the Strategy Wizard. It's defining the Enums within the Slopes class, and those would need to be in the global namespace as seen in this example to be able to use the indicator with the Strategy Wizard:



        You may also try unlocking the code and changing the "+" signs in that line to periods, and then it should compile. The builder just isn't equipped to handle enums inside the indicator class itself. Since NinjaTrader 7 is no longer under active development, we cannot put in a feature request to have this changed.

        Please let us know if we may be of further assistance to you.

        Comment

        Latest Posts

        Collapse

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