• 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 Gav_G, Today, 02:12 PM
          2 responses
          4 views
          0 likes
          Last Post Gav_G
          by Gav_G
           
          Started by Gav_G, Today, 01:41 PM
          0 responses
          5 views
          0 likes
          Last Post Gav_G
          by Gav_G
           
          Started by kweiss, Today, 01:21 PM
          0 responses
          5 views
          0 likes
          Last Post kweiss
          by kweiss
           
          Started by digibob, Yesterday, 06:45 AM
          2 responses
          15 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Started by cutzpr, Today, 08:44 AM
          0 responses
          3 views
          0 likes
          Last Post cutzpr
          by cutzpr
           
          Working...
          X