Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TSSupertrend indicator

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

    TSSupertrend indicator

    Dear Collegues
    I downloaded and imported the TSSupertrend indicator from this site. It works on the charts, but wen I try to insert it a script, and compile it, I get an error signal:"It is a method, and not valid in the given context." When I try to insert a "built in" indicator, f.ex. the Supertrend, it works. What is the solution, please help me...
    Attached Files

    #2
    Hello akkiss,

    Thank you for your post.

    You need to add the TSSuperTrend.Utility to your declarations (located at the top of the code):
    Code:
    using TSSuperTrend.Utility;
    The you can call the indicator in the following manner:
    Code:
    TSSuperTrend(14, MovingAverageType.SMA, 2.618, 14, SuperTrendMode.ATR).UpTrend[0]

    Comment


      #3
      Dear PatrickH
      Thank You for the good and very quick solution! It works!
      Best
      Akos

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, Yesterday, 11:51 AM
      0 responses
      19 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, Yesterday, 11:48 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-25-2026, 09:53 PM
      0 responses
      30 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 03-25-2026, 09:51 PM
      0 responses
      18 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 03-23-2026, 11:13 AM
      0 responses
      23 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X