Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator that do something when crosses a trend line

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

    Indicator that do something when crosses a trend line

    I am trying to develop an indicator that draws a trend line and "do something" when the price crosses the line.

    Please, look at the attached picture to understand better what I mean.

    Is there any example with a code that do something like this?.

    I was thinking in using "DataSeries" function but I prefer not not to invent the wheel if it is already developed ...

    Thanks and regards,
    Sangui
    Attached Files

    #2
    Hello Sangui,

    You can use the LineAlert indicator to see if that will function as you would want it to. This indicator will alert when the most recent bar crosses manually drawn lines. Works on lines, rays, horizontal lines, and extended lines. To download LineAlert and view the full description you can click on the link below.
    http://www.ninjatrader.com/support/f...d=4&linkid=472

    To Import
    1. Download the attached file to your desktop
    2. From the Control Center window select the menu File -> Utilities -> Import NinjaScript
    3. Select the downloaded file


    Let us know if we can be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      ok. I will let you know.

      Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      134 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      75 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      119 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      114 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      90 views
      0 likes
      Last Post CarlTrading  
      Working...
      X