Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Horizontal trend line label with alert

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

    Horizontal trend line label with alert

    Dear All,
    I am looking for an indicator that prints the price above the horizontal line tool (f6) and once the price penetrates that line, it triggers an alert.
    I have the indicator in NT7 format, and would like to have it converted to NT8
    Any feedback is appreciate
    best
    Gus

    #2
    Hello GussJ,

    Thanks for opening the thread.

    We do not do conversion requests or write code for our clients in the Support Department at NinjaTrader, but I can give some direction if you are looking to program the indicator on your own.

    If you are looking for services to convert the indicator for you, I can have a member of our Business Development team provide additional information on NinjaScript consultants. If that is the case, please write in to platformsupport [at] ninjatrader [dot] com with the thread URL and the text Attention Jim and I will get you connected.

    To create this indicator, you will have to loop through all drawing objects on a chart to find your particular drawing object. Once found, you can use the price value from one of the anchors to be used in a CrossAbove() condition to trigger your alert.

    Alternately, you can create a simple alert in a chart that can perform most aspects of this task.

    Here are links to some documentation that can be used to assist in developing this indicator or creating an Alert in a chart. I will also include a link to the Code breaking section of the help guide that outlines all documented code changes between NinjaTrader 7 and NinjaTrader 8 NinjaScripts.

    DrawObjects collection (looping through draw objects) - https://ninjatrader.com/support/help...rawobjects.htm

    ChartAnchors - https://ninjatrader.com/support/help...tm#chartanchor

    Draw.Text() - https://ninjatrader.com/support/help.../draw_text.htm

    CrossAbove() - https://ninjatrader.com/support/help...crossabove.htm

    Alert() - https://ninjatrader.com/support/help...n-us/alert.htm

    Code Breaking Changes - https://ninjatrader.com/support/help...ng_changes.htm

    Alerts from a chart - https://ninjatrader.com/support/help...-us/alerts.htm

    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    43 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    26 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    163 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    98 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    158 views
    2 likes
    Last Post CaptainJack  
    Working...
    X