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

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.
    Kate W.NinjaTrader Customer Service

    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.
        Kate W.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by pibrew, Today, 06:37 AM
        0 responses
        4 views
        0 likes
        Last Post pibrew
        by pibrew
         
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        11 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        16 views
        0 likes
        Last Post AaronKoRn  
        Working...
        X