Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TrendSpotter - Trend Line 3 Touch instead of 2

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

    TrendSpotter - Trend Line 3 Touch instead of 2

    I am a big fan of trendlines and believe they are essential for successful trading. I love Ninjatrader but there is a lack of good trendline indicators. The most promising one I've found thus far is called TrendSpotter. It draws a line from two points based on a look back of a certain number of bars. It will draw 4 lines for each indicator added: long and short timeframes for both up and down trends.

    Problem is this: It draws for only two points instead of three, a previous point and the current bar. Therefore, the lines keep redrawing as price moves. What it needs to do is draw on three touches instead of two. I looked through the code but I'm pretty weak on coding. Does anyone know if this can be changed relatively easily? This might require some sort of proximity threshold for inexact touches, I'm not sure.

    Once it hits that third touch of the trendline, the line should draw. Once price breaches it, it should go away or change color or something like that. I don't really care about that as much right now so long as once it breaches, it's looking for a new trendline immediately. I believe it already does this.

    Would anyone mind taking a look and seeing if it's a change they could make? I greatly appreciate any help.

    Thanks in advance,
    Ryan
    Attached Files

    #2
    Hello,

    Thanks for the forum post and welcome to the NinjaTrader forums.

    I will leave this open for the community to respond, also You can contact one of our NinjaScript consultants to assist you with coding this or you can use our NinjaScript guide and forums to code this indicator yourself if you are a programmer.


    NinjaScript Consultants:


    NinjaScript Help Guide:


    NinjaTrader Support Forum:
    BrettNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    46 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    28 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    163 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    98 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    158 views
    2 likes
    Last Post CaptainJack  
    Working...
    X