Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Paul H.NinjaTrader Customer Service

    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:	201
Size:	62.6 KB
ID:	1181219

      Here is the Strategy builder based strategy:

      [ATTACH]n1181220[/ATTACH]
      Paul H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by mattbsea, Today, 05:44 PM
      0 responses
      3 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      31 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Started by tkaboris, Today, 05:13 PM
      0 responses
      2 views
      0 likes
      Last Post tkaboris  
      Started by GussJ, 03-04-2020, 03:11 PM
      16 responses
      3,282 views
      0 likes
      Last Post Leafcutter  
      Started by WHICKED, Today, 12:45 PM
      2 responses
      20 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Working...
      X