• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SMa of TrendStrength indicator

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

    SMa of TrendStrength indicator

    Hi,

    I'm trying to make a SMA of the TrendStrength indicator
    http://www.ninjatrader-support.com/v...N&pp=15&page=7

    but I can't get the correct syntax for calling this indicator

    Thank you very much

    Nico
    Attached Files

    #2
    Looks like an enum was used.

    Try typing in

    TrendStrengthA(MovingAverageType.

    to see what enum values are valid.
    RayNinjaTrader Customer Service

    Comment


      #3
      Ray,

      Doesn't seem to solve the problem,
      I get error mess. 'MovingAverageType does not exist in the current context

      Nico
      Attached Files

      Comment


        #4
        Try typing

        TrendStrengthA(VC.NinjaScript.Utility.MovingAverag eType.

        And see if some options show up, if not, please contact author of this indicator.
        RayNinjaTrader Customer Service

        Comment


          #5
          I got it working,
          had to use,
          double average = SMA((TrendStrengthA(Median, VC.NinjaScript.Utility.MovingAverageType.EMA, 27, 9, 18)), Period)[0];


          Nico

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by futurestrader7, Today, 04:21 AM
          2 responses
          12 views
          0 likes
          Last Post futurestrader7  
          Started by KJenkins56, Today, 05:21 AM
          0 responses
          5 views
          0 likes
          Last Post KJenkins56  
          Started by elvapope5, Today, 04:48 AM
          0 responses
          7 views
          0 likes
          Last Post elvapope5  
          Started by Fiocco, Today, 04:25 AM
          0 responses
          2 views
          0 likes
          Last Post Fiocco
          by Fiocco
           
          Started by martin2, Today, 02:41 AM
          0 responses
          8 views
          0 likes
          Last Post martin2
          by martin2
           
          Working...
          X