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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      164 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      319 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      246 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      350 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X