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 GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,229 views
        0 likes
        Last Post xiinteractive  
        Started by andrewtrades, Today, 04:57 PM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        7 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        441 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        12 views
        0 likes
        Last Post FAQtrader  
        Working...
        X