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 SalmaTrader, 07-07-2026, 10:26 PM
          0 responses
          28 views
          0 likes
          Last Post SalmaTrader  
          Started by CarlTrading, 07-05-2026, 01:16 PM
          0 responses
          17 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 06-17-2026, 10:32 AM
          0 responses
          9 views
          0 likes
          Last Post CaptainJack  
          Started by kinfxhk, 06-17-2026, 04:15 AM
          0 responses
          10 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 06-17-2026, 04:06 AM
          0 responses
          18 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X