• 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 saltminer, Today, 05:19 PM
          0 responses
          3 views
          0 likes
          Last Post saltminer  
          Started by martyn73, Today, 04:18 PM
          0 responses
          2 views
          0 likes
          Last Post martyn73  
          Started by aprendiz, Today, 03:42 PM
          0 responses
          2 views
          0 likes
          Last Post aprendiz  
          Started by 1001111, Today, 09:10 AM
          1 response
          18 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Started by usero86, Today, 06:02 AM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Working...
          X