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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      577 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X