Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

alert for automatically drawn lines

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

    alert for automatically drawn lines

    Hi Ninjas

    Is there anything I can use from the NT arsenal to get alerted if the MACD trendline is broken? I use EOD data so if alert wouldn't work (email/sound), printing smth. into Output window instead would be great.

    I've developed an "automatic" MACD trendline which I'd like to test:
    I've implemented a DrawTrendChannel on the MACD line. 1 trendline is plotted rather than channel, but that's what I needed. (I needed a trendline crossing both MACD swings with its plot lasting behind 2nd swing (classic trend), DrawLine only connects 2 swings with plot limited by 2 dots).

    I've noticed there's an indicator called "alert for manually drawn lines", but my line is "automatic" so I wonder if there's a better match in this case.

    #2
    Hello ionaz,

    That would be the best method that I can think of. You may want to take out the "UserDrawn" check so that way you can check for objects that are programmatically drawn.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

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