Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TrendlineIndicator - Is it possible to access if Trendline is High or Low?

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

    TrendlineIndicator - Is it possible to access if Trendline is High or Low?

    Hello,

    i want to use the trendline indicator in ninjascript. I want to "Do something if trendline high and Price cross below trendline" and the opposite if trendline low.
    What would be the easiest way to get the information if it is a high or low trendline?

    #2
    Hello debleded,

    Thanks for your post.

    Please see this thread for information about the Trendlines indicator. I posted a video in Post#2 that will help to clarify how the trendlines indicator works and from that, I think you will have a better idea of what you can work with. https://ninjatrader.com/support/foru...cessing-values

    I am not sure how you would be able to determine if it is high or low from the values provided. You can certainly tell if it is going up or going down by comparing the current bar value to the previous bar value.

    Comment


      #3
      Hello debleded,

      I also meant to provide you with a strategy that I use to determine what parts of a TrendLine are actually available and when.

      Please download and install the strategy, (does not place a trade). It will draw green up triangles on the actual trend line that is going up. It will draw red down triangles on the actual trend line that is going down. The triangles then would represent what the actual values of the Trendline are that you would be accessing and from this display it will be clearer what the indicator actually provide verse the visual it presents. There will be a triangle for every bar plotted, it is just a question of is it up or down.

      Here is a screenshot of what to expect:

      Click image for larger version

Name:	debleded-1.PNG
Views:	263
Size:	62.6 KB
ID:	1181219

      Here is the Strategy builder based strategy:

      [ATTACH]n1181220[/ATTACH]

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      54 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      70 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X