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


    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 CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          245 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          157 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          165 views
          1 like
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          250 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          201 views
          0 likes
          Last Post CarlTrading  
          Working...
          X